From 8c977ba11b06ddbe5099dd750e7ef636062002ca Mon Sep 17 00:00:00 2001 From: j Date: Fri, 28 Jul 2023 19:53:13 +0200 Subject: [PATCH] newer version of ffmpeg require -v:pass to limit 2-pass encoing to video --- pandora/archive/extract.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/archive/extract.py b/pandora/archive/extract.py index 8731bcc1..8cd66c3b 100644 --- a/pandora/archive/extract.py +++ b/pandora/archive/extract.py @@ -321,9 +321,9 @@ def stream(video, target, profile, info, audio_track=0, flags={}): if format == 'webm': pass1_post = ['-speed', '4'] + pass1_post post = ['-speed', '1'] + post - cmds.append(base + ['-an', '-pass', '1', '-passlogfile', '%s.log' % target] + cmds.append(base + ['-an', '-v:pass', '1', '-passlogfile', '%s.log' % target] + video_settings + pass1_post) - cmds.append(base + ['-pass', '2', '-passlogfile', '%s.log' % target] + cmds.append(base + ['-v:pass', '2', '-passlogfile', '%s.log' % target] + audio_settings + video_settings + post) else: cmds.append(base + audio_settings + video_settings + post)