Converting video for the iPhone (3G) or iPod (Classic) using mencoder:

Basic batch file:

set VBITRATE=500
set ABITRATE=128

set INFILE=inputfile.avi

mencoder -mc 0.2 "%INFILE%" -of lavf -lavfopts format=mp4 -sws 2 -vf scale=320:-2,harddup -ovc x264 -x264encopts bitrate=%VBITRATE%:vbv_maxrate=1500:vbv_bufsize=2000:me=umh:level_idc=30:global_header:threads=auto:subq=6:frameref=6:nocabac:trellis=2 -oac faac -faacopts mpeg=4:object=2:br=%ABITRATE%:raw -channels 2 -srate 48000 -o "%INFILE%.m4v"

mp4box -ipod "%INFILE%.m4v"


This would create a file called "inputfile.avi.m4v". The two extensions is not the best thing in the world, but it gets the job done.


Here's a list of the podcasts I'm currently subscribing to (links are to the web sites, not the podcast feed):

Last updated: March 27, 2008