Simple MP3 to Video for sharing on Facebook


Wanted to share a short sample audio file (MP3) on Facebook, but they only accept images or video. So... found a quick and simple way to convert an MP3, using ffmpeg to a black video with sound. 😛

> ffmpeg ^
    -f lavfi ^
    -i color=s=160x120:r=2 ^
    -i AudioFile.mp3 ^
    -c:v libx264 ^
    -preset ultrafast ^
    -c:a copy ^
    -shortest ^