H264/RTP and setcaps

Jarosław Przybyłowicz jaroslaw.przybylowicz at mlabs.pl
Mon Apr 11 14:59:07 PDT 2011


W dniu 2011-04-11 23:54, Chuck Crisler pisze:
> I am trying to merge some custom changes into gstrtph264pay.c and 
> depay.c. I am working with gst-plugins-good version 0.10.14 and 
> porting changes from 0.10.10. In pay_setcaps, if the code can't find a 
> structure value named 'codec_data', then the packetized data member is 
> set to false (and you miss most of the initialization), which is 
> happening in my implementation. Where should this value be set and 
> what is the significance of it?
>
> Thank you,
> Chuck Crisler
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Hi,

codec_data is required to properly decode video stream (it's all about 
SPS and PPS parameters). If codec_data is not set on caps, then the only 
possible place where it can be found is directly in the stream (that's 
why initialization is missing - h264 decoder need to figure sps and pps 
parameters directly from the bytestream itself).

I hope this explains everything,

Jaroslaw



More information about the gstreamer-devel mailing list