»Sunday, October 23, 2005

HOWTO: Convert your videos for the iPod

If you have bought the new iPod, or are considering it, you are probably wondering how to get your existing video collection to play on it. Cool as it is, it only plays videos that are encoded as H.264 or mpeg-4 (mp4). It's easy to transcode your videos to either format using the Swiss-army tool of video conversion, Ffmpeg. You can transcode almost any video format (including wmv/divx/xvid) to H.264/Mpeg4 using this tool. Here's how to do it for free on windows without using QuickTime Pro.

The brave way: Download and compile ffmpeg and use the command line options. If you are good enough to do this, I don't have to explain how to use ffmpeg from the command line.

The easy way: Download and install the Videora iPod converter. This is a GUI-frontend for ffmpeg, that has preset options for the resolutions supported by the iPod. Don't let all the options in this program scare you. Here's how to use it with minimum fuss.

  1. Click 'Setup' on the left bar and under the dropdown list for One-Click profile, choose an appropriate resolution. I recommend choosing H264/320x240/768kbps/ Stereo/128kbps MPEG-4/320x240/QB4 Stereo 96kbps. Also choose a folder under 'Output videos to'
  2. Click on 'Convert' on the left bar and click on the 'Transcode New Video' button. Choose the video you want to transcode and verify that the dropdown under New Transcoding Job on the right shows the encoding profile you chose in the previous step. Now click on the Start button and wait for your video to be transcoded. Be patient since some formats can be quite slow to transcode.
  3. Follow step 2 again to put a new video in the transcoding queue.

If you are a Mac user, you can use the ffmpegx GUI to do the same. Here's a howto for using ffmpegx to create iPod ready videos. (Warning: Link is not worksafe!)

UPDATE: After getting my iPod, I realized that the H.264 setting I mentioned earlier does not play on it. The MPEG-4 setting that I have provided above works beautifully though. If you want to get better quality videos, then do the following to further customize the setting
  1. Under Setup click the Profiles tab. From the Existing Quality Profiles dropdown, choose the MPEG-4 setting mentioned above. Start with this profile setting since you may not find the appropriate parameters if you try to customize a different profile.
  2. Now under the Video Settings box below, set the QScale to 2. (Lower the quantization scale, better your quality). (As suggested in one of the comments below, change the resolution to 480x360 if you intend to pipe your videos from the iPod to a TV. Type it in since you will not find that particular resolution in the dropdown list) Under Profile Name change QB4 to QB2, (and the resolution to 480x360) to reflect the change you just made. Change Passes to Two (This will make your encoding process longer, but you will get better quality with no increase in your file size. Use single pass encoding if you want to save time)
  3. Under the Audio Settings box, ensure that Channels is set to Stereo.
  4. Click Apply and go back to the Settings tab. Now choose the profile you just created from the One-Click Profile dropdown menu to set it as your default profile. This should give you a much better video quality.



...
Blogger maverick says..

Thanks Anil,

You're the man!!! Its so cool when someone does this for you!! Just a clarification - the output is a mp4 file is it? Should have my hands on my own video ipod in a month or so. Then it should be fun!!! :)
Blogger Anil says..

Yes, the output is an mp4 file.
Anonymous Anonymous says..

Thx for the info. Just a quick q: H.264 really doesn't play on the iPod video? It seems to play well in my iTune. I just haven't received my iPod video yet. Thx again!!!
Blogger Anil says..

H.264 is supposed to play on the iPod, but when I tried transferring them to my iPod, iTunes would not let me transfer them. I'm not exactly sure why, since I did follow the specs, but I've only played around with the iPod for a day now. The MPEG-4 setting works fine though, and the video quality is great, so I'm not too concerned about not being able to play my H.264 encoded videos on the iPod.

Note that many videos will play fine on iTunes, but not on the iPod. This is also true for many of the video podcasts you can get from iTunes - some of them are not iPod compatible. The only way to find out for sure is to try to transfer them to the iPod.
Anonymous Anonymous says..

Thx so much for your elaboration. I guess I might have to redo all the encoding and ripping once I get my iPod video.... I really appreciate your help!!

Dman
Blogger Vijay Ramamurthi says..

so u already have a video ipod.cool..
so are u planning to sell ur old ipod?
Blogger Anil says..

A friend (who you know very well) is relieving me of the burden of carrying the old iPod...
Anonymous Sushant Bhatia says..

Hey I have a 40Gb ipod I want to sell if anyone is interested :-)
Blogger TanSlacks says..

Well, I tried the above converting and I too can see my videos in Itunes but not on my Ipod. Any ideas? Do I have to buy QTpro?
Blogger Anil says..

Did you try to encode using MPEG-4 as I have suggested in the update? I have been viewing my videos on my iPod without any hassles. I don't think you need QTPro.
Anonymous TonyT says..

I did as suggested above but changed the audio to 128. My tivo 2 go shows look awesome on my ipod. Here's a tip tho... Run your .tivo files through Direct show dump before you transcode them. this will make a .mpg file out of your .tivo file and transcodes ALOT faster... Thanks for this awesome tutorial!!!
Anonymous Schibou says..

You may try to use this resolution: 480*360 to increase quality with the "QB2"... nice if you want to project on TV (480*360 -> resize of 320*240) it's working with the ipod

I think it can be better, no?
Anonymous Anonymous says..

I converted the video file in Videora to a MPEG-4, but when I try to transfered it to my IPOD I get an error that says "Some of the videos in your ITunes library, including the video "Video Name", were not copied to the iPod "iPod's Name" because they cannot be played on this iPod." It is an MPEG-4 file because when I click on "Get Info" in iTunes I see the file mode and it is MPEG-4. Can you help me with this little problem.

Thanks in advance for your help.
Blogger Anil says..

Schibou,
You are right - it's a good idea to encode the video at 480x360 since this will look better on a regular (not HD) TV. I'm changing my suggested resolution to this. Thanks!

Anonymous,
The iPod will not play all MPEG-4 videos. Under the profiles tab, start with the setting that I have suggested above, and then modify the QScale and other parameters. Also, after selecting the file you want to transcode, ensure that the 'Quality Profile' under the 'Edit Transocding Job' groupbox shows the setting you created.
Anonymous Schibou says..

Just to add, 480*360 is nice, but long to convert and it give big files (bigger than the original with an avi/xvid for exemple, with less resolution)
Therfore nice for tv (not hd yes)but on the ipod screen 320*240 just look like the same!
Anonymous dasmb says..

My own testing runs parallel to yours -- H.264 vids encoded from QT work great, but vids encoded by mpegenc aren't so great. Shame, because the block noise reduction features of the H.264 encoder makes all my MPEG-1 encoded movies from college look much nicer, and at a lower bitrate.

A quick note on mp4 playback...480x480 is the claimed constraint there, but the real world is quite different. I've been getting good results with full-DVD res in 4x3, 16:9 and 1.85:1 -- which makes the iPod, mated with a TV-out cable, a very nice portable TV jukebox. I've got the last two season of Arrested Development on there in "HD" and they play back nicely on both the 'pod and the TV.

Oh...and since the originals were in XVid, I didn't need to transcode the video. All I had to do was dump the video channel into an .mp4 container and re-encode the audio to aac-160; I did this with the Videolan client. Took about 4 minutes. I've had similar luck with recent DivX/3ivX encodes (none with DivX 3 or MSMpeg4).

Eventually I intend to code up a test to see whether the iPOd's outputting at the same res & aspect as the source, or whether it's constraining it to 480x480 on the fly. For now, I'm perfectly psyched about this initial step into the video world.
Blogger Edwin says..

Anil, you are truly the man. I was stupid enough to buy the QTPro assuming that by doing so I would avoid any hassle. WRONG! The program (both for PC and APPLE) take super long to convert a simple 150MG avi file to mpeg-4 (it actually took 26hours; I left the computer running until it actually finished). Once done, it would play on my Itunes (PC and Apple) fine but it would not upload to my ipod. Money wasted. Videora was the way to go. Edwin.
Blogger Vijay Ramamurthi says..

Happy Diwali dude :)
Anonymous Anonymous says..

ur the man thanks works great
Anonymous Anonymous says..

Nice instructions! Only one problem...it's not working :(

I click 'transcode video' then choose it (after putting in all the correct settings) then when I click start, it says 'please wait' or something, then it says 'transcode complete!' This all happens in about 2 seconds, but it doesn't do anything! (There's nothing in the output file). Any ideas?
Anonymous Anonymous says..

Great info anil,

One Problem,
When i encode the file to .mp4 the audio is out by about 2 seconds. do you know of any tools on how to fix this?

Thanks
Blogger Anil says..

Penultimate Anonymous,
It happens with certain video files. I'm not sure why it happens, but try encoding a different file to see if you have the same issue. The audio and video streams in an AVI file can be encoded in a wide variety of formats and some of them might stump this tool. Try to bring this to the notice of the developers of Videora.

Final Anonymous,
Are you using a different video framerate than the original video? Try to set the framerate to 'input' instead of forcing it to 30fps or whatever.
Blogger Anil says..

Also try posting on the forums so that the developers can know about any issues you have.
Blogger Shawn says..

When I converted a video to my ipod, lines appeared in the top half of the video. They seemed to appear only as the movement in the video got faster. Any suggestions on why this would happen?
Anonymous Noah says..

Amazing, thanks for the advice, saved me money and lots of frustration, but one question, most of the music videos i download convert fine on the MPEG-4 QB7 setting which is what ive been using but about 10 of them just dont upload to itunes after converting, any advice? ive tried almost all of the settings to transcode the videos into and none with allow the video to be uploaded to itunes
Blogger Anil says..

Shawn,
No idea :-)

Noah,
I have faced the same problem with certain videos. They play fine with QT, and have the required audio/video formats, but iTunes won't upload them. If I had to hazard a guess I would say that it might be an iTunes bug. Sorry, can't help you there.
Anonymous Anonymous says..

i have a ipod video but cant transfer my movie files i got quicktime pro but i am still lost. any help maybe some freeware
Anonymous Anonymous says..

anil please help me im a retart compared to this electronic things. Ok i followed the steps for windows but i just dont know how to put the videos on my ipod. help me out.
Anonymous Anonymous says..

Hey man thanks a whole lot i've been looking for this kind of software forever once again thanks!!!!!!
Anonymous Anonymous says..

thanks man this is way awsome thanks a whole lot
Blogger Anil says..

If anyone has audio-video syncing issues (audio lags by a few seconds), try using VirtualDub to fix the issue.

http://www.doom9.org/virtualdub_procedures.htm
Anonymous Anonymous says..

hey anil, thank you for the help, i followed ur steps on ur new update but one small problem i am encountering, when i transfer my video to my ipod it pauses like 2 or 3 times for a second in the beginning of the music video and then it goes normal, what should i do so it wont pause in the beginning? thank you
Anonymous Anonymous says..

Anil,
Is the fact that h.264 video encoded b y Videora doensn't work, due to Videora, or the iPod? In other words, will a "properly" encoded h.264 video work on iPod? If not, its false advertisement by Apple!
Blogger Anil says..

A properly encoded h.264 video should play on the iPod. v0.9 seems to have straightened out the problem with the h.264 encoding. Unfortunately I cannot try this out myself since I use a Mac at home now instead of a Windows box. Maybe someone else can confirm that the h.264 encoded by Videora will play on the iPod.
Anonymous Anonymous says..

I have a problem. I converted an ep of a show. It worked, when it was converting it showed the % done. it worked. then i whent to convert a 2 ep of the smae show and i press start less then a sec latter. it said complet. so it is in my folder. it is a m4v file... but it wont let me inport to iTunes. If any 1 can help me that would be great. info can be send to robertlaliberte24@hotmail.com
Anonymous Anonymous says..

pls answer my question.
hey anil, thank you for the help, i followed ur steps on ur new update but one small problem i am encountering, when i transfer my video to my ipod it pauses like 2 or 3 times for a second in the beginning of the music video and then it goes normal, what should i do so it wont pause in the beginning? thank you
Blogger Anil says..

It might be a better idea to post on the videora forums so that the developers can respond to your queries. I do not use videora anymore since I use a mac now and ffmpegx does the job for me now.

What to do next

Latest Photos

  • www.flickr.com
  • » View Gallery

Stuff I read