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 391554 - mp3parse does not set the bitrate in the src caps
mp3parse does not set the bitrate in the src caps
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gst-plugins-ugly
git master
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-01-01 16:16 UTC by Julien MOUTTE
Modified: 2007-05-13 04:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch enabling bitrate on src caps (763 bytes, patch)
2007-01-01 16:18 UTC, Julien MOUTTE
needs-work Details | Review

Description Julien MOUTTE 2007-01-01 16:16:41 UTC
Is there a specific reason why mp3parse is not setting the bitrate in the src caps ?  It seems everything is prepared to do so but it just doesn't do it...
Comment 1 Julien MOUTTE 2007-01-01 16:18:13 UTC
Created attachment 79143 [details] [review]
Proposed patch enabling bitrate on src caps

I think this is a nice feature to have. Let me know if there's a corner case i should know about.
Comment 2 Michael Smith 2007-01-02 11:47:18 UTC
I don't think anything ever sets mp3 bitrates in caps. I don't think it's a particularly sensible thing to add here.

The patch as-is is presumably wrong for VBR? If we wanted this, we'd have to detect VBR somehow, then suppress bitrate-in-caps.

I think we mostly use tag messages for this sort of thing; I'd prefer that unless there's a compelling reason to do otherwise.
Comment 3 Julien MOUTTE 2007-01-02 12:08:08 UTC
well there are some plugins (demuxers, encoders) that are setting the bitrate in the caps.

This is pretty useful and sometimes even required for some decoders or muxers.

The bitrate can be a mandatory parameter for codec configuration and getting it through a tag seems wrong to me.
Comment 4 Jan Schmidt 2007-03-12 14:53:12 UTC
Now that mp3parse supports seeking, querying etc, is there any reason to have this patch?

In general, while the bitrate, could go in the caps, for VBR streams it _will_ change on every packet, causing a lot of unnecessary caps changes. Other mp3 parameters such as samplerate and channel count are free to change on every packet too, but they don't tend to whereas bitrate does.

Comment 5 David Schleef 2007-05-13 04:51:20 UTC
mp3 isn't a format where it's necessary to put the bitrate in the caps.  I don't actually know of a format where it is *necessary*.  The appropriate place for it is in a tag.

Closing.