[Libav-user] Keeping all frames in mp4 with h264 codec

Arthur Muller muller at vki.com
Tue Feb 9 23:32:31 CET 2016

One more follow-up: I'm adding 36 non-trivial frames and, at the very end, I add a NULL frame. And, as expected, at the end, the entry codec->frame_number is indeed set to 37, but I can only see the first 18 of them.

I also noticed that the call to avcodec_encode_video2 returns got_packet=0 about half the time. I suspect this is related. But other than setting max_b_frames to zero I'm not sure what else I need to do to recover all my frames all the time.



More information about the Libav-user mailing list