Code
- Node.js
- Python
- cURL
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 inputconcat=n=3:v=1:a=0— concatenate the 3 video streams, 1 video, 0 audioformat=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
-t 5 per input. For crossfades between images, replace concat with xfade.