Free Convert avi and flv files to iPod and iPhone 3GS with Linux command line

You have a lot of FLV and AVI files that you want to add to your Ipod Touch or iPhone 3GS.  You can’t just drop them in to your iTunes program since they need to be in an acceptable format.

If you are using Linux, ffmpeg is a great tool that can convert all the multimedia files you need to a format acceptable for your iPod, iPod Touch, and iPhone 3GS.

Conversion steps:

1. Go to a Linux command line Shell and type in the following command for each file you wish to convert.

ffmpeg -i input.avi -acodec libfaac -ab 128kb -vcodec mpeg4 -mbd 2 -flags +4mv -trellis 2 -cmp 2 -subcmp 2 -s 320×240 output.mp4

Note: replace input.avi with the filename you wish to convert, and output.mp4 with the name of the file to be outputed (this must remain with as .mp4)

Pay attention to the command line results.  If all goes well, ffmpeg will stream and convert the file.  ffmpeg may shout out that you need to install codecs.  In that case, it will tell you what is missing, and after you’ve added the missing codec, try again.

2. Copy the outputed files to a disk key and plug them into a Windows machine to drop them into your iTunes software.

3. Sync your iPod or iPhone and you are ready to go.

Please let us know if this worked for you and/or if you have suggestions on how to improve it.