oder of video/audio settings matters in ffmpeg>5
This commit is contained in:
parent
a25ad7c947
commit
9d5222f0cc
1 changed files with 4 additions and 4 deletions
|
@ -322,12 +322,12 @@ def stream(video, target, profile, info, audio_track=0, flags={}):
|
||||||
if video_codec != 'libvpx-vp9':
|
if video_codec != 'libvpx-vp9':
|
||||||
pass1_post = ['-speed', '4'] + pass1_post
|
pass1_post = ['-speed', '4'] + pass1_post
|
||||||
post = ['-speed', '1'] + post
|
post = ['-speed', '1'] + post
|
||||||
cmds.append(base + ['-an', '-pass', '1', '-passlogfile', '%s.log' % target]
|
cmds.append(base + ['-pass', '1', '-passlogfile', '%s.log' % target]
|
||||||
+ video_settings + pass1_post)
|
+ video_settings + ['-an'] + pass1_post)
|
||||||
cmds.append(base + ['-pass', '2', '-passlogfile', '%s.log' % target]
|
cmds.append(base + ['-pass', '2', '-passlogfile', '%s.log' % target]
|
||||||
+ audio_settings + video_settings + post)
|
+ video_settings + audio_settings + post)
|
||||||
else:
|
else:
|
||||||
cmds.append(base + audio_settings + video_settings + post)
|
cmds.append(base + video_settings + audio_settings + post)
|
||||||
|
|
||||||
if settings.FFMPEG_DEBUG:
|
if settings.FFMPEG_DEBUG:
|
||||||
print('\n'.join([' '.join(cmd) for cmd in cmds]))
|
print('\n'.join([' '.join(cmd) for cmd in cmds]))
|
||||||
|
|
Loading…
Reference in a new issue