[gst-devel] Files created with lamemp3enc does not show correct values (at least) for length and bitrate.

Yogesh Marwaha yogeshm.007 at gmail.com
Wed May 5 21:25:43 CEST 2010


I have tried the example pipeline but still a bit confused.

First attempt:
===========

gst-launch -v cdda://1 ! audioconvert ! lamemp3enc quality=1.0 ! xingmux ! 
filesink location=starwars123.mp3

produces:

yogesh at linux-o10f:~> eyeD3 starwars123.mp3

starwars123.mp3 [ 5.21 MB ]
-------------------------------------------------------------------------------
Time: 04:45     MPEG1, Layer III        [ ~153 kb/s @ 44100 Hz - Joint stereo 
]
-------------------------------------------------------------------------------
No ID3 v1.x/v2.x tag found!

For this file amarok (xine) at one place shows length as 22:44 and on other 
place show 4:45

My own SparkleMedia (gstreamer based) shows length as 4:45 (taglib reads 
correctly and gstreamer also reports correct value)


Second attempt:
==============

gst-launch -v cdda://1 ! audioconvert ! lamemp3enc quality=9.0 ! xingmux ! 
filesink location=starwars1234.mp3

produces:

yogesh at linux-o10f:~> eyeD3 starwars1234.mp3

starwars1234.mp3        [ 1.70 MB ]
-------------------------------------------------------------------------------
Time: 09:30     MPEG2, Layer III        [ ~25 kb/s @ 22050 Hz - Joint stereo ]
-------------------------------------------------------------------------------
No ID3 v1.x/v2.x tag found!

In the second case length is reported as double by eyeD3.

For this file amarok (xine) at one place shows length as 22:44 and on other 
place show 4:45

My own SparkleMedia (gstreamer based) shows length as 4:45 (taglib reads 
correctly and gstreamer also reports correct value)

Can you explain what is going on. Also take note of bitrate value reported by 
eyeD3 and corresponding value set in the pipeline.

Regards,

On Tuesday 04 May 2010 1:54:26 pm Yogesh Marwaha wrote:
> Ok. Thank you very much.
> 
> 2010/5/4 Sebastian Dröge <sebastian.droege at collabora.co.uk>:
> > On Tue, 2010-05-04 at 10:52 +0530, Yogesh Marwaha wrote:
> >> Hi,
> >> 
> >> I had posted a bug report
> >> (https://bugzilla.gnome.org/show_bug.cgi?id=617545) with following
> >> content: -
> >> 
> >> -------------------------------------
> >> Using 'lame' element (which is deprecated, as per documentation)
> >> everything seems fine but when 'lamemp3enc' is used files so created
> >> does not show correct values for length and bitrate, though it plays
> >> fine.
> >> 
> >> Here are the examples: -
> >> 
> >> gst-launch -v cdda://1 ! audioconvert ! lame ! filesink
> >> location=track.mp3 gst-launch -v cdda://1 ! audioconvert ! lamemp3enc !
> >> filesink
> >> location=track.mp3
> >> 
> >> Using lame: length: 285; bitrate:128; size:4.4 MiB
> >> Using lamemp3enc: length: 1054; bitrate:32; size:4.0 MiB
> >> 
> >> 
> >> gstreamer version: 0.10.29
> >> gstreamer-ugly version: 0.10.14
> >> I'm on openSUSE 11.2 32-bit
> >> -----------------------------------
> >> 
> >> ...and later I came to know (courtesy: Sebastian Dröge) that it is not
> >> a bug and "You have to add the xingmux element after lamemp3enc (or
> >> lame) if encoding in
> >> variable bitrate mode. Otherwise the length can't be estimated
> >> properly."
> >> 
> >> ...and I thought that I should follow-up on this mailing list to get
> >> answer to my question, so I'm here.
> >> 
> >> The question is: If I want to use id3v2mux, even then do I need to use
> >> xingmux?
> > 
> > Yes, xingmux adds a seek table, bitrate and duration information to the
> > MP3 file while id3v2mux adds tags (like artist, title) to the file.
> > 
> > The pipeline should be something like
> > ... ! lamemp3enc ! xingmux ! id3v2mux ! filesink
> > 
> > (Note: You can create constant bitrate files with lamemp3enc too if you
> > really want that. Use the "target", "cbr" and "bitrate" properties for
> > that. CBR files will have lower quality though)
> > 
> > -------------------------------------------------------------------------
> > -----
> > 
> > _______________________________________________
> > gstreamer-devel mailing list
> > gstreamer-devel at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel




More information about the gstreamer-devel mailing list