Create a video from an image and MP3 file using FFmpeg Uses the libx264 codec: ffmpeg -r 1 -loop 1 -y -i input.jpg -i input.mp3 -c:a copy -r 1 -vcodec libx264 -shortest output.mp4