gstreamer lame mp3 encoder produced different files than lame commandline encoder

Bug #235062 reported by arturj
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gst-plugins-ugly-multiverse0.10 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Usind gst-launch to create a lame mp3 encoder pipeline like this:

gst-launch-0.10 filesrc location=file.mp3 ! decodebin ! audioconvert ! lame preset=standard ! filesink location=out.mp3

produces files more than 5% smaller than usind lame cli encoder like this:

lame --preset standard file.mp3 out.lame.mp3

in the above example the gst-launch output had a size of 4354891 bytes and the lame cli output had a size of 4713972, which is a difference of nearly a half megabyte.

As lame CLI tool is strictly related to the liblame library gsteamer uses I suppose gstreamer uses the library in a wrong way or at least sets different options I have not choosen (see above).

Revision history for this message
Maverick88 (amtor) wrote :

I have filed a similar bug report.

See Bug Report 250407 -- https://bugs.launchpad.net/ubuntu/+source/gst-plugins-ugly-multiverse0.10/+bug/250407

gstreamer is not properly encoding MP3's with the right VBR bit rates (corresponding to the options specified).

The problem is NOT with gst-plugins-bad. but in the gstreamer0.10-plugins-ugly-multiverse package.

The culprit is version 0.10.6 of the gstreamer library file libgstlame.so found in the gstreamer0.10-plugins-ugly-multiverse package. If you downgrade this library to 0.10.5, the problem is fixed.

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.

See 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.

PLEASE increase the URGENCY from low to MEDIUM or HIGH.
This bug affects Sound Juicer and Rythmbox which now FAIL to encode MP3's with the proper VBR bit rate using the DEFAULT settings provided by Ubuntu Hardy Heron!!

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.