[Libav-user] H.264 nal decode

Kalileo kalileo at universalx.net
Tue Apr 10 07:03:53 CEST 2012


On Apr 10, 2012, at 11:31 , srikanta mondal wrote:

> @kalileo   Actually I want to send the encoded frame over the network by UDP

Open the target udp url as output file and then use av_write_frame() to stream. 

> 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.

Are you receiving the udp stream? If yes, then you have it in memory already. Simply demux and decode it.

It is not much of a difference for the whole process if you read from a file or from a udp url. 


More information about the Libav-user mailing list