For most of the scripting and .jobs script creation, Im pretty sure I can put 90% of it together from examining it... but there are some commands that I cannot make sense of..

Ill back up a bit... Im writing a program to generate a .jobs script for VirtualDubMod. I simply cannot get AutoGK to do all the things I want to do. Im "kind of" "rewriting" AutoGK, but will expand its abilities quite a bit for being able to SPECIFY the bitrate of the video CODEC, and other settings, in addition set the output's Height and Width, instead of not having full control over it. The program (un-named as of yet) will also have the ability to save and load setting profiles, and of course batch mode. Input can be of any DirectShow file (MPEG1, MPEG2, AVI) (no VOBs yet, I gotta figure that stuff out later...), and audio can be MP2, MP3 or AAC, and the resulting AVI will be DivX or XviD, with either MP3 or perserve original filetype. So, you can take an MPEG2 video with AC3 audio, and encode it to DivX AVI with AC3 audio! Ive already tried the individual settings, and I can get this all to work (being developed in VB.NET), but the VDub scripting has me totally confused, even after googling info on it.



The one major thing is this:
VirtualDub.video.SetCompression(0x78766964,0,10000,0);
I dont know how to read how the compression is being set, Im guessing its telling VDub what the codec is (It appears to be hex enumerated), modes and bitrate, but I dont know how to generate one from scratch.


Netx:
VirtualDub.stream[0].SetSource("H:\\ED\\Work\\dgoutput.mp3",0x00000202 ,0);
I understand this, but whats the numbers for, what do they mean?


Finally:
VirtualDub.video.SetCompData(57,"LWJ2MXEgMyAtdmJ2I DQ4NTQwMDAsMzE0NTcyOCwyMzU5Mjk2IC1iIDEgLW5mIC1wcm9 maWxlPTMA");
I have no idea what this is, or how VDub came up with the characters...


If anyone can offer assistance and guidence, it would be a great help!
Thanks,
Andrew