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 704548 - qtdemux: set proper caps for mpeg-1 audio
qtdemux: set proper caps for mpeg-1 audio
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
1.1.2
Other Linux
: Normal normal
: 1.1.3
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-07-19 12:08 UTC by Arnaud Vrac
Modified: 2013-07-19 12:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
qtdemux: set proper caps for mpeg-1 audio (1.41 KB, patch)
2013-07-19 12:08 UTC, Arnaud Vrac
committed Details | Review
qtdemux: nitpicking in esds parsing (1.28 KB, patch)
2013-07-19 12:12 UTC, Arnaud Vrac
committed Details | Review

Description Arnaud Vrac 2013-07-19 12:08:55 UTC
Created attachment 249623 [details] [review]
qtdemux: set proper caps for mpeg-1 audio

qtdemux sets invalid caps for mpeg-1 audio, since it reuses the AAC caps created from the fourcc (mp4a) field:

audio/mpeg, mpegversion=(int)1, framed=(boolean)true, stream-format=(string)raw, layer=(int)3, codec_data=(buffer)0990, rate=(int)48000, channels=(int)2

With the patch I now get:

audio/mpeg, mpegversion=(int)1, parsed=(boolean)true, codec_data=(buffer)0990, rate=(int)48000, channels=(int)2

The layer is not set anymore, since it can also be layer 1 or 2. We can't know without parsing the elementary stream.
Comment 1 Arnaud Vrac 2013-07-19 12:12:15 UTC
Created attachment 249624 [details] [review]
qtdemux: nitpicking in esds parsing

This patch just cleans up caps creation in the ESDS atom, I didn't want to merge this in the first patch.
Comment 2 Sebastian Dröge (slomo) 2013-07-19 12:27:04 UTC
commit 40ab78825c1fa8e6c09625dd4a33b8c812c3503d
Author: Arnaud Vrac <avrac@freebox.fr>
Date:   Fri Jul 19 01:49:20 2013 +0200

    qtdemux: nitpicking in esds parsing

commit d0d25a5e1f889f818e9afdd9a88b4a8ddf559300
Author: Arnaud Vrac <avrac@freebox.fr>
Date:   Fri Jul 19 01:49:07 2013 +0200

    qtdemux: set proper caps for mpeg-1 audio
    
    Remove AAC specific fields from mpeg-1 audio caps, remove assumption
    that the mpeg1 audio layer is 3, and set `parsed' field.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=704548