[FFmpeg-user] Application provided invalid, non monotonically increasing dts to muxer

Steve Dibb steve.dibb at gmail.com
Thu Dec 10 10:06:38 EET 2020


Hey there,

I'm writing a remuxer for Blu-rays, and I've got everything working well,
except sometimes I will run into these errors:

[matroska @ 0x1782480] Application provided invalid, non monotonically
increasing dts to muxer in stream 1: 66413 >= 11651

I've got my C code here:
https://gist.github.com/beandog/0f9a3721eeb6e4633c5f25a2f8d32450

Basically, I'm doing av_read_frame(input, &bluray_packet),
then updating pts, dts  using av_rescale_q_rnd and duration with
av_rescale_q
then av_interleaved_write_frame(output, &bluray_packet);

So no encoding on it, just copying it over.

Any idea how to work around these errors?

Thanks! :D

Steve


More information about the ffmpeg-user mailing list