PDA

View Full Version : DIVX4Windows\State Information


achibus
6th September 2007, 14:48
I’m working on a solution for my application to save and load DivX encoding configuration.

I had a closer look at the registry branch [HKEY_CURRENT_USER\Software\DivXNetworks\DivX4Windows]

Are following considerations right?

Is it correct to say that DivX 6.x is only looking to settings in the following branch: [HKEY_CURRENT_USER\Software\DivXNetworks\DivX4Windows\State]

The default value like @="06_02_05_00034_Tiger_Codec" or @=”06_06_01_00004_VfWCodec” indicates which CLI Parameter string will be used to configure the encoder.

How do the settings directly in the registry branch [HKEY_CURRENT_USER\Software\DivXNetworks\DivX4Windows] effect the DivX 6.x encoder?

How can I find out which name for the Codec is the current one?
For example:
I installed DivX 6.25 with DivXInstaller.exe (15.032.616 kb size) File version: 1.0.0.198
The codec’s name is 06_02_05_00017_Tiger_Codec

Some days later I installed on an other machine DivX 6.25 with a new downloaded DivXInstaller.exe (15.255.016 kb size) File version: 1.0.0.211
Now the codec’s name is 06_02_05_00034_Tiger_Codec

Recently I installed DivX 6.6 with DivXInstaller.exe (24.135.232 kb size) File version 1.0.0.304
The codec’s name is 06_06_01_00004_VfWCodec

My question is: How can I find out the current name for an installed DivX Version. (I know I can run the configuration dialog and look at the registry what string is the default value in [HKEY_CURRENT_USER\Software\DivXNetworks\DivX4Windows\State]. But is their a way without first calling the configuration dialog?

Here is an other question:
Why was there a change in the name from Tiger_Codec to VfWCodec?

Greetings

DigitAl56K
8th September 2007, 08:57
I’m working on a solution for my application to save and load DivX encoding configuration.

Please remember commercial use of DivX is not allowed without a license ;)


Is it correct to say that DivX 6.x is only looking to settings in the following branch: [HKEY_CURRENT_USER\Software\DivXNetworks\DivX4Windows\State]


The encoder gets its settings from there, yes. The decoder looks at values in the parent (DivX4Windows).


The default value like @="06_02_05_00034_Tiger_Codec" or @=”06_06_01_00004_VfWCodec” indicates which CLI Parameter string will be used to configure the encoder.


Correct, but in order to make sure that this value is actually reflecting the version of DivX currently on the system you must instantiate the codec. When the codec is loaded it will set this key. You can immediately unload the codec and then query the registry if you like. In fact, you will need to unload it if you want to change the settings before using it. I suggest a call to ICGetInfo (see here (http://msdn2.microsoft.com/en-us/library/ms709408.aspx)) before unloading. All but the very first versions of DivX 6 series codecs will write their name here so that you can find their settings.


How do the settings directly in the registry branch [HKEY_CURRENT_USER\Software\DivXNetworks\DivX4Windows] effect the DivX 6.x encoder?


It is the settings under "State" that affect the encoder, the settings under this parent key can affect the decoder.


How can I find out which name for the Codec is the current one?


Use ICGetInfo as suggested above. That will set the default key under "State" without showing the GUI.


Here is an other question:
Why was there a change in the name from Tiger_Codec to VfWCodec?


Aha! Good question :) The "Tiger" naming convention was to do with the way the DivX team was organized internally at the time whereas now the convention is reflective of the way we manage and build various projects. VfWCodec is a source project that takes our codec libraries, wraps them up in a Video for Windows interface, and compiles it ready for shipping.

Greetings

Greetings! :)

- Al
DivX Tiger Team Veteran

achibus
15th September 2007, 17:08
Thank you very much for the detailed answers. Also for the kind reminder (I'm not working on a commerial solution).

Have a nice day
achibus