<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">if u are trying to play h264 content from mp4 file , u can look for codec<br>
data inside setcaps function in ur decoder plugin .<br>
<br>
have a look at ffmpeg decoder plugin . src<br>
<br></blockquote><div> </div><div>Thankyou for your quick reply. Yes i am trying to play an MP4 file with h264 content. have coded to search for "codec_data" in setcaps function in my decoder as follows:<br><br>
<br> if (gst_structure_has_name (structure, "video/x-h264")) {<br><br> // has a codec_data<br> if ((value = gst_structure_get_value (structure, "codec_data"))) {<br> GstBuffer *buffer;<br> gint i, len;<br>
guint8 *data;<br> guint size, num_sps, num_pps;<br> guint nal_length_size;<br><br> buffer = gst_value_get_buffer (value);<br> data = GST_BUFFER_DATA (buffer);<br> size = GST_BUFFER_SIZE (buffer);<br> ....<br>
....<br></div><div><br>But i am getting NULL in "value" variable i.e. my decoder is unable to find "codec_data" in caps structure.<br><br>I have checked with qtdemux also, it adds the required "codec_data" to the caps structure. <br>
But somehow my code is not able to retrieve the same.<br><br>Please help me. <br><br>Thankyou<br><br> <br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
On Fri, May 4, 2012 at 11:38 AM, Vikas Malhotra <<a href="mailto:ervikaspec@gmail.com">ervikaspec@gmail.com</a>>wrote:<br>
<br>
> Hello everybody,<br>
><br>
> I am trying to write a H264 decoder plugin. My decoder needs SPS NAL Unit<br>
> to construct the decoder API.<br>
> I am new to GStreamer Source. So, I am not sure how to retrieve SPS NAL<br>
> Units in my decoder plugin.<br>
><br>
> Please help me solve my problem.<br>
><br>
> Thankyou<br>
><br>
> --<br>
><br>
> --------------------------------------<br>
> Vikas<br>
> Bachelor of Engineering<br>
> Computer Science and Engineering<br>
> <<a href="http://www.vikaspec.co.cc/" target="_blank">http://www.vikaspec.co.cc/</a>><br>
><br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20120504/be556ab3/attachment-0001.htm" target="_blank">http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20120504/be556ab3/attachment-0001.htm</a>><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Fri, 4 May 2012 08:38:47 +0200<br>
From: Marc Leeman <<a href="mailto:marc.leeman@gmail.com">marc.leeman@gmail.com</a>><br>
Subject: Re: [gmail] Help Needed : H264 SPS Extraction<br>
To: Discussion of the development of and with GStreamer<br>
<<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>><br>
Message-ID: <<a href="mailto:20120504063847.GE2382@scorpius.homelinux.org">20120504063847.GE2382@scorpius.homelinux.org</a>><br>
Content-Type: text/plain; charset="iso-8859-15"<br>
<br>
> I am new to GStreamer Source. So, I am not sure how to retrieve SPS NAL<br>
> Units in my decoder plugin.<br>
><br>
> Please help me solve my problem.<br>
<br>
See:<br>
<br>
<a href="http://bit.ly/KjiZQV" target="_blank">http://bit.ly/KjiZQV</a><br>
<br>
<br></blockquote><div> </div><div> Thanks for your reply. I have coded the required thing in setcaps to retrieve "codec_data" in my decoder which would provide me with SPS units but somehow my setcaps function is not able to retrieve the "codec_data" in caps structure.<br>
<br>Please help. <br><br>Thankyou <br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
--<br>
greetz, marc<br>
harvey 2.6.29.1 #1 PREEMPT Mon Apr 6 22:33:31 CDT 2009 GNU/Linux<br>
</blockquote></div><br>