Unexpected behavior of lame encoding plugin

Bug #165219 reported by Benjamin Delagoutte
4
Affects Status Importance Assigned to Milestone
GStreamer
Fix Released
Medium
gst-plugins-ugly-multiverse0.10 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I compared different mp3 encoding methods, and figured out that mp3 files encoded with gst-lame and with lame using the same settings match different file sizes.

-rw-r--r-- 1 bdelagoutte bdelagoutte 6,6M 2007-11-26 17:59 the_sea_gst.mp3 -> produced with gstreamer
-rw-r--r-- 1 bdelagoutte bdelagoutte 9,9M 2007-11-26 17:59 the_sea_lame.mp3 -> produced with lame
-rw-r--r-- 1 bdelagoutte bdelagoutte 59M 2007-11-26 17:40 the_sea.wav -> original wav file

Step to reproduce :
1. Rip a CD track into one wav file foo.wav
2. Encode this file into mp3 using gstreamer-lame
$ gst-launch-0.10 filesrc location=foo.wav ! wavparse ! audioconvert ! lame preset=1002 ! filesink location=foo_gst.mp3
3. Encode this file into mp3 using command line lame
$ lame --preset extreme foo.wav foo_lame.mp3
4. Compare file size of foo_lame.mp3 and foo_gst.mp3

Note: this behavior can be reproduce with others presets (standard / 1001) and with normal switches as well (-V0 --vbr-new / vbr=4 vbr-quality=0)

Revision history for this message
Benjamin Delagoutte (benjamin-delagoutte) wrote :

$ dpkg -l gstreamer0.10-plugins-ugly-multiverse
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Nom Version Description
+++-=============================-=============================-==========================================================================
ii gstreamer0.10-plugins-ugly-mu 0.10.6-0ubuntu1 GStreamer plugins from the "ugly" set (Multiverse Variant)

Using up-to-date Gutsy.

Revision history for this message
Eddy Pronk (epronk) wrote :

I noticed the same from python-gst. I played the mp3 with with xmms and noticed the bitrate never jumps to 224kbps or higher)

from python:
encoder = gst.element_factory_make('lame', 'mp3-encoder')
encoder.set_property('preset', 1001) # standard

Revision history for this message
Eddy Pronk (epronk) wrote :
Changed in gstreamer:
status: Unknown → New
Changed in gstreamer:
status: New → Fix Released
Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10?

Changed in gst-plugins-ugly-multiverse0.10:
status: New → Incomplete
Revision history for this message
Onkar Shinde (onkarshinde) wrote :

The fix from upstream is included in 0.10.12 version, which is available in karmic.

Changed in gst-plugins-ugly-multiverse0.10 (Ubuntu):
status: Incomplete → Fix Released
Changed in gstreamer:
importance: Unknown → Medium
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.