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

Max Vlasov max.vlasov at gmail.com
Wed Feb 10 12:30:50 CET 2016

On Wed, Feb 10, 2016 at 1:32 AM, Arthur Muller <muller at vki.com> wrote:

> 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.
As long as I remember I solved a similar problem after providing the last
frame of the sequence by calling avcodec_encode_video2  with frame
parameter being NULL in a loop while got_packet returns true.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20160210/40552894/attachment.html>

More information about the Libav-user mailing list