How-To: Encode Videos for iPhone or iPod on any Unix using ffmpeg
It works at least with Ubuntu Intrepid’s and Debian Lenny’s versions of ffmpeg and should work with MacPort’s version too. I’m pretty sure the BSD’s also have a working one. You will also need x264libs and lame.
So, here comes my cmd:
$ ffmpeg -i infile.avi -f mp4 -title your.dot.seperated.title -vcodec libx264 -level 21 -s 480x270 -r 24000/1001 -b 768k -bt 768k -bufsize 2000k -maxrate 768k -g 250 -coder 0 -threads auto -acodec libfaac -ac 2 -ab 128k outfile.mp4
This will cost you about 270MB of space for a 45min show.
Have fun watching movies on your iPhone/iPod Touch on your way to work or home or whereever.
Hi, my name is Chris. I am a wannabe photog, traveler & geek that is again a student and lives in Hesse, Germany. 

Nice howto, but you should also mention Videora (www.videora.com). It’s available for Mac and PC.
And now go and upload the other howtos.
Yeah n1ce how2 from me 2.
Now that you published this one get a blackberry and write one for that too!
Thanks.
yeah, great. that works for me on freebsd-current!