[MEncoder-users] Encoding with x264 Jittery Result

James Hastings-Trew jimht at shaw.ca
Sat Dec 29 05:13:16 CET 2007

Reuben Budiardja wrote:
> Hello,
> I am trying to use mencoder to encode VOB files with x264 codec. I'm trying to 
> get high quality encode with 1500 kbps target bitrate and two-pass encoding. 
> The following is what I use:
> mencoder CH_2.vob  -ovc x264 -x264encopts 
> subq=4:bframes=3:b_pyramid:weight_b:pass=1:psnr:bitrate=1500 -nosound -of 
> rawvideo -o  test.264
> mencoder CH_2.vob  -ovc x264 -x264encopts 
> subq=6:partitions=all:8x8dct:me=umh:frameref=5:bframes=3:b_pyramid:weight_b:pass=2:psnr:bitrate=1500 
> -nosound -of rawvideo -o test.264
> The options were basically taken from the example in Mplayer documentation, 
> with the fast, low quality setting for the first pass and high-quality for 
> the second pass.
> The result is a very jittery movie. I checked that after the first pass the 
> result is still OK, but after the second pass it's very jittery. Is there 
> something that I did that's obviously wrong ?
When you say "jittery" do you mean that the frames appear to leap 
backwards and forwards through time? It's probably something to do with 
b-frames. I personally have never gotten them to work using any of the 
examples in the manual, and have since avoided them entirely.

If someone could post an honest to goodness example of how to get 
mencoder to spit out a proper .264 stream that uses b-frames and how to 
properly mux it with audio into a .mp4 container I'd love to try it out. 
The example in the manual just does not work.

More information about the MEncoder-users mailing list