Search This Blog

2011-02-21

Handbrake encoding for iPhone 4

Adding to Brad's HandBrakeCLI post, I optimized the conversion profiles for iPhone 4 for quality, speed of rendering.

For high speed encoding, use these parameters. It takes about 1/2 playback length to encode on a 4 core i7 920 Processor. It will do a single pass encoding at 600kb/s.

HandBrakeCLI -i input.mov -o output.mp4 -C 4 -e x264 -b 600 -a 1 -E faac -B 128 -6 dpl2 -R 48 -D 0.0 -f mp4 -X 960 --modulus 16 -x cabac=1:ref=8:bframes=16:b-adapt=1:me=hex:subme=9:trellis=1:partitions=all:direct=auto



For high quality encoding, the following parameters uses 2 pass encoding for higher picture quality at the expense of encoding time (about equal to playback length). Again, this encodes at for 600kb/s.

HandBrakeCLI -i input.mkv -o output.mp4 -C 4 -e x264 -2 -T -b 600 -a 1 -E faac -B 128 -6 stereo -R 48 -D 0.0 -f mp4 -X 960 --modulus 16 -x
cabac=1:ref=8:bframes=16:b-adapt=1:me=umh:subme=10:trellis=2:partitions=all:direct=auto

For more information about h.264 parameters and how they affect quality and speed, see this:
http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-x264.html

No comments:

Post a Comment