FFMPEG - Non-Monotonous DTS on concat

匿名 (未验证) 提交于 2019-12-03 08:59:04

问题:

I have several files I need to concat. It seems sometimes the files work and concat without an issue. Then on other files, the files won't concat and I get the "non-monotonous DTS". I've been googling on what should I make equal on those files so that they concat correctly but I still haven't found out.

Is there anyway to make the DTS exactly the same for all the files? Can I reencode the files with FFMPEG and expect al DTS to be monotonous? I believe I tried reencoding them, It took a while, the size increased but I seemed to get the same errors.

回答1:

After many hours of tries without any result I changed 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



回答2:

Same problem, I got it work with reencoding files in libx264 before concat :

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

( The problem was persistent with mpeg4 reencoding )



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!