(solved) mencoder: x264_encoder_open failed / different keyint setting than first pass

2パス目で次のようなエラーが出る。

(略)
x264 [error]: different keyint setting than first pass (100 vs 250)
x264_encoder_open failed.
FATAL: Cannot initialize video driver.
[mpeg2video @ 0x84cce00]ac-tex damaged at 18 7
[mpeg2video @ 0x84cce00]Warning MVs not available
[mpeg2video @ 0x84cce00]concealing 1035 DC, 1035 AC, 1035 MV errors

Exiting...

keyint の設定が 1パス目のものと違うよ、とのことなので、それを揃えてやったら解消した(というだけの話なんだけどとりあえずメモ)。

以下は失敗したときのコマンド。

# pass 1
/usr/bin/mencoder -v -ss 0 -endpos 30.0 -alang en -slang off -vf yadif=0,scale=720:480,harddup -oac copy -ovc x264 -x264encopts pass=1:subq=1:frameref=1:partitions=all:weight_b:bitrate=1011:threads=auto -of avi -dvd-device 000.iso -o /dev/null dvd://02

# pass 2
/usr/bin/mencoder -v -ss 0 -endpos 30.0 -alang en -slang off -vf yadif=0,scale=720:480,harddup -oac copy -ovc x264 -x264encopts pass=2:subq=5:frameref=2:keyint=100:scenecut=80:partitions=all:weight_b:bitrate=1011:threads=auto -of avi -dvd-device 000.iso -o 02.avi.partial dvd://02