ffmpeg -loop 1 -i image.png -i audio.mp3 -shortest -c:v libx264 -tune stillimage output.mp4

Category: Media & Conversion

ffmpeg -loop 1 -i image.png -i audio.mp3 -shortest -c:v libx264 -tune stillimage output.mp4

Turn an image and audio into a video

Builds a video from a still image plus an audio track: -loop 1 repeats the image, -shortest ends the video when the audio finishes, and -tune stillimage optimizes the x264 encode for static content. Audio is encoded as AAC by default.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.