Setting codec_data in h264 caps for qtmux

Stefan Sauer ensonic at hora-obscura.de
Tue Apr 3 06:33:48 PDT 2012


On 04/03/2012 09:57 AM, coezbek wrote:
> From other emails I have gathered that the codec_data should be set to the
> AVCDecoderConfigurationRecord from ISO 14496-15 Section 5.2.4:
>
> aligned(8) class AVCDecoderConfigurationRecord { 
>   unsigned int(8) configurationVersion = 1;
>   unsigned int(8) AVCProfileIndication;
>   unsigned int(8) profile_compatibility;
>   unsigned int(8) AVCLevelIndication;
>   bit(6) reserved = ‘111111’b;  
>   unsigned int(2) lengthSizeMinusOne;
>   bit(3) reserved = ‘111’b;  
>   unsigned int(5) numOfSequenceParameterSets;
>   for (i=0; i< numOfSequenceParameterSets; i++) {
>     unsigned int(16) sequenceParameterSetLength ;
>     bit(8*sequenceParameterSetLength) sequenceParameterSetNALUnit;
>   }
> unsigned int(8) numOfPictureParameterSets;
>   for (i=0; i< numOfPictureParameterSets; i++) {  
>     unsigned int(16) pictureParameterSetLength;
>     bit(8*pictureParameterSetLength) pictureParameterSetNALUnit;
>   }
> }
>
> Does GStreamer have any helper function / datastructure to construct this
> header? 
A couple of them are here:
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstpbutilscodecutils.html

Stefan

> Does qtmux expect the record to be given as a raw buffer or wrapped somehow?
>
> Any help would be appreciated.
>
> Christopher
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Setting-codec-data-in-h264-caps-for-qtmux-tp4525597p4528058.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list