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 644208 - dcaparse: add depth and endianness to dts caps to allow elements to negotiate on these certain stream format requirements
dcaparse: add depth and endianness to dts caps to allow elements to negotiate...
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: 0.10.22
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-03-08 15:05 UTC by Andreas Frisch
Modified: 2014-12-12 07:58 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Andreas Frisch 2011-03-08 15:05:02 UTC
this is my scenario:
i have a hardware sink which is able to only decode DTS in raw big endian format. no 14bit and no little endian are supported.
now there's dcaparse which would technically be able to do all the necessary transformations to the bitstream, however there is no way how dcaparse and the sink could negotiate on the stream details because CAPS don't support this level of depth yet. ultimately this means that with the current means, i'd have to duplicate code from dcaparse and copy it into our dts-aware sink (dvbaudiosink).
this is actually a real-life issue and not just academic since dts-audio cds, SACDs and audio dvds are usually ripped to wav containers which carry the 14bit LE DTS streams.
Comment 1 Sebastian Dröge (slomo) 2011-03-14 17:10:49 UTC
You could add this as new fields to the caps in dcaparse. In gst_dca_parse_parse_header() the requiremed information should all be available and in gst_dca_parse_parse_frame() the caps are generated if none were set yet or they changed.

Want to make a patch? :)
Comment 2 Sebastian Dröge (slomo) 2011-03-14 17:27:17 UTC
commit 48e8c093dc322aa0962b1245b8668df27ff1357c
Author: Sebastian Dröge <sebastian.droege@collabora.co.uk>
Date:   Mon Mar 14 18:25:25 2011 +0100

    dcaparse: Add depth and endianness to the caps
    
    Some decoders can only handle specific endianness or a fixed
    depth and this allows better negotiation.
    
    Fixes bug #644208.
Comment 3 Tim-Philipp Müller 2011-03-14 21:21:30 UTC
PS: please file a new bug if you also want dcaparse to convert from one format to the other (or at least 14-bit -> 16-bit) thanks!