making a video out of an audio file and a single image:
$ ffmpeg -loop 1 -i cover.jpg -i audio_file.mp3 -c:v libx264 -tune stillimage -c:a aac -shortest -pix_fmt yuv420p output.mp4
Note: the image must have a height that’s divisible by 2.
linux