digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   HCenc: Adaptive Matrix (http://www.digitalfaq.com/archives/encode/14523-hcenc-adaptive-matrix.html)

supermule 05-04-2007 12:32 AM

Adaptive Matrix
 
has someone been able to work with the adaptive matrix feature of HCenc (from ver 0.20). It needs a bit of programming and I am not upto it.

Dialhot 05-04-2007 06:21 AM

I don't, but just FYI : from 0.21 there is a built-in feature that deals automatically with the matrix according to the luma in the frame. I don't understand how and why, but look at the *LUMGAIN parameter in the doc.

supermule 05-04-2007 06:50 AM

I read that but dont know how the output will be if I used it, although theoritically once HC detects dark scenes it will raise the br accordingly, which sounds good.

Code:

*LUMGAIN
parameter sensitivity (0 - 4) type integer
Status not required
Default 0
Example *LUMGAIN 2
This command adapts the quantization matrices on dark scenes so the bitrate will be raised.
• 0 no change
• 1 mild change
• 2 moderate change
• 3 heavy change
• 4 hit dark scenes real hard


Dialhot 05-04-2007 07:43 AM

I'm in the same sitaution as you are : I need to test that to understand really what is behind it :).

supermule 05-07-2007 12:19 AM

Here's some insight by hank himself.

Might help in reducing the blocks in dark scenes. It seems similar to AutoQmatenc "Dark mode", i.e. it first detects if the encode required os for low lit video segment (checks the luminance) and then engages the dark mode automatically.

fabrice 05-23-2007 12:32 AM

Hi all,

I've been playing with adaptive matrix dll programming a year ago, and if you're interesting in, I have a c++ source that replicates the fortran sample.

It's a visual studio 2005 project, but I think it can be compile with others C compilers.

Fabrice

supermule 05-23-2007 01:34 AM

Quote:

Originally Posted by fabrice
Hi all,

I've been playing with adaptive matrix dll programming a year ago, and if you're interesting in, I have a c++ source that replicates the fortran sample.

It's a visual studio 2005 project, but I think it can be compile with others C compilers.

Fabrice

What have you implemented in your program, can you describe how have you done the control on the matrix being used.

fabrice 05-23-2007 10:31 PM

Hi,

I was playing with motion (factor a, limited to 2) and luminance (b factor, with value between 0.9 and 1.05) and increasing the notch matrix by those 2 factors. I increased less the intra matrix than the inter matrix.

The 'algorithm' was:
- inter: notch_inter[i] * (1+ (a* row * column / 64)) * b
- intra: notch_intra[i] * (0.9+a/5) * b

But you can play as you want, with the factors you want. As I didn't get a 'wow' result (a lot smaller file with the same visible quality) , I'm still using the standard notch matrix...

Fabrice


All times are GMT -5. The time now is 01:18 PM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.