Could someone give me an example of how to do a x264 2-pass encode with Mencoder in Windows? I have found a few examples for Linux and have combined that with some info I found that said that nul is the Windows equivalent to /dev/null leading me to try the following:

Code:
mencoder "infile.mkv" -ovc x264 -x264encopts bitrate=3333:pass=1:threads=2 -oac copy -o nul
and after that finishes:

Code:
mencoder "infile.mkv" -ovc x264 -x264encopts bitrate=3333:pass=2:threads=2 -oac copy -o "outfile.mkv"
It seems to be working but I was hoping that someone could confirm that this is the correct way to do a 2-pass encode before I started encoding a 3 hour long 720p video.