Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

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.

Comments on ffmpeg - concatenating identical audio-only files results in "non-montonic DTS" warning

Post

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?

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

Off-topic? (2 comments)
Off-topic?
Derek Elkins‭ wrote 5 months ago

This seems to be a question about how to use a program, not how to write programs or use tools involved in developing software. Maybe the Linux site would be a better fit?

Trevor‭ wrote 5 months ago

Yeah this community might not be a perfect fit for this question, but it was the closest I could find out of all the Codidact & TopAnswers communities (I'm trying to avoid StackExchange). Since ffmpeg is multi-platform, I figured Linux wasn't the right community.