[Libav-user] H.264 nal decode

Alex Cohn alexcohn at netvision.net.il
Wed Apr 11 17:03:41 CEST 2012


I found an interesting thread:
http://libav-users.943685.n4.nabble.com/Decode-H264-streams-how-to-fill-AVCodecContext-from-SPS-PPS-td2484472.html

tl;nr: you cannot decode the SPS and PPS Nal units not as separate
packets, but together with an IDR packet.

Also, I seem to have been worng: I you should send the 00000001
annex-b headers to avcodec_decode_video2().

BR,
Alex


More information about the Libav-user mailing list