Quantcast KVCD Matrices: Notch Versus Hvs Matrix? - digitalFAQ.com Forums [Archives]
  #1  
01-29-2004, 10:29 AM
bilu bilu is offline
Free Member
 
Join Date: Jan 2004
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
Someone willing to compare the HVS matrices with the Notch matrix?
These matrices are very used in MPEG-4, look here:

http://forum.doom9.org/showthread.php?s=&threadid=34493

and the Notch matrix didn't work very well on MPEG-4, according to this:

http://forum.doom9.org/showthread.ph...751#post363751

Since both MPEG-4 and MPEG-2 are DCT based, I'd like to know how the HVS matrices perform in MPEG-2, since I already know how Notch performs in MPEG-4.

Quote:

===================================

HVS Good Quantization Matrix:

Intra:
8 16 16 16 17 18 21 24
16 16 16 16 17 19 22 25
16 16 17 18 20 22 25 29
16 16 18 21 24 27 31 36
17 17 20 24 30 35 41 47
18 19 22 27 35 44 54 65
21 22 25 31 41 54 70 88
24 25 29 26 47 65 88 115

NonIntra:
20 20 20 20 21 23 26 30
20 20 20 20 22 24 27 32
20 20 21 22 24 27 31 36
20 20 22 26 30 34 38 44
21 22 24 30 37 44 51 59
23 24 27 34 44 56 68 81
26 27 31 38 51 68 88 109
30 32 36 44 59 81 109 144

====================================

HVS Better Quantization Matrix:

Intra:
8 16 16 16 17 18 21 24
16 16 16 16 17 19 22 25
16 16 17 18 20 22 25 29
16 16 18 21 24 27 31 36
17 17 20 24 30 35 41 47
18 19 22 27 35 44 54 65
21 22 25 31 41 54 70 88
24 25 29 36 47 65 88 115

NonIntra:
19 19 19 19 20 22 25 29
19 19 19 19 20 23 26 30
19 19 20 21 23 26 29 34
19 19 21 25 28 32 37 42
20 20 23 28 35 42 48 56
22 23 26 32 42 53 64 77
25 25 29 37 48 64 83 104
29 30 34 42 56 77 104 137

====================================

HVS Best Quantization Matrix:

Intra:
8 16 16 16 17 18 21 24
16 16 16 16 17 19 22 25
16 16 17 18 20 22 25 29
16 16 18 21 24 27 31 36
17 17 20 24 30 35 41 47
18 19 22 27 35 44 54 65
21 22 25 31 41 54 70 88
24 25 29 36 47 65 88 115

NonIntra:
18 18 18 18 19 21 23 27
18 18 18 18 19 21 24 29
18 18 19 20 22 24 28 32
18 18 20 24 17 30 35 40
19 19 22 27 33 39 46 53
21 21 24 30 39 50 61 73
23 24 28 35 46 61 79 98
27 29 32 40 53 73 98 129

====================================
Bilu
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  
01-29-2004, 11:24 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
?? I thought that numbers can't go above 100 !
Reply With Quote
  #3  
02-02-2004, 11:47 AM
bilu bilu is offline
Free Member
 
Join Date: Jan 2004
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
Don't know much about matrices myself, but the feedback I got from the HVS-Good matrix versus the Notch matrix in MPEG-4 was that Notch got worse quality and bigger filesizes.

I'd like to hear some feedback about the HVS-Good matrix in MPEG-2.


Bilu
Reply With Quote
  #4  
02-02-2004, 01:15 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Those matrixes are designed for MPEG-4. Not for MPEG-1 or MPEG-2.

-kwag
Reply With Quote
  #5  
02-02-2004, 01:38 PM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Quote:
I got from the HVS-Good matrix versus the Notch matrix in MPEG-4 was that Notch got worse quality and bigger filesize
Here we go:

Nice Post! but not in case of mpeg1 or mpeg2, and Ill tell you why:

As mpeg4 does take MUCH more frames within the intraframe steps, the non-intra values are not mpeg1 or mpeg2 optimal!
If you look closer the non-intra values do cut much more in comparison to the intra values and in mpeg1 or mpeg2 it should be the opposite.

mpeg4 quatisation seen as a whole is different (as I know from doom9.org).
So HVS isn't developed for mpeg1 or mpeg2 when watching the values and their logic.

And in your case its not the best to use Notch in case of mpeg4 as the logic of non-intra cutting is totally different in comparison to HVS.

So maybe "on the first view" those HVS matrixes will give you a big decrease of final filesizes BUT the danger of pumping and rapidely getting worse and worse B and P frames within the I frame interval could be the result!



But anyhow, thanks for the links, ... interesting!.

PS: I don't know why "mf" an AVS filter designer tries to compare HVS vs. Notch on mpeg4? As he should know bit about it.
http://forum.doom9.org/showthread.ph...751#post363751

And Kwag already answered there.
Reply With Quote
  #6  
02-03-2004, 04:32 AM
bilu bilu is offline
Free Member
 
Join Date: Jan 2004
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks for the answer, I really didn't knew that MPEG-1/2 quantizations was that different from MPEG-4, that's why the "designed for MPEG-2" answer wasn't enough for me


Bilu
Reply With Quote
  #7  
02-03-2004, 04:42 AM
Encoder Master Encoder Master is offline
Free Member
 
Join Date: Mar 2003
Location: (^_^)
Posts: 504
Thanks: 0
Thanked 0 Times in 0 Posts
Now,...

I've tested the "HVS Best"-Matrix and I have to say it's not so good like the KVCD Notch. I don't know how it is for MPEG-4, but for MPEG-1/2 the KVCD Notch have less blocks than the HVS.
Reply With Quote
  #8  
02-03-2004, 05:30 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Quote:
Originally Posted by Encoder Master
I don't know how it is for MPEG-4, ...
In case of Mpeg4 its already explained in the link given by bilu.
And that it will give you more blocks in case of mpeg1/2 that's shure as explained above (Non-Intra Block).

Inc.
Reply With Quote
  #9  
02-03-2004, 06:34 AM
Encoder Master Encoder Master is offline
Free Member
 
Join Date: Mar 2003
Location: (^_^)
Posts: 504
Thanks: 0
Thanked 0 Times in 0 Posts
Yes, I know. But I want a result and not a theory and so I've test it and it's clear.
Reply With Quote
  #10  
02-03-2004, 06:38 AM
bilu bilu is offline
Free Member
 
Join Date: Jan 2004
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
@incredible

How about reversing the matrix, i.e. use intra as non-intra and vice-versa?
It fits with the logic from your post I guess.

Maybe some MPEG-4 matrices could be nice for MPEG-1/2 after all

I'm just curious.

Bilu
Reply With Quote
  #11  
02-03-2004, 07:28 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
You can't as that would mean the first value of the Intra 8x8 Block in the left upper corner would be 18 or 19 or 20 depending on what HVS matrix you choose! Thats the first issue, and second if you see the values, in intra-block the values do follow totally different as they do in non-intra.

Watch the 8x8 Block architecture here:



Here's a very good explaining article of KIKA from doom9.de where the basics are explained very well .... to me that was enlightnen!

Translated by Googles Translation Tools:

http://translate.google.com/translat...language_tools

(well Google seems to translate it not till the end, so you should do a step by step translation using google)

If you want the notch to become even more compressable, just attack the last two collumns in the matrix, like Done in CCE at very low bitrate matrixes.
As we see our KVCDs only on Television wich is 525/625 Lines based and NOT pixelbased, you won't see that big difference. And as we also use in here things like MA (linear blurring unfilter()) or Merge/Luma/Chroma-Blur in our Scripts, the Image will get already in our pre-processing a bit unsharper. So this ULBR Matrix modding won't do much harm to the final quality on your Tv, but you should test it as I changed to Quality priority instead of max less filesize as I mostly do DVD-R encodings now.

Just change the values in the Notch with "99" as seen in here:


In case of KVCD/KSVCD (as it will be stretched horiz. we ONLY modifiy the last row as shown)

Intra

XX.XX.XX.XX.XX.XX.XX.99
XX.XX.XX.XX.XX.XX.XX.99
XX.XX.XX.XX.XX.XX.XX.99
XX.XX.XX.XX.XX.XX.XX.99
XX.XX.XX.XX.XX.XX.XX.99
XX.XX.XX.XX.XX.XX.XX.99
XX.XX.XX.XX.XX.XX.99.99
XX.XX.XX.XX.XX.99.99.99

Non-Intra

XX.XX.XX.XX.XX.XX.XX.99
XX.XX.XX.XX.XX.XX.XX.99
XX.XX.XX.XX.XX.XX.XX.99
XX.XX.XX.XX.XX.XX.XX.99
XX.XX.XX.XX.XX.XX.XX.99
XX.XX.XX.XX.XX.XX.XX.99
XX.XX.XX.XX.XX.XX.99.99
XX.XX.XX.XX.XX.99.99.99



In case of KDVD or KVCD 704x576(480) (more horiz. cutting as it won't be stretched that much afterwards)

Intra

XX.XX.XX.XX.XX.XX.99.99
XX.XX.XX.XX.XX.XX.99.99
XX.XX.XX.XX.XX.XX.99.99
XX.XX.XX.XX.XX.XX.99.99
XX.XX.XX.XX.XX.XX.99.99
XX.XX.XX.XX.XX.XX.99.99
XX.XX.XX.XX.XX.XX.99.99
XX.XX.XX.XX.XX.99.99.99

Non-Intra

XX.XX.XX.XX.XX.XX.99.99
XX.XX.XX.XX.XX.XX.99.99
XX.XX.XX.XX.XX.XX.99.99
XX.XX.XX.XX.XX.XX.99.99
XX.XX.XX.XX.XX.XX.99.99
XX.XX.XX.XX.XX.XX.99.99
XX.XX.XX.XX.XX.XX.99.99
XX.XX.XX.XX.XX.99.99.99



But as I said ... for standard TvSets
Reply With Quote
  #12  
02-03-2004, 08:56 AM
bilu bilu is offline
Free Member
 
Join Date: Jan 2004
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
You got me interested

My wife bought me a DVD player for Xmas, and I'm focusing now more on MPEG-2 + TVout than MPEG-4 + PC.

I've been thinking about using an older PC with Linux or FreeBSD using automated scripts to backup to DVD or SVCD, but for what I've seen it's still not worth it.

There are two kinds of solutions around: mjpegtools-based and ffmpeg-based. Mencoder uses FFMpeg, transcode uses mjpegtools, and so on.

mjpegtools is 4 times slower than ffmpeg, but rate control is done right.
ffmpeg's rate control doesn't respect max/min bitrate.

I have a post about it here. Its' a pity though
http://www.kvcd.net/forum/viewtopic.php?p=61036#61036


Bilu
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Is Notch matrix the default matrix from the KDVD template? jzhao66 Video Encoding and Conversion 2 06-29-2005 03:25 AM
KVCD: Notch matrix, how to use/install? shibumi Video Encoding and Conversion 1 10-27-2003 04:50 PM
KVCD: Cartoons and Notch Matrix? Razorblade2000 Video Encoding and Conversion 11 10-18-2003 11:12 AM
KVCD notch matrix! jorel Video Encoding and Conversion 1 08-28-2003 11: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:22 AM  —  vBulletin © Jelsoft Enterprises Ltd