GStreamer does NOT properly encode MP3's (Also affects Sound Juicer and Rhythmbox)

Bug #250407 reported by Maverick88
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
gst-plugins-ugly-multiverse0.10 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: gstreamer0.10-plugins-ugly-multiverse

gstreamer is not properly encoding MP3's with the right VBR bit rates (corresponding to the options specified).
This ALSO affects Rhythmbox and Sound Juicer since they BOTH use gstreamer!!
You don't get MP3's with the VBR Bit rate you expect.

For example, if you run gstreamer in Terminal with the following options, you get an MP3 with VERY low bitrate:

"gst-launch-0.10 filesrc location=foo.wav ! audio/x-raw-int,rate=44100,channels=2 ! lame name=enc vbr-quality=6 ! id3v2mux ! filesink location=foo.mp3"

(This also corresponds to the following default options specified in Sound Juicer and Rhythmbox and you get the same UNEXPECTED results:
audio/x-raw-int,rate=44100,channels=2 ! lame name=enc mode=0 vbr-quality=0 ! id3v2mux)

Running LAME with the same options in the terminal gives you a much higher VBR bitrate AS EXPECTED.

e.g. lame -V 2 foo.wav foo.mp3

Another example, is running gstreamer with the following options that should give you much higher bit rates:

"gst-launch-0.10 filesrc location=foo.wav ! audio/x-raw-int,rate=44100,channels=2 ! lame name=enc vbr=4 vbr-quality=2 ! xingmux ! id3v2mux ! filesink location=foo.mp3"
It gives me MP3's with a low VBR of 48 bits/sec. Very bad. Defintely not 192 bits/sec VBR!

The culprit is version 0.10.6 of the gstreamer library file libgstlame.so. To downgrade to a working version (0.10.5) simply downgrade the gstreamer0.10-plugins-ugly-multiverse package from version 0.10.6-0ubuntu1 to version 0.10.5-2. Once you downgrade, gstreamer works properly and produces MP3's with the right bit rate.

You can download the 0.10.5-2 libraries here: http://archive.ubuntu.com/ubuntu/poo...ultiverse0.10/

See http://ubuntuforums.org/showthread.php?t=608034&page=3

Also note that this bug has been reported upstream. See http://bugzilla.gnome.org/show_bug.cgi?id=498004
But the bug still has not been fixed!! Maybe someone at Ubuntu will need to propose a patch to the Gnome folks.

This bug may be related to bug 235062 -- https://bugs.launchpad.net/ubuntu/+source/gst-plugins-bad-multiverse0.10/+bug/235062

Rob

Revision history for this message
tsh (tsh) wrote :

Surely the simplest workaround is to override the broken options in the default pipeline provided for MP3. I now have to re-rip all the CDs I ripped on my linux box.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gst-plugins-ugly-multiverse0.10 - 0.10.12-0ubuntu1

---------------
gst-plugins-ugly-multiverse0.10 (0.10.12-0ubuntu1) karmic; urgency=low

  * New upstream release. Contains fixes for LP: #235062, #250407.
  * debian/build-deps.in
    - Replace build dependency liblame-dev with libmp3lame-dev.
    - Add build dependency libx264-dev for the x264 plugin.
  * debian/control.in
    - Add XB-GStreamer-* fields.
    - Replace Source-Version with binary-Version.
    - Update Provides field.
    - Add Replaces on -bad-multiverse (<< 0.10.13) because of x264 plugin.
    - Add ${misc:Depends} for -dbg package.
    - Update standards version to 3.8.2. No change needed.
  * debian/rules
    - Disable plugins built by default but not shipped in the package.
  * debian/gstreamer-plugins-ugly-multiverse.install
    - Add x264 plugin.
  * debian/watch
    - Add 'debian uupdate'.

 -- Onkar Shinde <email address hidden> Wed, 24 Jun 2009 10:00:59 +0530

Changed in gst-plugins-ugly-multiverse0.10 (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.