Back Forum Reply New

MPEG2DEC3 BlindPP question

Since several people are knee deep in MPEG2DEC3 source code already, perhaps one of them could tell me what the range of values are for the 'quant' parameter of the BlindPP function?

The documentation only says that the default is 2, and higher numbers increase aggressivity (sp?).  The parameter is defined as an int, but that still a big range.

So what are the min and max values?  

Thanks

There probably isnt a limit on it, but seeing its a quant, it should probably be perceived as having a limit of 31  Obviously from what Marc FD said the higher the number the more Blind Post-Processing willing be done, and im sure that too high a number will probably make it too soft.

So best bet is to experiment and report back on what you think good numbers are for it.

-Nic

Well, now, it can't be unbound.

'quant' is an Int, so if it's unsigned it could be 0-65536 and if it's signed then we are looking at -32277 to 32278 (or something).  EDIT: Assuming 16-bits Ints.

Are negative values allowed?  They appear to work in a script, but it seems like the sign is disregarded.  In other words, -2200 looks the same as 2200.  Since they don't appear to be zeroed, they could be absolute valued.  Is that the case?

As for positive values, I tried ranges up to 22 million and did not cause any warnings or crashes, but again, it seems that 2200 gives the same results as 22,000,000.  So at some point it must max-out.  What is that point?

I'm asking because I'm writing a GUI for some common AviSynth filters I use, and I want to validate the inputs before making the script.  Granted, no values cause problems, but they don't (seem to) work indefinately.  Sorry for being a pain.

Hard to say, without looking at the source (which I dont have with me)

But, use the boundary of 1-31, because anything higher than that would not be expected.

The code's put into assembler and from memory the quants are stored as 32bit signed ints. But maybe only one byte of that is used in the assembler I cant remember. But it is pretty irrelevant.

-Nic

That'll do!  Thanks!

Nic,

while we're at blindPP, could you elaborate a little on the mechanics of moderate_h|v? The docs don't explain that very well. We have the defaults of 25|40, 'horizontal' and 'vertical' is obvious, and we know smaller values are more aggressive, bigger values less ... okay.
But honestly, I've no idea in which way these two values actually are used. Is it a threshold (against what?), is it a strenght setting, or sort of a 'distance' value, is it ...
If that ever was explained somewhere, I have missed it.

Propably I'm not the only one wondering about that?

- Didée

Its complicated, ill have to look at the source to remember. Its is a threshold that states whether to use a strong filter or a weaker filter in the code. But I can't remember how that threshold is calculated.

Even if I explain it, I feel it would be a little complex to do anything with the explanation, as working out better thresholds will only come with experimentation. I came up with 20 and 40 while doing lots of testing with the film Ronin

-Nic
¥
Back Forum Reply New