How do I concatenate videos, adding a gap between each, using ffmpeg?

Started by kalpana, Oct 18, 2023, 03:58 AM

Previous topic - Next topic

kalpana

I want something very simple. I want to concatenate a few videos, but leave a brief gap (about half a second) between each.

The videos all have the same format (video dimensions and codecs), and so I don't need any conversion.

To concatenate without a gap is straightforward (video.list is a text file containing a list of the videos in the format file 'video 1.mp4' etc.):
Code:
ffmpeg -f concat -i videos.list -codec copy output-video.mp4
Now, how can I do the same but leave a brief gap between each video? The gap doesn't have to be exactly half a second; an approximate value will do.

Thank you