Skip to content

Commit

Permalink
Apply the convert_path to the inputs in the annotation.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Apr 1, 2024
1 parent 9f1c712 commit 7fb6c42
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions jaraco/media/splice.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,17 +169,15 @@ def TemporaryPath():

@autocommand.autocommand(__name__)
def splice_video(
input_file: "The media file to read in", # type: ignore # noqa: F722
output_file: "The file to output the edited result to", # type: ignore # noqa: F722
input_file: (convert_path, "The media file to read in"), # type: ignore # noqa: F722
output_file: (convert_path, "The file to output the edited result to"), # type: ignore # noqa: F722
*timestamps_include: ( # type: ignore
split_range,
"Start and end timestamps to to include in the final video, " # noqa: F722
"in the form HH:MM:SS.ffffff-HH:MM:SS.ffffff or SS.fff-SS.fff",
),
):
"Split and combine specific chunks from a media w/ffmpeg."
input_file = convert_path(input_file)
output_file = convert_path(output_file)

print("Retrieving keyframes")
keyframe_times = get_keyframe_times(input_file)
Expand Down

0 comments on commit 7fb6c42

Please sign in to comment.