# How to convert MP3 to YouTube-allowed video format

audio conversionmp3video conversion

I have many MP3 files on my website and I have decided to upload them to Youtube, but unfortunately for me, YouTube does not allow me to do that. It requires video format only.

How can I convert these MP3s to video and add same set of images (one or more images) to the resulting video format.

I need to do this in bulk, not individually, I have hundreds of MP3 files.

It can be either a Windows-based or Linux-based application.

ffmpeg -loop 1 -r 1 -i pic.jpg -i audio.mp3 -c:a copy -shortest -c:v libx264 output.mp4

The -c:v libx264 encoding considerably reduces the output file size as mentioned at: https://superuser.com/a/1472572/128124