Log in

View Full Version : XVid parameters in VDub


hellgauss
21st February 2003, 09:10
Hallo,
I need do create automatic XVid job for VDub, so i study the way parameters are sent to VDub.
The structure is this:
(The build is 17.02.03)

3 long data
260 byte string
82 long data
140 byte string

Then this data is encoded in mime 64 by VDub and stored in a process settings file.

The problem is that in this data there is no informations about 'end credits' parameters and cpu optimization parameters. Sometimes there is no information about gk stats file, and sometimes in the string there is something like an error message for registering key in windows registry.

Where are these information (end credits & cpu) stored?
What are these error message?
Is there a web page where i can find these info?

Thanks and sorry for my bad English.
HG

DaveEL
21st February 2003, 20:58
Originally posted by hellgauss
Hallo,
I need do create automatic XVid job for VDub, so i study the way parameters are sent to VDub.
The structure is this:
(The build is 17.02.03)

3 long data
260 byte string
82 long data
140 byte string
Then this data is encoded in mime 64 by VDub and stored in a process settings file.



not quite get the source for the xvid build you want to use and look in vfw/src/config.h for the CONFIG struct that is what is written to the base64 string. (btw MAXPATH=260)



The problem is that in this data there is no informations about 'end credits' parameters and cpu optimization parameters. Sometimes there is no information about gk stats file, and sometimes in the string there is something like an error message for registering key in windows registry.

This info is included in the full struct. when it come to cpu if you set the cpu flags to 0 it will autodetect IIRC. I guess the error messages you get are to do with not having the whole struct filled correctly.


Is there a web page where i can find these info?



Yes... here :) Search around the forums (this topic comes up in both this forum and the development forum every now and then (if you search the development forum for virtualdub jobs or xvid config you should find lots of info and example code people have put up (or if you look at my quick2pass thread in the xvid forum the source is now available (which is a mess but will be a perfectly working example. The other thing you may want to look at if your only encoding from an avs file and not processing in virtualdub is avs2avi the source is available and you can write a config file for that instead of messing around with base64 encoding the data if your intrested take a look at the command line commpressor thread in the development forum (ill update the program when ive got some time).

DaveEL

hellgauss
22nd February 2003, 10:34
You have solved my problems...
Thanks a lot!!!!!