GNOME Bugzilla – Bug 606726
FAAC bitrate setting has no effect
Last modified: 2010-01-12 18:50:14 UTC
When setting the bitrate on the faac plugin, the resulting bit rate is always ~128kbps Can reproduce using: gst-launch -v audiotestsrc is-live=true wave=9 do-timestamp=true num-buffers=450 ! audio/x-raw-int,channels=2,rate=44100,width=16 ! audioconvert ! faac outputformat=1 profile=2 bitrate=8000 ! ffmux_mpegts ! filesink location=8mbps.ts gst-launch -v audiotestsrc is-live=true wave=9 do-timestamp=true num-buffers=450 ! audio/x-raw-int,channels=2,rate=44100,width=16 ! audioconvert ! faac outputformat=1 profile=2 bitrate=128000 ! ffmux_mpegts ! filesink location=128mbps.ts ls -l *.ts gives: -rw-rw-r--. 1 mike mike 234436 2010-01-08 10:13 128mbps.ts -rw-rw-r--. 1 mike mike 232556 2010-01-08 10:13 8mbps.ts Two files of about the same size, for two very different bitrates. System is: Fedora Core 12, gstreamer version 0.10.25, gst-plugins-bad version 0.10.17, faac version 1.28
Following commit should fix this. Note that 'fixing' is slightly relative. That is, the output will not exactly abide by the bitrate as set on faac. However, no better seems possible as the results are now those that would otherwise be obtained by the standalone faac binary (using similar settings). commit 8be4e3725f2a03fa49b9db6596acefc679ab7dde Author: Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> Date: Tue Jan 12 19:33:37 2010 +0100 faac: improve faac configuration In particular, align configuration some more with reference binary faac. Fixes #606726.