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

Brian Chi beyond702 at gmail.com
Thu Dec 27 04:23:20 CET 2012

I see, but the function
find the start code 0x000001, how can i resolve this problem to make it
The first 4 bytes in the AVPacket is the size of this NALU, should i
replace the first 4 bytes with 0x000001 or 0x00000001? Is that ok?
Thanks a lot for your help.

2012/12/26 Alex Cohn <alexcohn at netvision.net.il>

> 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
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user

Best Regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20121227/c0e88b92/attachment.html>

More information about the Libav-user mailing list