[FFmpeg-user] "Non-monotonous DTS in output stream" error, previous and current values are equal

Ted Park kumowoon1025 at gmail.com
Tue Feb 25 20:49:11 EET 2020


> I tried adding "-fflags +ignpts" before input but that didn't help, there are still DTS warnings, however, this time the values are not equal for some reason (except the first pair)

I think igndts is more likely to affect the result but not sure in what way.

Since you have bad timestamps in your original file, you’ll probably have to settle for workarounds. Like the first two frame drops seem unavoidable, they both have dts 0 and one has pts 0.

The warnings do tell you how it handles the problem when it adjusts the timestamps so they’re not the same, with the caveat that it might not be accurate. You could also generate new timestamps based on frame rate but that might not be accurate, and cause audio sync issues.

As I recall you said you downloaded the files directly, so the timestamp related frame drops probably happens to everyone who plays that stream? Are they actually disruptive, or could you just keep the original stream as is, knowing 1 out of 120 frames or something will be dropped when playing back? I’m pretty sure this is your best bet for keeping audio and video synchronized.

Ted Park

More information about the ffmpeg-user mailing list