[libav-api] Non-monotonic DTS after libx264 encoding in my app

Andrey Utkin andrey.krieger.utkin at gmail.com
Wed Oct 19 15:20:29 CEST 2011

The issue was caused by non-monotonic input.
Input is pts-interleaved MPEG TS, packets are permuted for network
fails resilience.
Pity that there seem to be no libav* functionality for sorting packets
for such cases. If that's not correct, please tell about it.
For now i just push frames to decode/encode as is, and then write
packets to file straightly by oformat->write_packet(), skipping
av_write{,_interleaved}_frame(). Produced file plays good in VLC, but
stutters in ffplay, i think it is caused by dropping frames with "old"
non-monotonic pts.

Andrey Utkin

More information about the libav-api mailing list