From d61c74b35caaeb52061d3a1da27cdd1d0c8d31f7 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Thu, 6 Apr 2023 20:39:48 +0200 Subject: [PATCH] map attachments in the file to the new version if present --- easyffmpeg/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/easyffmpeg/main.py b/easyffmpeg/main.py index 99f39da9..7e5723f0 100755 --- a/easyffmpeg/main.py +++ b/easyffmpeg/main.py @@ -224,10 +224,11 @@ execute = args.execute valid_duration(inputfile, "INPUT") # FIXME Breaks if any field (filename, title, Language) contains quotes: ' +# Maps the first video stream, selected audio streams, selected subtitle streams and any attachments to the remuxed/reencoded video ff = ffmpy.FFmpeg( inputs={inputfile: None}, outputs={ - outputfile: "-metadata title='{title}' -disposition 0" + outputfile: "-metadata title='{title}' -disposition 0 -map 0:t?" " " "-c:v {videocodec} -crf {crf} {tune} -preset {preset} -map 0:v:0 -metadata:s:v:0 title='Video' -disposition:v:0 default" " "