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

Luca Barbato lu_zero at gentoo.org
Mon Oct 17 18:10:57 CEST 2011

On 10/17/11 9:07 AM, Andrey Utkin wrote:
> (I re-ask my question of october, 11. I haven't check it with updated
> git HEAD now.)
> When i link my transcoding program with libav (git HEAD), i encounter
> a problem that i dont meet with ffmpeg libs.
> I get "[mpegts @ 0x8ee26e0] Application provided invalid, non
> monotonically increasing dts to muxer in stream 0: 248555>= 242555".
> My sources: https://github.com/krieger-od/transcoder/blob/libav/transcoder.c
> My faulty media: ftp://golosimperii.org/tmp/libav_monotonity_bug_test.mpg
> When i transcode it using ffmpeg utility, it goes correct. So it must
> be sth in my program, not in libav.
> Any comments, please?

Print the pts/dts of every packet and compare them, do you happen to set 
manually the dts?


More information about the libav-api mailing list