[gst-devel] sequence header from "codec_data" for WMV VC-1 Advanced and Simple Main profiles.

Felipe Contreras felipe.contreras at gmail.com
Mon Oct 20 18:48:06 CEST 2008


On Sat, Oct 18, 2008 at 12:32 AM, Ajitabh Saxena <ajitabhp at broadcom.com> wrote:
> Hi All,
>            We have written a gstreamer plugin and it announces itself as a
> decoder. Since my decoder will reject anything without the sequence header.
> I am trying to the get the sequence header from a WMV AP file but not able
> to get it. I am using totem to test my plugin.
>
> In my sink_set_caps function:
> value=gst_structure_get_value(XX,"codec_data");
> buff = get_value_get_buffer(value);
> xyz = GST_BUFFER_DATA(buff);
> size = GST_BUFFER_SIZE(buff);
>
>
> I am able to get the sequence header for Advanced profile but for simple
> main it gives me only 4 bytes.

4 bytes of codec data is correct for main and simple profile.

-- 
Felipe Contreras




More information about the gstreamer-devel mailing list