mirror of
https://github.com/wiltodelta/remove-ai-watermarks.git
synced 2026-08-09 23:50:40 +02:00
Open source input before frame pipe
This commit is contained in:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user