@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.
Thanks and regards Srikanta Mondal On Mon, Apr 9, 2012 at 6:24 PM, Kalileo <[email protected]> wrote: > > On Apr 9, 2012, at 19:02 , srikanta mondal wrote: > > > Thank you for your reply. > > @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. > > Then copy the picture - before you encode it - to the playing thread and > display it there. > > Or, if your input picture is encoded already, then copy the encoded frame > to the playing thread, decode it there, and display it. > _______________________________________________ > Libav-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/libav-user >
_______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
