Log in

View Full Version : DivX5 fails with YV12


Ty Bower
19th March 2003, 22:32
I'm getting a curious error trying to get YV12 to work on my machine. Previously, I had no problems with the software installed from the following kits:

GordianKnot RipPack 0.27
GordianKnow SystemPack 1.0

I have since installed the software I believe I need for YV12:

AviSynth 2.51
MPEG2Dec3 v1.00
VirtualDubMod 1.4.13, build 310103
VirtualDubMod needed dlls, build 251102

I can drop my .avs script on WMP and it plays back just fine. Putting an "Info()" in my script confirms that my colorspace is indeed YV12. However, when I try to encode it in VirtualDubMod, I get the following error:

"VideoSourceAVI error: The source image format is not acceptable. (error code -2)"

If I put a ConvertToYUY2() in my script, it works fine. If I turn off fast recompress and use full processing mode, it also works fine. Unfortunately, both these options kinda defeat the purpose.

I'm compressing to DivX 5.0.2. My cropping and resizing values are all legit (even numbers for cropping, multiples of 16 for resizing). I've tried both the Pro version as well as the standard. It doesn't seem to matter whether I configure the encoder for single pass, multi-pass, or whatever.

It seems to be a problem with my DivX codec rather than an error coming from AviSynth, MPEG2Dec3, or VDubMod. It almost smells like my DivX codec isn't accepting YV12 input. Any ideas?

DJ Bobo
19th March 2003, 23:10
I suppose your source AVI is not DivX or of that kind, but rather some MJPEG or similiar file, which isn't in YV12 format in the first place, that's why you can't process in YV12 mode all the way.

Ty Bower
19th March 2003, 23:19
My source is .vob files, ripped from DVD with DVDDecrypter. DVD2AVI 1.76 was used to build the .d2v. I'm pretty sure that DVDs are stored in YV12. As I mentioned, including the Info() function in my .avs script seems to confirm the use of YV12. Here's my script, if it helps any:

LoadPlugin("C:\PROGRA~1\GORDIA~1\mpeg2dec3.dll")
mpeg2source("c:\SHAFT\SHAFT.d2v")
crop(2,58,714,360)
BicubicResize(656,272,0,0.5)
#ConvertToYUY2()
Info()

DJ Bobo
19th March 2003, 23:41
I guess this has something to do with your crop and/or resize commands.

First 656x272 is no 2,35:1 format, so choose 640x272

Second, you may try crop(4,58,712,360)