Creating video with audio and still image for YouTube

Posted by scottlabs on Super User See other posts from Super User or by scottlabs
Published on 2010-01-21T23:21:53Z Indexed on 2012/12/05 17:08 UTC
Read the original article Hit count: 159

Filed under:
|
|
|

I'm running the following command:

ffmpeg -i audio.mp3 -ar 44100 -f image2 -i logo.jpg -r 15 -b 1800 -s 640x480 foo.mov

Which successfully outputs a video with my recorded audio and an image on it.

When I try and upload this to YouTube it fails to process, regardless of the formats I try: .mov, .avi, .flv, .mp4

Is there some setting I'm missing in the above that would generate a format Youtube will accept? I've tried looking through the ffmpeg documentation but I'm in over my head.

I did an experiment by putting a 2 second video with a 30 second mp3. When I uploaded to youtube, the resulting video was only 2 seconds long. So it may be that YouTube looks only to the video track for the length, and since a picture is only a frame long or whatever, maybe that borks it.

© Super User or respective owner

Related posts about video

Related posts about mp3