[Libav-user] Frame order from TS demux - mpeg2video vs h264

Kalileo kalileo at universalx.net
Mon Apr 30 08:50:06 CEST 2012

The decoder gives you the (decoded) pictures in the correct order. 

The PTS value _should_ reflect that order.

I would try to attach the metadata in the order as you get it from the demuxer with the pictures as you get them out of the decoder.

Basically, it is exactly the same syncing you have to do with audio and video. With h264 the order is in the pts value (or as the decoded frames come out of the decoder.)

More information about the Libav-user mailing list