oder of video/audio settings matters in ffmpeg>5

This commit is contained in:
j 2023-07-29 11:07:56 +02:00
parent 8e96284595
commit c045d32d2c

View file

@ -282,12 +282,12 @@ def video_cmd(video, target, profile, info):
if format == 'webm':
pass1_post = ['-speed', '4'] + pass1_post
post = ['-speed', '1'] + post
cmds.append(base + ['-an', '-v:pass', '1', '-passlogfile', '%s.log' % target]
cmds.append(base + ['-an', '-pass', '1', '-passlogfile', '%s.log' % target]
+ video_settings + pass1_post)
cmds.append(base + ['-v:pass', '2', '-passlogfile', '%s.log' % target]
+ audio_settings + video_settings + post)
cmds.append(base + ['-pass', '2', '-passlogfile', '%s.log' % target]
+ video_settings + audio_settings + post)
else:
cmds.append(base + audio_settings + video_settings + post)
cmds.append(base + video_settings + audio_settings + post)
if not support.get(format):
if format == 'webm':