FFmpeg – Join Audio and Image to Output as Video

audioconcatenationffmpegvideo

I have 1 image (jpg) and 1 audio file (MP3) and I would like to output this as a video file (say AVI for example).

Does anyone know how to use FFMPEG to join the two? I'd like to show the image for the duration of the audio.

Any ideas anyone?

Best Answer

If you are in Windows, You can do it in Windows Movie maker too ... if you need instructions please leave a comment

For FFmpeg use this

ffmpeg -loop_input -vframes 14490 -i imagine.jpg -i audio.mp3 -y -r 30 
    -b 2500k -acodec ac3 -ab 384k -vcodec mpeg4 result.mp4
  • vframes 14490 is the number of frames that should be looped in order to have a continuous image for the entire audio.mp3 file

    Ex: For 8 minutes and 3 seconds ((8m x 60s + 3s) x 30fps = 14490 vf)

Resource from here

Related Question