Convert avi to mp4 format
I can’t say as I “support” Apple, but from what I’ve seen they still make a very handy media device in the iPod Classic, iPod Nano and Touch. This “quickie” simply makes the file format for movies handy for moving them to your iPod device.
I’m in the habbit of taking my new DVD movies and converting them to digital copies for my family media server so I can stream them around my house. Normally I simply rip them to avi and that’s it. I’ve been using my Ubuntu box more and more and my MacBook Pro less and less (simply because my Ubuntu box has muliple monitors and has my favorite OS on board).
I have been using iSquint to convert my avi movies to mp4 for my iPod(s) in Mac OS X; but it has a pain to fire up my MacBook Pro, convert them, and upload them to my iPod(s).
My movie server is a 233mhz machine with limited ram but lots of storage. I’ve ran this command on it, but it generally takes about 12 hours to convert a 700mb movie to mp4 format from avi, divx or xvid. Needless to say this command isn’t speedy, but it’s reliable and if your original avi is in good shape, it’ll do fine. My 2.6ghz box takes about 30′ish minutes to convert the file format.
Simply make sure you’ve got ffmpeg installed along with all the neccisary codecs to handle mp4 (ubuntu-restricted-extra, transcode, w32codecs and the gstreamers are my norm).
Then navigate to the location for your movie; in my case it is /media/movies.
$ cd /media/movies
Then simply use the -i switch to indicate this is your “input file” and it will all look like this:
$ ffmpeg -i original.avi new-original.mp4
You will see a readout of what ffmpeg is doing and eventually it’ll tell you success and you’ll now have your original avi and the new mp4.
You can also look in the man pages for ffmpeg (man ffmpeg). I get all discombobulated when I look in there, so I depend on the knowledge of others to learn how to manipulate movies with ffmpeg. It’s really powerful but the simply command I use as an example above does the job for converting to a more iPod friendly format.
After it is converted simply fire up Amarok and drop it on your device.
Cheers,
Justin
P.S. I’ve recently tried this with .wma, .divx, .xvid, .flv, .swf and .asf with similar results. Just remember, the quality is about adiquate for an iPod, but not for full screen TV viewing (audio seems good, video looks a little too jpeg’ish).




