Hi,<div><br></div><div>I am facing one issue regarding flv file where codec_data is needed to decide it's profile but codec_data field is missing while extract by our self GstStructure but when stream directy played on target found codec_data is present. </div>
<div><br></div><div>Out put from code is :(Field codec_data missing)</div><div><div><span style="color:rgb(255,0,0);font-family:arial,helvetica,sans-serif">Caps</span><span style="color:rgb(255,0,0);font-family:arial,helvetica,sans-serif"> </span><span style="color:rgb(255,0,0);font-family:arial,helvetica,sans-serif">=</span><span style="color:rgb(255,0,0);font-family:arial,helvetica,sans-serif"> </span><span style="color:rgb(255,0,0);font-family:arial,helvetica,sans-serif">gst_pad_get_caps(Pad);</span></div>
<pre style="margin-top:0px;margin-bottom:0px"><font color="#ff0000" face="arial, helvetica, sans-serif">CapsStructure = gst_caps_get_structure(Caps, 0);</font></pre><pre style="margin-top:0px;margin-bottom:0px"><font color="#ff0000" face="arial, helvetica, sans-serif"><br>
</font></pre><pre style="margin-top:0px;margin-bottom:0px"><font color="#666666"><font face="arial, helvetica, sans-serif">Pad is received as function parameter for padadded function that is callback via: <b> </b></font><b>g_signal_connect(PipelineElements->Demuxer, "padadd", G_CALLBACK (&PadAdded), UserData);</b></font></pre>
</div><div><br></div><div><div><span style="font-family:arial,helvetica,sans-serif"><font color="#9999ff">C</font><font color="#6666cc">apsStructure</font></span><font color="#6666cc"> is video/x-h264, stream-format=(string)avc, pixel-aspect-ratio=(fraction)1/1, width=(int)512, height=(int)288, framerate=(fraction)11720000/781199; </font></div>
<div><font color="#6666cc"><span style="font-family:arial,helvetica,sans-serif">CapsStructure</span> is audio/mpeg, mpegversion=(int)4, framed=(boolean)true, stream-format=(string)raw, rate=(int)44100, channels=(int)2;</font></div>
</div><div><br></div><div>Direct output from target: (Field Codec_data preset)</div><div><b>gst-launch filesrc location=flv_video.flv ! decodebin ! alsasink -v</b></div><div><br></div><div><div>GstFlvDemux:flvdemux0.GstPad:video: caps = video/x-h264, stream-format=(string)avc, pixel-aspect-ratio=(fraction)1/1, width=(int)512, height=(int)288, framerate=(fraction)11720000/781199, <b>codec_data</b>=(buffer)01640033ffe1001b67640033ac2cc2808025b0110000030001000003001e8f18318a8001000468eebcb0</div>
<div>GstFlvDemux:flvdemux0.GstPad:audio: caps = audio/mpeg, mpegversion=(int)4, framed=(boolean)true, stream-format=(string)raw, rate=(int)22050, channels=(int)2, codec_data=(buffer)139056e5a54800</div></div><div><br></div>
<div><br></div><div>It means codec_data is available but not able to get by our own code when needed. Kindly suggest solution.</div><div><br></div><div>Thanks in advance.</div><div><br></div><div>Regards,</div><div>Manmohan</div>
<div><br></div><div><br></div><pre style="margin-top:0px;margin-bottom:0px"></pre>