Quantcast HCEnc: Adaptive Matrix - digitalFAQ.com Forums [Archives]
  #1  
05-04-2007, 12:32 AM
supermule supermule is offline
Free Member
 
Join Date: Sep 2005
Location: Donkeyland
Posts: 210
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
05-04-2007, 06:21 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #3  
05-04-2007, 06:50 AM
supermule supermule is offline
Free Member
 
Join Date: Sep 2005
Location: Donkeyland
Posts: 210
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #4  
05-04-2007, 07:43 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
I'm in the same sitaution as you are : I need to test that to understand really what is behind it .
Reply With Quote
  #5  
05-07-2007, 12:19 AM
supermule supermule is offline
Free Member
 
Join Date: Sep 2005
Location: Donkeyland
Posts: 210
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #6  
05-23-2007, 12:32 AM
fabrice fabrice is offline
Free Member
 
Join Date: Mar 2003
Location: Madrid-Spain
Posts: 515
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #7  
05-23-2007, 01:34 AM
supermule supermule is offline
Free Member
 
Join Date: Sep 2005
Location: Donkeyland
Posts: 210
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #8  
05-23-2007, 10:31 PM
fabrice fabrice is offline
Free Member
 
Join Date: Mar 2003
Location: Madrid-Spain
Posts: 515
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
HCenc: Two extra kvcd matrix ? tengo6dedos Video Encoding and Conversion 3 09-11-2008 11:40 AM
Avisynth: Motion adaptive? tengo6dedos Avisynth Scripting 3 07-08-2008 02:59 PM
HCenc: Variable Quantization Matrix kwag Video Encoding and Conversion 26 04-29-2006 04:31 PM
Is Notch matrix the default matrix from the KDVD template? jzhao66 Video Encoding and Conversion 2 06-29-2005 03:25 AM
Old KVCD Matrix verses new Notch Matrix jamesp Avisynth Scripting 4 03-20-2003 03:48 PM

Thread Tools



 
All times are GMT -5. The time now is 07:27 AM  —  vBulletin © Jelsoft Enterprises Ltd