Multi-pass Encoding
From DigiWiki
Multi-pass encoding is a video encoding technique where the first encoding pass analyzes the video and logs down information which is then used in the second and subsequent passes, to adjust the bitrate/quantizer to achieve the maximum quality.
Examples of codecs that use multi-pass encoding are DivX, XviD, H.264 and MPEG-2.