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

Arthur Muller muller at vki.com
Thu Feb 11 00:19:51 CET 2016


Bernhard,

>Your question 1) You have to query codec at end of frames, until it has no more data to output.
>Your question 2) libav does not know, how many packets the codec has pending. So you have to "loop", until you get no more data.
>Your questions 3 & 4) You should always call avcodec_encode_video2 with NULL after encoding real frames, independend of used codec, until you get no more data.

Done. Looks good now. Let's see what the end-user has to say about the outcome.

Thanks to all!!

-Arthur



More information about the Libav-user mailing list