The Program We Gonna Use is
RipBot264:
I just use High 4.0 HD Progressive, AAC-LC 96 kbps, 2-Pass mode, resize the file to 800x450, select build in picture subtitles (if have subtitles) than lock the size to 250 MB.
and make sure the video bit-rate is around 500 kbps and I use good quality...