Log in

View Full Version : Little improved VFW code (EQM matrices default in combo box)


JnZ
4th January 2007, 18:25
Hi all,
I often use Sharktooth q. matrices and really annoy me, when I must always do so much clicking in VFW, to get matrix, which I need (more->Edit matrix->load matrix->"search on HDD"->ok->ok).

At now, I'm really get to stage, to understood API programming and decide to make little improvements in XviD VFW code. And result will be looks like this:
http://img300.imageshack.us/img300/4764/xvidvfwva5.png (http://imageshack.us)

Matrices wil be shown in combo box, under "MPEG-Custom" selection.

It looks like I must add some new code and one new variable will be new here (to store which matrix is selected), so there will be incompatibility between old VFW and this new one (coz settings saved in registry have one new variable).

If You think, that any other matrix should be placed here, or if You want to try this build, post reply here. I place modified source code and compiled DLL somwhere on website (when I finish it).

J.

foxyshadis
4th January 2007, 19:50
An extra variable will actually maximize compatibility, but why not just keep using quant_type to store the index? Just use 3+ for the new ones; xvid will ignore it if it's out of range, such as downgrading to an old version, so it won't crash. (It's annoying that it ignores instead of resetting it to one of the good ones, though.)

JnZ
6th January 2007, 14:13
but why not just keep using quant_type to store the index? Just use 3+ for the new ones...
Yes I consider this possibility, but this sounds like a dirty code. :)

MacAddict
9th January 2007, 00:19
Outstanding :-) IMHO the only other matrices that I could use would be reina_mr.cqm, reina_mr2.cqm and reina_mr_6o9_minq3.cqm. I was trying to find the thread where the gentlemen posted these but search isnt working that well :-\ IIRC each of the above matrices are slightly modified to give a bit better bitrate than Sharktooths. I've had great luck on them especially on darker content.

HeadBangeR77
9th January 2007, 02:18
I thought it would be ok to include some or even all of Soulhunter's matrices, like for instance V8 for high compression, V6 (approx. the same level as MPEG standard or HVS Best Picture) and V3 for high quality (and quick DVD-9 = DVD-5 conversion at constant quant).

There are also two matrices created by Heini, one similar to Sharktooth's HR, but a bit sharper, and one for high bitrates (compresses even less than Didee's SixOfNine).

http://forum.doom9.org/showpost.php?p=854722&postcount=284

JnZ - great idea, you've got my spiritual support (I'm not a programmer) :D

OT
@MacAddict
I used to live there for more than 3 years, have moved out recently - still longing, so I still keep it in my sigs on every forum I'm subscribed to ;)

MacAddict
9th January 2007, 02:25
Indeed, Heini's are the one I mention above. Not sure why my matrix files are named 'reina'.

OT
@HeadBangeR77
I use to be an employee of Heidelberg but never had the chance to visit.

HeadBangeR77
9th January 2007, 02:31
Indeed, Heini's are the one I mention above. Not sure why my matrix files are named 'reina'.

You seem to have 3 different ones (?) He has orignally posted only two of them. And the naming is strange, indeed.
As to OT - see above ;)

ImmortAlex
9th January 2007, 11:53
May be it will be easier to add MRU list to MPEG Custom with last used matrix file names? Otherwise it lead to holywar - what matrix must be in in-build list...

MacAddict
9th January 2007, 14:01
@HeadBangeR77

It's been along time but if I remember correctly he emailed them to my home address because the attachments weren't approved for some days.

The MRU list would be a nice idea but I'm not sure how difficult that would be to implement. What if the GUI was 'polling' a specified folder in which we have out matrices stored in, then it simply displayed them? Just throwing some ideas around here :-)

JnZ
10th January 2007, 13:27
MRU isn't a good idea IMHO, coz I must store info about all last visited matrices to the registry, I think. (more big uncompatibility with original VFW, etc...)
But I have maybe better idea. What about to make xvidwfv.cfg file, and in this file you can define own matrices like this:

c:\aa\eqm-ulr.xcm
c:\aa\eqm-lr.xcm
c:\aa\eqm-hr.xcm
c:\aa\eqm-uhr.xcm
c:\aa\eqm-ehr.xcm
And matrices stored here should be autoloaded to the WFV.

This is some ideas nothin' more.... :)

MacAddict
10th January 2007, 14:40
Wow, that would be really nice and easy to configure JnZ. Sounds great to me!

HeadBangeR77
10th January 2007, 14:52
@ JnZ
You've just come to the best possible solution, imho :)
In this way we would avoid:
-holy war beacause of matrices set
-messing with registry.

Everyone will make his own set of the most often used matrices and will be pleased, hopefully ;)

good luck with your modification!

JnZ
10th January 2007, 14:59
...
In this way we would avoid:
-holy war beacause of matrices set
-messing with registry.

Everyone will make his own set of the most often used matrices and will be pleased, hopefully ;)

good luck with your modification!
Yes this sounds like a best solution. The last thing what I want is a horde angry Xvid users who screams: "We want another matrices!" :)

Ok, so If anybody had better idea, I start work on this sometimes next week (coz at now, I have an exam on friday and monday...). And we will see... :)

HeadBangeR77
10th January 2007, 23:36
I've collected almost 80 CQMs so far - just imagine the crowd shouting at you ;) :D or all those PMs "Could you include the blahblahblah matrix in your mod, pleeeeease?" ;)

Good luck in the exam either (but after that get down to some serious work, like the above mod) :)

Brother John
11th January 2007, 01:44
What about using just folder names and including all xcm files from there into the list? Then updating the matrices list would be as easy as adding or removing xcm files from the folder(s). Of course the that could be combined with paths to file names. It all depends on how much work you're willing to put into this.

But I'll be happy and thankful about any improvement. Right now selecting matrices is a real pita.

ChronoCross
11th January 2007, 07:01
eventually this is going to make the xvid CQM listing huge....the drop down menu is going to be as big as the screen.

JnZ
11th January 2007, 10:56
eventually this is going to make the xvid CQM listing huge....the drop down menu is going to be as big as the screen.
Don't worry...dropdown had a specific size, and when number of items in it exceed this limit, the scrollbar is shown in it. :)