Japanatron Logo

I wanted to figure out a way to quickly and easily combine an image file (jpg) and audio file (mp3) into a video file (mov) using the free media converter tool ffmpeg.  This would allow me to upload my podcast episodes and songs to YouTube.  After extensive googling and testing I found the combination that finally worked.  And since I'm such a nice dude, I'll share it with you:

ffmpeg -loop 1 -i image-file.jpg -i audio-file.mp3 -shortest -acodec copy -f mov video-file.mov

Notes
* The above is on Ubuntu Server 12.04 LTS.  Other ffmpeg versions may require tweaking of command options, hence the reason this took me extensive research and testing.
* Ffmpeg accepts a very wide range of file formats, so png, aif, wav, etc. can also be used.

UPDATE
* On Ubuntu at least, ffmpeg has been replaced by the avconv command; however, the exact same command format above works with avconv.  Here it is again for copy/paste convenience:

avconv -loop 1 -i image-file.jpg -i audio-file.mp3 -shortest -acodec copy -f mov video-file.mov

* Here's how to install avconv:

apt-get install libav-tools

* Working fine on Ubuntu 14.04 LTS

Related Articles

iPhone Mail with MS Exchange M...

PROBLEMOnce in a while I am unable to delete an email message on my iPhone.  It throws an "unable to move message to trash" error message.  I use the normal iPh...

The Hunt for the Ultimate Blue...

I'm obsessed with bluetooth.  So much so that I've been hunting for heaven's own pair of bluetooth headphones for my Tokyo subway commutes.  I'm already on my 5...

The Hunt For the Ultimate Free...

My aged Netgear NAS was primed and ready for a relaxing retirement, so I pursued a befitting upgrade.  I briefly considered an out-of-the-box NAS offering from ...

Building the Ultimate Media Ce...

Also known as a "home theater PC" (HTPC), a media center PC is connected to a TV and is built and configured for streaming / downloading media available on the ...