Hey<div><br></div><div>do all ur raw payload u r sending to the decoding function are in NAL format like 0001xRawpayload format??</div><div><br></div><div>I have done the same thing with the RTP packets. Removed RTP headers inserted NAL start prefix headers i.e. 0001 before each NAL and then entered the data to decoding functions.</div>
<div><br></div><div>And if the output is greater than zero, you will get the decoded output in YUV format in the output buffer.</div><div><br></div><div><br><br><div class="gmail_quote">On Tue, Apr 10, 2012 at 11:49 AM, srikanta mondal <span dir="ltr"><<a href="mailto:srkntmondal@gmail.com">srkntmondal@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thank you for reply. <br>@kalileo I have simply got the UDP socket and get the byte array from it. Now that byte array is basically the x264_nal_t*(p_payload[0]) from sender side. That encoded byte array come to client side. Now I want to decode that array with its corresponding parameter values. I think it can be done by using avcodec_decode_video2(). But unfortunately the encoded array may be not appropriate for the decoding. There may some addition of bytes with the array. Please help.<br>
<br>@<span>Alex I get the error of segmentation fault by gdb debugger.<div class="im"><br><br>Thanks and regards <br>Srikanta Mondal<br></div></span><div class="HOEnZb"><div class="h5"><br><br><br><div class="gmail_quote">
On Tue, Apr 10, 2012 at 11:09 AM, Alex Cohn <span dir="ltr"><<a href="mailto:alexcohn@netvision.net.il" target="_blank">alexcohn@netvision.net.il</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Mon, Apr 9, 2012 at 15:02, srikanta mondal <<a href="mailto:srkntmondal@gmail.com" target="_blank">srkntmondal@gmail.com</a>> wrote:<br>
> Thank you for your reply.<br>
><br>
</div><div>> @Alex I have used also the following<br>
> sizeDelay = x264_encoder_delayed_frames(encoder);<br>
> But all are in vein.<br>
><br>
> Thanks all of You<br>
> Srikanta Mondal<br>
<br>
</div>It's not clear what kind of failure you see.<br>
<div><div><br>
Alex<br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</div></div></blockquote></div><br>
</div></div><br>_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br></blockquote></div><br></div>