Log in

View Full Version : Xvid "Fast Recompress" 2-pass Error


cynoshire
10th September 2003, 05:25
avs:

SetWorkingDir("C:\Program Files\Gordian Knot\")
LoadPlugin("mpeg2dec3.dll")
LoadPlugin("decomb.dll")
mpeg2source("C:\DVD\Projects\301_VTS_03_PGC1\301.d2v")
Telecide(guide=1).Decimate(5)
crop(4,4,712,472)
LanczosResize(528,384)

I am using koepi's XviD 24-06-2003 build:

Motion search prescision: 6
Quant type: H.263
FourCC: XviD
VHQ: 1
Max I-frame int: 240
Min I-frame int: 1
Quarterpel enabled
Chroma motion enabled
Max B: 2
B-frame quant ratio: 150
B-frame quant offset: 75
B-frame threshold: 0
DX50 B-VOP compatibility checked
Min I-frame quant: 2
Max I-frame quant: 31
Min P-frame quant: 2
Max P-frame quant: 31
Discard first pass checked
Below i-frame distance: 12
I-frame reduction %: 24
Bitrate playback delay: 240
Payback with bias

I am using avisynth version 2.5.2
Virtualdub version 1.5.4.1

The problem: I've been using XviD with virtualdubmod for a while and noticed that yellow line down the left of the image due to vdubmod's colour conversion bug when set in full-processing. So to fix this I tried setting it to "fast recompress". Here's the thing, everything works fine and dandy if I test XviD out in 1-pass CBR mode, but when I try to do a 2-pass encode virtualdub will give me an error:

Video compression error: An unknown error occurred (may be corrupt data). (error code -100).

I am clueless, it works in 1-pass mode just fine, but not 2-pass. I have searched these forums, the virtualdubmod bug tracker and google to high-heaven and cannot find a solution. I have tried this in plain virtualdub (1.5.4) but the same thing occurs. Xvid obviously supports YV12, I mean otherwise 1-pass wouldn't work in "fast recompress mode", right?

Imperial Llama
10th September 2003, 14:22
Sounds like you are trying to write your stats file to a directory that doesn't exist, or one that XviD doesn't have permission to write to. Make sure the stats file locations are correct in the two pass tab in XviD's config box.

cynoshire
10th September 2003, 19:35
Originally posted by Imperial Llama
Sounds like you are trying to write your stats file to a directory that doesn't exist, or one that XviD doesn't have permission to write to. Make sure the stats file locations are correct in the two pass tab in XviD's config box.

Oh. My. God.

I feel like such a noob, thank you. I've never had to set the 1st pass stats file manually before so I didn't think of that.

Yeah, it was pointing to a directory that no longer exists...mama mia.

Thank you, thank you, thank you.