Open source input before frame pipe

This commit is contained in:
Victor Kuznetsov
2026-07-31 15:07:15 -07:00
parent 7818e60824
commit 9b9f9c6ced
3 changed files with 13 additions and 5 deletions
+5 -5
View File
@@ -358,21 +358,21 @@ def raw_video_command(
"-loglevel",
"error",
*(["-copyts"] if copy_input_timestamps else []),
*frame_input,
"-i",
str(source),
*frame_input,
"-map",
"0:v:0",
"1:v:0",
"-map",
"1:a?",
"0:a?",
*_video_codec_args(output.suffix.lower(), crf=crf, profile=profile),
*_profile_args(profile),
"-c:a",
"copy",
"-map_metadata",
"-1" if strip_metadata else "1",
"-1" if strip_metadata else "0",
"-map_chapters",
"-1" if strip_metadata else "1",
"-1" if strip_metadata else "0",
]
if timestamped_input:
command.extend(["-fps_mode", "passthrough"])