digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   KVCD Matrices: Notch versus HVS matrix? (http://www.digitalfaq.com/archives/encode/7959-kvcd-matrices-notch.html)

bilu 01-29-2004 10:29 AM

KVCD Matrices: Notch versus HVS matrix?
 
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

Dialhot 01-29-2004 11:24 AM

?? I thought that numbers can't go above 100 !

bilu 02-02-2004 11:47 AM

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

kwag 02-02-2004 01:15 PM

Those matrixes are designed for MPEG-4. Not for MPEG-1 or MPEG-2.

-kwag

incredible 02-02-2004 01:38 PM

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? 8O As he should know bit about it.
http://forum.doom9.org/showthread.ph...751#post363751

And Kwag already answered there.

bilu 02-03-2004 04:32 AM

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 :roll:


Bilu

Encoder Master 02-03-2004 04:42 AM

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.

incredible 02-03-2004 05:30 AM

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.

Encoder Master 02-03-2004 06:34 AM

Yes, I know. But I want a result and not a theory and so I've test it and it's clear. :wink: :wink: :wink:

bilu 02-03-2004 06:38 AM

@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

incredible 02-03-2004 07:28 AM

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:

http://www.digitalfaq.com/archives/error.gif

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

bilu 02-03-2004 08:56 AM

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 :roll:
http://www.kvcd.net/forum/viewtopic.php?p=61036#61036


Bilu


All times are GMT -5. The time now is 02:25 AM  —  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.