A guide for encoding movies for the iPod Video and Classic.
I've spent the last three days trying to find a way to properly transcode video for the iPod Classic. First, I tried just using the latest version of Handbrake, but the audio had massive popping and screeching noises, totally unusable. Then I tried encoding using an older version of Handbrake but that is slow and the audio quality was pretty bad, but usable.
The guide here is the best method I have come up with to transcode video for the iPod (Classic).
First, make sure you have MKVToolnix installed. Then, download gMKVExtractGUI and load your .MKV file into it. Select only the desired audio track and hit 'Extract'.
Open the file in MKVToolnix, and keep the video and desired audio track and subtitles. Then let it convert the file to .MKV and start with step 1 :)
Now, download foobar2000 in 32-bit. This is essential for the DTS plugin to work, which you can download and install here. Make sure you install the encoder pack and iTunes as well. Once, you're set (just hit 'okay' on everything), drag the .DTS file into foobar, and right click the audio file and go to the converter dialog window.
Now, we want to convert this file to AAC CBR 160 Kb/s. Make sure the 'Use HE-AAC' box is unchecked, as this is not compatible with the iPod. Finally, add the 'Downmix channels to stereo' DSP to the Processing tab. Save the preset if you want to repeat this process for other movies.
Hit 'Convert' and voilà, you should now have a stereo audio track in 160 Kb/s AAC for your movie that works on the iPod. In my case it reported an error ('garbage') at a certain timestamp, but this turned out to be the exact length of the movie. So we won't have any issues. This method uses Apple's AAC encoder, which is known to be the best one available.
We need to merge the audio and the video back together, however. Open the MKVToolnix GUI and drag your .MKV file into the window. Now, drag the AAC audio file we've just created into the window as well, making sure you use the 'Add as new source files to the current multiplex settings' option.
Deselect everything but the video, audio (the one we've created with foobar2000) and the desired subtitle track. See the image below for an example.
Now hit 'Start multiplexing'. This should take less than a minute if you're using a fast SSD.
Open the new .MKV file we've just created with MKVToolnix in Handbrake, using the exact same settings as we tried in method 1. The only difference here is that we want the audio to be set to 'AAC Passthru' to avoid any re-encoding of the audio by Handbrake.
- Summary: Make sure to only enable 'iPod 5G Support' on this page.
- Dimensions:
- Cropping: None
- Resolution Limit: Custom, 640x480
- Anamorphic: None
- Video: You can choose the options you want here, depending on how long you want the encoding process to take and the quality you want to get.
- Video Encoder: H.264 (preferably AMD VCE, NVIDIA NVENC or Intel QSV for faster encoding. DO NOT use VCE or NVENC if you want to transcode for the 5th gen iPod. Any of the options should work for the 6th gen iPod Classic.)
- Quality: Constant Quality 20 (increase this if you want for higher quality, but it will increase file size)
- Framerate: Same as source (set this to 30 if the source is higher than 30)
- Encoder Preset: Slower/Quality
- Encoder Profile: Baseline
- Encoder Level: 3.0
- Advanced Options (5th gen only):
cabac=0:ref=1
for CPU encoding orcoder=cabac:num-ref-frame=1:gop-ref-dist=1:gop-pic-size=30
for QSV encoding.
- Audio: AAC Passthru (this is very important)
- Subtitles: Select the desired track, and check the 'Burn-in' box if you want to display the subtitles in the video itself. This is entirely optional, however. Note that the iPod does not support subtitles natively, so burn-in is the only way.