Printable Version of Topic
Click here to view this topic in its original format
Unofficial VirtualDub Support Forums > Testing / Bug Reports > Processing Settings Of 1.5.10 & Virtualdub 1.6.1


Posted by: BugsBunny Nov 6 2004, 02:20 PM
First I thought this was a bug in VirtualDub 1.6.1 but then discovered it was not.

I was opening an avs script (DV source, TomsMoCo) then loaded a processing settings file I stored with VirtualDub 1.5.10 that contains filters and as compression Huffyuv v2.2.0 (revisited) convert to YUY2 - Predict median best.
When I tried to store the avi I got the error message:
Cannot initialize video compression due to codec error: The source format is not acceptable.
I thought this was a bug, since it worked with the older VirtualDub version. But did some investigation: Opened VirtualDub, did not load any processing settings and set the compression manually to Huffyuv v2.2.0 (revisited) convert to YUY2 - Predict median best. Saving the avi worked then. Stored this processing setting and compared it to an older one:
This is no longer used in 1.6.2:
VirtualDub.video.SetDepth(24,24);

There are two new values:
VirtualDub.video.SetInputFormat(0);
VirtualDub.video.SetOutputFormat(7);

If you load an old vcf and store it with 1.6.1 then the two lines look like this:
VirtualDub.video.SetInputFormat(6);
VirtualDub.video.SetOutputFormat(6);

and then you get the error message. Changing it to (0)(7) with a text editor resolves the problem.

Posted by: phaeron Nov 6 2004, 09:05 PM
DOH! That is a bug, because 24-bit is supposed to convert to format 7, not 6. I'll fix it for 1.6.2. Here are what the new format codes mean:
CODE

0 - no format / autodetect
1 - 2-color paletted
2 - 4-color paletted
3 - 16-color paletted
4 - 256-color paletted
5 - 16-bit RGB (555)
6 - 16-bit RGB (565)
7 - 24-bit RGB
8 - 32-bit RGB
9 - Y8
10 - 4:2:2 YCbCr (UYVY)
11 - 4:2:2 YCbCr (YUY2)
12 - 4:4:4 YCbCr (XVYU) (internal format)
13 - 4:4:4 YCbCr planar (internal format)
14 - 4:2:2 YCbCr planar (YV16)
15 - 4:2:0 YCbCr planar (YV12)
16 - 4:1:1 YCbCr planar (internal format)
17 - 4:1:0 YCbCr planar (YVU9)

Powered by Invision Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)