MEncoder reference -- x264 edition



Refs: FFmpeg and MPlayer must have merged their projects, as the parameter docs for both seem to be the same output now; and it's mencoder-style.

H.264 has some pretty complicated stuff, so there's no point in going on about every option. Instead, you should probably just read the -x264encopts section of the mencoder man page -- every time you start an encoding. Of particular insterest are: crf qp weightp subq deadzone_inter
So, everything gets done for you now. To get an mp4, with h.264 video and mp3 audio, just pass preset parameters for what kind of encode job you want: Notes: format (mp4) is detected; 3-pass is actual 3-pass with x264
... etc, for each additional pass you decide is warranted.

But here's the thing: multi-pass is only for assuring constant *size* (e.g. cram it into 2040kbps). If you just want constant quality, you could just use crf mode; in that case, you get the quality you want, in one pass.
Pass 1 (no qpel) for an MPEG-2 source, with the "filmdint" filter (de-telecine, de-interlace, etc), and a framerate hack, in case output framerate is bad. (Check your output.) Also scales the video to 320x240.
Pass 1, same as above, but with a crop/scale combination more suitable for a DVD video. (A lot of them seem to have little borders at the edges.) The FPS hack seems to be safe on DVDs, and ALWAYS remember to de-interlace!
Some iPod/PSP-specific options: baseline profile is needed (read the manual!) global_header saves a little space, dsize=::0 will auto-scale y to fit the aspect for x, while scale=-8 keeps the scale a multiple of 8



Updated 2013.06.08
Copyright © 1994 - 2014 UltrX corp. All rights reserved.