Copyright (c) 2008 Adam NowakThe goal is simple: by using a copy of a film from your local disc, change its size, adjust it to the iPhone display and apply appropriate coding which will enable you to enjoy a good picture and sound quality. At the beginning, however, I would like to emphasize, that on account of the size of the movie, I will not focus on the optimization of compression itself. Writing a script for this operation is useless - it's one line on the console: ffmpeg -i "INPUT _FILE.AVI" -f mp4 -vcodec mpeg4 -maxrate 10000 -b 7000 -r 29.97 -qmin 2 -qmax 5 -bufsize 4096 -g 300 -acodec libfaac -ab ...