FFMPEG - Non-Monotonous DTS on concat

I have several files that I need for concat. The files seem to work without issue sometimes. Then in other files the files are not concatenated and I get "non-monotonic DTS". I have been looking for information on what I should be doing equal across these files so that they are concatenated correctly, but I still haven't found it.

Is there anyway to make DTS exactly the same for all files? Can I transcode files with FFMPEG and expect al DTS to be monotone? I believe I was trying to recode them, it took a while, the size increased, but I seem to get the same errors.

+3


source to share


2 answers


After many hours of trying without any result, I switched to Mp4Box and started working with the same plugins.



MP4Box -cat path / to / video1.mp4 -cat path / to / video2.mp4 -cat path / to / video3.mp4 -new path / to / output.mp4

+1


source


Same problem, I was working with reencoding files in libx264 before concat:

ffmpeg -i in.mp4 -c:v libx264 -c:a aac out.mp4

      



(the problem was constant with mpeg4 transcoding)

+1


source







All Articles