[Libav-user] Frame order from TS demux - mpeg2video vs h264
Andrey Utkin
andrey.krieger.utkin at gmail.com
Thu May 3 11:51:24 CEST 2012
Dear topicstarter.
You print the pts timestamps of demuxed packets. It is correct that
they are not sorted by pts. They are ordered by dts, the Decoding
Timestamp. They are in the order for being decoded. You should look at
pts of resulting frames (actually i use AVFrame.pkt_pts, as i see in
my apps sources). Decoders return frames in _pts_ order, that is what
you need.
--
Andrey Utkin
More information about the Libav-user
mailing list