I am trying to concatenate two videos with a blank section of video in between. The screenshots are captured from an Android device and I need to reconstitute them into a continuous run, however gaps appear in the middle because the video can only be three minutes when captured from the android device screen.
Here's how I am doing it:
I have created a PNG with size 1200x1920.
Then used it to create a small video on the command line:
ffmpeg -loop 1 -i screen-black.png -vcodec h264 -t 15 -pix_fmt yuv420p screen-black.mp4
I have created this text file to pass to ffmpeg:
file 'vid1.mp4' file 'screen-black.mp4' file 'vid2.mp4'
And finally executed:
ffmpeg -f concat -i mylist.txt -c copy concat_output.mp4
When I watch the newly created video, the first and second videos from the android device are put together, however the blank video in the middle is missing.
Does anybody know why this is happening?
I thought it might be something to do with the codec, however all videos are in H264. One noticeable thing is the blank video has a resolution of 3072 × 1920, whereas the other two videos have a resolution of 1200 x 1920
(Just in case it is relevant, I'm doing this on a Mac so the file has to be compatible with Quicktime).