I have 3 mp4's in my input text file(a.txt
).
Contents of a.txt
-
file '/Users/path-to-file/1.mp4'
file '/Users/path-to-file/2.mp4'
file '/Users/path-to-file/3.mp4'
The command I am executing (Referring to Docs and StackOverflow) -
ffmpeg -safe 0 -f concat -i a.txt -c copy output.mp4
The output.mp4
is created. When I play the video output.mp4
, I see the video & audio of 1.mp4 playing. But, after it completes, I just hear the audio of 2.mp4 and 3.mp4. The video is stuck on the last frame of 1.mp4 during that time.
Please can you tell me as to what I am missing?
Update: The video plays only in quick-view of quicktime player. The video crashes VLC when I try to open in VLC. I think this suggests the encoding is not right or something else is wrong in the above steps.