There are MANY threads on this already. Do a search for "handbrake". If you are just watching videos on the phone, use 800x480 resolution. Anything more than that will just be downscaled. If you plan on watching movies on a tv with the hdmi out, use 1280x720. I have found I can get to about 6000 bitrate before it starts to stutter.