Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
ffmpeg - concatenating identical audio-only files results in "non-montonic DTS" warning
+3
−0
I am trying to join some video files and have an issue. I have boiled down the problem to the following minimal working example. I create a 2-second mp4 with a silent audio stream:
$ ffmpeg -f lavfi -i anullsrc -c:a aac -t 2 a.mp4
I then create a file containing the file names to be concatenated:
$ cat videos.txt
file a.mp4
file a.mp4
Then I concatenate the videos:
$ ffmpeg -f concat -i videos.txt -c copy combine.mp4
which gives me this warning:
[mp4 @ 0x638776cb5a80] Non-monotonic DTS in output stream 0:0; previous: 89088, current: 88200; changing to 89089. This may result in incorrect timestamps in the output file.
How do I properly generate the audio file so that I don't get these warnings?
1 comment thread