@kalileo Actually I want to send the encoded frame over the network by UDP and on the client side it will decode. And on the client side I want to decode from memory, ie using array, not using file or hard disk. Simply I want to decode that particular encoded array with function like avcodec_decode_video2(). I have read this function. But this function have crashed when it call. I think there is some parameter missing or some header portion should have to added or remove from the encoded array which is x264_nal_t* (p_payload). Please give me some suggestion.<br>
<br>Thanks and regards<br>Srikanta Mondal<br><br><br><br><div class="gmail_quote">On Mon, Apr 9, 2012 at 6:24 PM, Kalileo <span dir="ltr"><<a href="mailto:kalileo@universalx.net">kalileo@universalx.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On Apr 9, 2012, at 19:02 , srikanta mondal wrote:<br>
<br>
> Thank you for your reply.<br>
> @kalileo I am doing the H.264 compression by opening a file with binary mode and write each encoded x264_nal_t* (p_payload[0]) frame into the file.<br>
<br>
</div>Then copy the picture - before you encode it - to the playing thread and display it there.<br>
<br>
Or, if your input picture is encoded already, then copy the encoded frame to the playing thread, decode it there, and display it.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br>