<div dir="ltr">Yes, it is just a hex representation of a byte array.<div><br></div><div>To clarify my question:  How can I extract the information from the byte array?<div><br></div><div>I found some code inside gst-plugins-bad (gsth264parse.c) that seems like it might work.  I am probably going to hack something together from that (unless anyone knows of a better solution).</div></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Sep 6, 2018 at 4:44 PM Nicolas Dufresne <<a href="mailto:nicolas@ndufresne.ca">nicolas@ndufresne.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le jeudi 06 septembre 2018 à 14:25 -0700, David Ing a écrit :<br>
> I can't figure out how to deserialize the codec_data within a caps<br>
> structure like this one:<br>
> <br>
> video/x-h264<br>
> > stream-format=(string)avc<br>
> > alignment=(string)au<br>
> > level=(string)4.2<br>
> > profile=(string)main<br>
> > codec_data=(buffer)014d402affe10029674d402a965403c0113f2e02d4040405<br>
> > 00000300010000030032e04000fa000005dc026a540ed0913501000468ce3520<br>
<br>
I believe this is just hex representation of the bytes, isn't it ? From<br>
API point of view, gst_caps_from_string() will handle this. I believe<br>
we use a GValue transform to do string to GstBuffer, and have a handle<br>
for that transform registered into GLib.<br>
<br>
> > width=(int)1920<br>
> > height=(int)1080<br>
> > framerate=(fraction)25/1<br>
> > pixel-aspect-ratio=(fraction)1/1<br>
> > interlace-mode=(string)progressive, parsed=(boolean)true<br>
> > <br>
> Can someone point me in the right direction?<br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div>