How can I deserialize codec_data from h.264 (avc) caps

Nicolas Dufresne nicolas at ndufresne.ca
Thu Sep 6 23:37:19 UTC 2018


Le jeudi 06 septembre 2018 à 14:25 -0700, David Ing a écrit :
> I can't figure out how to deserialize the codec_data within a caps
> structure like this one:
> 
> video/x-h264
> > stream-format=(string)avc
> > alignment=(string)au
> > level=(string)4.2
> > profile=(string)main
> > codec_data=(buffer)014d402affe10029674d402a965403c0113f2e02d4040405
> > 00000300010000030032e04000fa000005dc026a540ed0913501000468ce3520

I believe this is just hex representation of the bytes, isn't it ? From
API point of view, gst_caps_from_string() will handle this. I believe
we use a GValue transform to do string to GstBuffer, and have a handle
for that transform registered into GLib.

> > width=(int)1920
> > height=(int)1080
> > framerate=(fraction)25/1
> > pixel-aspect-ratio=(fraction)1/1
> > interlace-mode=(string)progressive, parsed=(boolean)true
> > 
> Can someone point me in the right direction?
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list