我正在关注如何使用ffmpeg 连接文件的文档,但在此过程中我看到很多警告,输出视频在第一个块之后停止,但音频继续播放.
这是我用来连接文件的命令:
ffmpeg -f concat -i mylist.txt -c copy output.webm
Run Code Online (Sandbox Code Playgroud)
这是我看到的警告:
[concat @ 0x7fee11822a00] DTS 0 < 2500 out of order
[webm @ 0x7fee11011000] Non-monotonous DTS in output stream 0:0; previous: 2500, current: 0; changing to 2500. This may result in incorrect timestamps in the output file.
Run Code Online (Sandbox Code Playgroud)
视频文件来自外部源.我目前的解决方案是将每个文件重新编码为mp4,然后将它们连接在一起,然后将整个文件重新编码回webm.原因,这需要一些重要的时间,但我找不到另一种解决方案.