til

Create video from image and audio

Technically something simple along the following lines would work.

ffmpeg -i image.png -i audio.mp3 video.mp4

This does however create a file with just a single frame, which doesn't really work on YouTube for example. The following creates a video with repeating frames.

ffmpeg -r 1 -loop 1 -i image.png -i audio.mp3 -acodec copy -shortest -vf scale=1280:720 video.mp4

Credits go to superuser.com/a/1041820/236423

tagged #ffmpeg