Howto create a youtube video from mp3/ogg audio using a picture
By tom on 22. April 2010 - 19:46
If you want to create a youtube video from an audio file, here is how to do this.
All you need is the audio file, a single picture, and ffmpeg.
First find out the lenght of the audio file in seconds, you'll need it. Here is an example with a 420 seconds file:
ffmpeg -loop_input -i picture.jpg -vcodec mpeg4 -r 25.00 -qscale 2 -s 480x360 \ -i audiofile.mp3 -acodec libmp3lame -ab 128k -t 420 video.avi
This will create a Hi-Res MPEG-4 video with 128k audio. The trick here is to use that one picture and loop it for -t seconds.
Tags: