After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 550486 - [faac] Negotiation problem with mono audio for some sample rates
[faac] Negotiation problem with mono audio for some sample rates
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: 0.10.9
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-09-02 15:13 UTC by René Stadler
Modified: 2008-10-03 17:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description René Stadler 2008-09-02 15:13:40 UTC
This works:

gst-launch-0.10 audiotestsrc num-buffers=5 ! audioconvert ! audio/x-raw-int,channels=2,rate=16000 ! faac ! fakesink

Change the channels to mono and it fails:

gst-launch-0.10 audiotestsrc num-buffers=5 ! audioconvert ! audio/x-raw-int,channels=1,rate=16000 ! faac ! fakesink

Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /pipeline0/faac0: Internal GStreamer error: negotiation problem.  Please file a bug at http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer.
Additional debug info:
gstfaac.c(640): gst_faac_chain (): /pipeline0/faac0:
failed to negotiate MPEG/AAC format with next element
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
FREEING pipeline ...


Compare this to e.g. 44100 Hz, where the number of channels doesn't matter:

gst-launch-0.10 audiotestsrc num-buffers=5 ! audioconvert ! audio/x-raw-int,channels=1,rate=44100 ! faac ! fakesink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 4097721 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
FREEING pipeline ...
Comment 1 Wim Taymans 2008-10-03 16:54:58 UTC
it requires a bitrate < 100000 to operate on mono 16KHz data.
Comment 2 Wim Taymans 2008-10-03 17:11:21 UTC
        * ext/faac/gstfaac.c: (gst_faac_configure_source_pad):
        Warn and clamp to max bitrate for samplerate.
        Fixes #550486.