[Libav-user] Example for recompressing a video?

Nicolas George nicolas.george at normalesup.org
Fri Jun 1 16:05:37 CEST 2012

Le tridi 13 prairial, an CCXX, jettoblack a écrit :
> I used the output-example.c as a starting point, but it generates fake
> video/audio data in temporal order.  In my case I am demuxing a IPB encoded
> video so the frames are decoded out of order.

The frames are decoded out of order internally, but you do not need to know
that: avcodec_decode_video42() returns them in presentation order. And, on
the other direction, avcodec_encode_video42() accepts the frames in
presentation order and returns the packets in muxing order.


  Nicolas George

More information about the Libav-user mailing list