1st pass: .... :pass=1:turbo=2 -nosound -o NUL
2nd pass: ....:pass=2:turbo=2:bitrate=$(VideoBitrate) -nosound -o
NUL
3rd pass: ....:pass=3:bitrate=$(VideoBitrate) -nosound -o "$(DestFile)"
So there are 3 errors (IMHO):
1- bitrate missing in first pass
2- turbo option enabled in second pass
3- wrong pass option in second pass
The mencoder man for x264enc clearly mentions:
Code: Select all
The first pass (pass=1) collects statistics on the video and
writes them to a file. You might want to deactivate some CPU-
hungry options, apart from the ones that are on by default.
In two pass mode, the second pass (pass=2) reads the statistics
file and bases ratecontrol decisions on it.
In three pass mode, the second pass (pass=3, that is not a typo)
does both: It first reads the statistics, then overwrites them.
You can use all encoding options, except very CPU-hungry options.
The third pass (pass=3) is the same as the second pass, except
that it has the second pass' statistics to work from. You can use all encoding options, including CPU-hungry ones.
The first pass may use either average bitrate or constant quantizer. ABR is recommended, since it does not require guessing a quantizer. Subsequent passes are ABR, and must specify bitrate.