[Libav-user] There is no picture in the output file while encoding with libx264 as codec.

Alex Cohn alexcohn at netvision.net.il
Wed Dec 26 11:39:51 CET 2012


On Wed, Dec 26, 2012 at 6:35 AM, Brian Chi <beyond702 at gmail.com> wrote:
> Yes, I read all frames, most return value of function "ff_avc_parse_nal_units" is 0.
> i think maybe the problem is about NAL, will the NAL layer of H264 frame be detached in the function "av_read_frame".
> So in the "ff_avc_parse_nal_units", it can't find start code(0x000001), and discard the frame.

Packets in mp4 are not stored in annex B format, you will never see
0x000001 start codes there. See
http://msdn.microsoft.com/en-us/library/windows/desktop/dd757808(v=vs.85).aspx


More information about the Libav-user mailing list