I'm trying to compile one .webm file that contains this:
- 10 seconds showing image1.jpg
- Show a movie (an .mp4 file), which lasts about 20 seconds
- 10 seconds showing image2.jpg
- 10 seconds showing image3.jpg
I was unable to find out how/if the concatenate functionality of ffmpeg could do such a thing. Any clues?
You can use the concat filter.
Without audio
-framerate
with frame rate fromvideo.mp4
.With audio
If there is audio in
video.mp4
you'll need to provide audio for the images as well for it to be able to concatenate. Example of generating silence:channel_layout
with audio channel layout (stereo, mono, 5.1, etc) fromvideo.mp4
.sample_rate
with audio sample rate fromvideo.mp4
.-t
duration fromanullsrc
with any associated video input: the concat filter will automatically pad it to match video duration.