Skip to main content
Combine a set of images and an audio track into a single video. Each image displays for a fixed duration and the audio plays over the top — finishing when the audio ends.

Code

How the FFmpeg command works

  • -loop 1 -t 5 -i {{in_img_1}} — loop each image for 5 seconds (repeat per image)
  • -i {{in_audio_1}} — audio track as the last input
  • concat=n=3:v=1:a=0 — concatenate the 3 video streams, 1 video, 0 audio
  • format=yuv420p — pixel format compatible with most players
  • -map [v] -map 3:a — pick the concatenated video + audio from input index 3
  • -shortest — stop when the shortest stream ends (typically when video runs out)
  • {{out_1}} — output file
For longer images, increase -t 5 per input. For crossfades between images, replace concat with xfade.

Response