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 563296 - [mp3parse][mad] bogus bitrate/duration for mp3-in-avi
[mp3parse][mad] bogus bitrate/duration for mp3-in-avi
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-ugly
git master
Other Linux
: Normal normal
: 0.10.12
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-12-05 01:16 UTC by Bastien Nocera
Modified: 2009-06-18 10:23 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bastien Nocera 2008-12-05 01:16:45 UTC
$ totem-video-indexer 'file.avi' | grep BITRATE
TOTEM_INFO_AUDIO_BITRATE=-590231

Pretty certain that code is broken:
      if (gst_tag_list_get_uint (bvw->priv->audiotags, GST_TAG_BITRATE,
          (guint *)&integer) ||
          gst_tag_list_get_uint (bvw->priv->audiotags, GST_TAG_NOMINAL_BITRATE,
          (guint *)&integer)) {
Comment 1 Bastien Nocera 2008-12-05 01:19:32 UTC
Only seems to happen with the whole file. File is House.S05E08.HDTV.XviD-LOL.avi.
Comment 2 Tim-Philipp Müller 2008-12-05 11:41:01 UTC
Code looks fine to me at first glance (assuming sane bitrate values) - why do you think it's broken?

Will have a look at the file.

What does gst-launch-0.10 -t playbin uri=file:///bleh.avi  show for the bitrates?


Comment 3 Tim-Philipp Müller 2008-12-11 09:08:14 UTC
Looks like an issue in mp3parse and/or mad.

FOUND TAG      : found by element "mpegaudioparse0".
         bitrate: 3704736000
         has crc: TRUE
    channel mode: joint-stereo
FOUND TAG      : found by element "mad0".
        duration: 2591000000000
         bitrate: 131952
Comment 4 Mark Nauwelaerts 2009-06-18 10:23:34 UTC
Looks like it is fixed nowadays:

FOUND TAG      : found by element "mpegaudioparse0".
         bitrate: 132000
         has crc: TRUE
    channel mode: joint-stereo
FOUND TAG      : found by element "mad0".
        duration: 2591000000000
         bitrate: 131952
FOUND TAG      : found by element "mad0".
           layer: 3
            mode: joint
        emphasis: none

and also:

TOTEM_INFO_AUDIO_BITRATE=131