From: W. Trevor King Date: Thu, 10 Jul 2014 04:19:07 +0000 (-0700) Subject: gallery.py: Use -b:a and -b:v X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e471690d397ddaa16efbeb73d5ea7dec6daf8698;p=blog.git 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 --- 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)