[FFmpeg-user] How to get encoded AVPackets in display order?

Unga unga888 at yahoo.com
Sun Jun 10 19:38:15 CEST 2012


Hi all

The documentation for the avcodec_encode_video2() says:
"The output packet does not necessarily contain data for the most recent 
frame, as encoders can delay and reorder input frames internally as 
needed."

I'm interested getting output AVPackets in display order, that is, same input order as input AVFrames.

What are my options for achieving that?

Best regards
Unga


More information about the ffmpeg-user mailing list