使用ffmpeg的文件concat mp4不会concat

时间:2019-07-03 19:14:03

标签: video ffmpeg video-processing

我的输入文本文件(a.txt)中有3 mp4。

a.txt-

的内容
file '/Users/path-to-file/1.mp4'
file '/Users/path-to-file/2.mp4'
file '/Users/path-to-file/3.mp4'

我正在执行的命令(参考DocsStackOverflow)-

ffmpeg -safe 0  -f concat -i a.txt -c copy output.mp4

output.mp4已创建。播放视频output.mp4时,我看到正在播放1.mp4的视频和音频。但是,完成后,我只听到了2.mp4和3.mp4的音频。 视频在这段时间内停留在1.mp4的最后一帧。

请您告诉我我所缺少的东西吗?


更新: 该视频仅在QuickTime播放器的快速查看中播放。当我尝试在VLC中打开视频时,视频崩溃。我认为这表明上述步骤中的编码不正确或其他错误。

0 个答案:

没有答案