From e471690d397ddaa16efbeb73d5ea7dec6daf8698 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 9 Jul 2014 21:19:07 -0700 Subject: [PATCH] gallery.py: Use -b:a and -b:v Avoiding: Please use -b:a or -b:v, -b is ambiguous I'm not sure when the syntax changed, but this allows us to set the target audio and video bandwidth independently. The old -bt option is gone since ffmpeg's 2c5168a (Remove bitrate tolerance from libx264 interface, 2010-11-11, [1]). [1]: http://git.videolan.org/?p=ffmpeg.git;a=commit;h=2c5168afed8ddd798dae5909dba85ae3b611f894 --- posts/gallery/gallery.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/posts/gallery/gallery.py b/posts/gallery/gallery.py index a7ec944..4be733b 100755 --- a/posts/gallery/gallery.py +++ b/posts/gallery/gallery.py @@ -427,8 +427,8 @@ class CGIGalleryServer (object): or _os_path.getmtime(video) > _os_path.getmtime(mp4_path)): arg = ['ffmpeg', '-i', video, '-acodec', 'libfaac', '-aq', '200', '-ac', '1', '-s', '640x480', '-vcodec', 'libx264', - '-preset', 'slower', '-vpre', 'ipod640', '-b', '800k', - '-bt', '800k', '-aspect', '640:480', '-threads', '0'] + '-preset', 'slower', '-vpre', 'ipod640', '-b:a', '128k', + '-b:v', '800k', '-aspect', '640:480', '-threads', '0'] arg.extend(args) arg.append(mp4_path) invoke(arg) -- 2.26.2