map attachments in the file to the new version if present
This commit is contained in:
parent
c0ce630679
commit
6875140050
3
main.py
3
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"
|
||||
" "
|
||||
|
Reference in New Issue
Block a user