TheWEF
2nd April 2003, 09:50
on one hand we want to keep it simple so that we do not have to mess with the codec configuration window all the time.
on the other hand everybody has settings he likes best and wants to have full control over the configuration.
a solution for both would be to introduce codec profiles.
e.g.:
all codec profiles are stored in a gknot sub-folder called "profiles".
a codec profile consists of up to 8 files:
DivX504pro.ini
DivX504pro_pass1.reg
DivX504pro_pass2.reg
DivX504pro_passn.reg
DivX504pro_credits.reg
DivX504pro_single.reg
DivX504pro_compcheck.reg
DivX504pro_default.reg
minimum is 6 files:
XviD.ini
XviD_pass1.reg
XviD_pass2.reg
XviD_credits.reg
XviD_compcheck.reg
XviD_default.reg (that's what is restored after encoding)
the reg files are standard reg files that represent a branch of the registry and contain the codec settings. they can easily be created manually with regedit and easily be remerged with the registry using "regedit.exe /s c:\myreg.reg"
gknot detects all ini files in "profiles" on startup.
in the encoder window all you have to do is select a codec configuration from a dropdown menu, that's as easy as it can get.
now what has to be in the ini file:
[codec profile]
Name=XviD_Example ; maybe the filename is enough?
Description=something ; could be displayed below the dropdown.
CodecID=0x64697678 ;for SetCompession() in vdubmod script.
BitrateKey= ;not available for XviD, here gknot can set bitrate after the regfile has been merged.
BitrateMult= ;something to define whether the value is in bit, kbit,...
SizeKey=HKEY_CURRENT_USER\Software\GNU\XviD\desired_size ; here gknot can set video size after the regfile has been merged.
SizeMult= ;same
... maybe more, the rest is just to create filenames that are needed (input filename gets new extension):
[file1]
Key=HKEY_CURRENT_USER\Software\GNU\XviD\stats1
Ext=_stats1.stats
[file2]
Key=HKEY_CURRENT_USER\Software\GNU\XviD\stats2
Ext=_stats2.stats
[file3]
Key=HKEY_CURRENT_USER\Software\GNU\XviD\hintfile
Ext=_hintfile.stats
[file...as many as needed]
doing it like that you get:
XviD support right away.
you can store as many codec configurations as you like.
this is future proove - you don't even need to update the program for a new codec - just distribute the new profile.
just a proposal...
wef.
on the other hand everybody has settings he likes best and wants to have full control over the configuration.
a solution for both would be to introduce codec profiles.
e.g.:
all codec profiles are stored in a gknot sub-folder called "profiles".
a codec profile consists of up to 8 files:
DivX504pro.ini
DivX504pro_pass1.reg
DivX504pro_pass2.reg
DivX504pro_passn.reg
DivX504pro_credits.reg
DivX504pro_single.reg
DivX504pro_compcheck.reg
DivX504pro_default.reg
minimum is 6 files:
XviD.ini
XviD_pass1.reg
XviD_pass2.reg
XviD_credits.reg
XviD_compcheck.reg
XviD_default.reg (that's what is restored after encoding)
the reg files are standard reg files that represent a branch of the registry and contain the codec settings. they can easily be created manually with regedit and easily be remerged with the registry using "regedit.exe /s c:\myreg.reg"
gknot detects all ini files in "profiles" on startup.
in the encoder window all you have to do is select a codec configuration from a dropdown menu, that's as easy as it can get.
now what has to be in the ini file:
[codec profile]
Name=XviD_Example ; maybe the filename is enough?
Description=something ; could be displayed below the dropdown.
CodecID=0x64697678 ;for SetCompession() in vdubmod script.
BitrateKey= ;not available for XviD, here gknot can set bitrate after the regfile has been merged.
BitrateMult= ;something to define whether the value is in bit, kbit,...
SizeKey=HKEY_CURRENT_USER\Software\GNU\XviD\desired_size ; here gknot can set video size after the regfile has been merged.
SizeMult= ;same
... maybe more, the rest is just to create filenames that are needed (input filename gets new extension):
[file1]
Key=HKEY_CURRENT_USER\Software\GNU\XviD\stats1
Ext=_stats1.stats
[file2]
Key=HKEY_CURRENT_USER\Software\GNU\XviD\stats2
Ext=_stats2.stats
[file3]
Key=HKEY_CURRENT_USER\Software\GNU\XviD\hintfile
Ext=_hintfile.stats
[file...as many as needed]
doing it like that you get:
XviD support right away.
you can store as many codec configurations as you like.
this is future proove - you don't even need to update the program for a new codec - just distribute the new profile.
just a proposal...
wef.