Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 2nd May 2006, 15:30   #121  |  Link
nimitz
Registered User
 
Join Date: Mar 2006
Posts: 2
Hi Sharktooth,

Thanks for the reply. I have access to the IEEExplorer(well...my school has its subscription.) Do you have the title of the paper? Or it's a bunch of papers from which ReferenceDivX derived his HVS Good matrix? I have read Nill's 1985 paper and some other papers such as Ngan's 1989 paper and K.R.Rao's 1990 paper, but seems none would lead to the following weighting matrix as ReferenceDivX used in the other thread.

double hvsfwm[64]={ 1,1,1,1,1,1,1,1,
1,1,.9599,1,.9571,1,.9599,
.8746,.9283,.8898,.8898,.9283,
.8746,.7684,.8404,.8192,.7617,
.8192,.8404,.7684,.6571,.7371,
.7371,.6669,.6669,.7371,.7371,
.6571,.6306,.6471,.5912,.5419,
.5912,.6471,.6306,.5558,.5196,
.4564,.4564,.5196,.5558,.4495,
.3930,.3598,.3930,.4495,.3393,
.2948,.2948,.3393,.2480,.2278,
.2480,.1828,.1828,.1391};


Thank you.

Quote:
Originally Posted by Sharktooth
the documents are available here: http://ieeexplore.ieee.org but they want $$$...

Last edited by nimitz; 2nd May 2006 at 15:39.
nimitz is offline   Reply With Quote
Old 2nd May 2006, 20:31   #122  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
Sorry i dont remember the paper title
Sharktooth is offline   Reply With Quote
Old 3rd May 2006, 13:24   #123  |  Link
NeD tHe OnE
NhaNc3!!!
 
NeD tHe OnE's Avatar
 
Join Date: Mar 2006
Location: DReam LaND!!!
Posts: 82
Quote:
Originally Posted by Oline 61
BTW, here is an archive with all the matrices listed in this thread. If you don't want your matrix in this archive, tell me so and I will remove it.
http://home.nc.rr.com/oline61/x264_custom_matrices.7z

I am currently planning to generate several clips designed to test for specific behaviors, and then encode with different quant matrices, and test PSNR and SSIM. What settings should I use to do this?

I don't think --qp or --crf will work because they produce different sizes with different matrices which is no good for SSIM and PSNR testing. Should I do 2-pass or 1-pass ABR? For 2-pass do I need to do a new first pass for each matrix? Should I use slow high quality settings, or faster settings? What bitrates would you like to see represented?
http://home.nc.rr.com/oline61/x264_custom_matrices.7z

I need this but its not there in the server
__________________
The viRtuE of loVe isNt fiNdiNg the peRfeCt peRsoN, bUt by loViNg the iMpeRfeCt peRsoN peRfeCtlY.

NhaNc3 Official Forum

Team NhaNc3!!!

http://img237.imageshack.us/img237/5...dtheoneuw6.gif
NeD tHe OnE is offline   Reply With Quote
Old 3rd May 2006, 22:53   #124  |  Link
Oline 61
Registered User
 
Join Date: Nov 2005
Posts: 327
Quote:
Originally Posted by NeD tHe OnE
http://home.nc.rr.com/oline61/x264_custom_matrices.7z

I need this but its not there in the server
Fixed.
Oline 61 is offline   Reply With Quote
Old 4th May 2006, 00:16   #125  |  Link
Oline 61
Registered User
 
Join Date: Nov 2005
Posts: 327
Does anyone want to recommend deblocking settings for any of the matrices, or should I continue with -3:-3?

I am thinking of doing some clips of the Nebuchadnezzar, for high detail and motion, maybe some of the green text, although the source is blocky there already, and probably a few fighting scenes.
Oline 61 is offline   Reply With Quote
Old 4th May 2006, 02:07   #126  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
not me... it really depends on the source and the quant/bitrate you use (i know deblocking is adaptive but it also influences compressibility, so...)
Sharktooth is offline   Reply With Quote
Old 4th May 2006, 04:00   #127  |  Link
Oline 61
Registered User
 
Join Date: Nov 2005
Posts: 327
How about The Matrix Reloaded at 1600kbit/s. No processing, just IVTC crop and Lanczos4Resize(848,352).
Oline 61 is offline   Reply With Quote
Old 4th May 2006, 05:33   #128  |  Link
NeD tHe OnE
NhaNc3!!!
 
NeD tHe OnE's Avatar
 
Join Date: Mar 2006
Location: DReam LaND!!!
Posts: 82
Hey Oline! Wich matrix is better 4 movies like The Patriot .. n what bitrate should I go 4?
__________________
The viRtuE of loVe isNt fiNdiNg the peRfeCt peRsoN, bUt by loViNg the iMpeRfeCt peRsoN peRfeCtlY.

NhaNc3 Official Forum

Team NhaNc3!!!

http://img237.imageshack.us/img237/5...dtheoneuw6.gif
NeD tHe OnE is offline   Reply With Quote
Old 4th May 2006, 11:09   #129  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
Quote:
Originally Posted by Oline 61
How about The Matrix Reloaded at 1600kbit/s. No processing, just IVTC crop and Lanczos4Resize(848,352).
i would go anamorphic with no resize at all...
Sharktooth is offline   Reply With Quote
Old 4th May 2006, 15:10   #130  |  Link
*.mp4 guy
Registered User
 
*.mp4 guy's Avatar
 
Join Date: Feb 2004
Posts: 1,348
-3:0 is a good setting most of the time, thats what I recommend for my cqm.
*.mp4 guy is offline   Reply With Quote
Old 4th May 2006, 15:15   #131  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
Quote:
Originally Posted by NeD tHe OnE
Hey Oline! Wich matrix is better 4 movies like The Patriot .. n what bitrate should I go 4?
Stop asking what's best and what bitrate you should use.
and .
And FFS
Sharktooth is offline   Reply With Quote
Old 19th December 2010, 23:11   #132  |  Link
Desmodeus
Compulsive Tinkerer
 
Desmodeus's Avatar
 
Join Date: Dec 2010
Location: Trapped in the Matrix
Posts: 4
Kinda' late for the Party, I know.

I've been busy writing some custom matrices of my own , and I decided I shouldn't keep them all to myself ...plus I'm kinda interested on an Expert opinion of them.

So without further ado, I give you:

Code:
#Superior Custom Matrix

INTRA4X4_LUMA =
8,12,16,24,
12,16,24,32,
16,24,32,40,
24,32,40,48

INTRA4X4_CHROMAU =
8,12,16,24,
12,16,24,32,
16,24,32,40,
24,32,40,48

INTRA4X4_CHROMAV =
8,12,16,24,
12,16,24,32,
16,24,32,40,
24,32,40,48

INTER4X4_LUMA =
8,12,16,20,
12,16,20,24,
16,20,24,32,
20,24,32,40

INTER4X4_CHROMAU =
8,12,16,20,
12,16,20,24,
16,20,24,32,
20,24,32,40

INTER4X4_CHROMAV =
8,12,16,20,
12,16,20,24,
16,20,24,32,
20,24,32,40

INTRA8X8_LUMA =
8,12,14,16,20,22,24,28,
12,14,16,20,22,24,28,32,
14,16,20,22,24,28,32,34,
16,20,22,24,28,32,34,36,
20,22,24,28,32,34,36,40,
22,24,28,32,34,36,40,42,
24,28,32,34,36,40,42,44,
28,32,34,36,40,42,44,48

INTER8X8_LUMA =
8,10,12,14,16,18,20,22,
10,12,14,16,18,20,22,24,
12,14,16,18,20,22,24,26,
14,16,18,20,22,24,26,28,
16,18,20,22,24,26,28,32,
18,20,22,24,26,28,32,34,
20,22,24,26,28,32,34,36,
22,24,26,28,32,34,36,40
And it's corresponding x264 commandline:

Code:
--cqm4i 8,12,16,24,12,16,24,32,16,24,32,40,24,32,40,48 --cqm4p 8,12,16,20,12,16,20,24,16,20,24,32,20,24,32,40 --cqm8i 8,12,14,16,20,22,24,28,12,14,16,20,22,24,28,32,14,16,20,22,24,8,32,34,16,20,22,24,28,32,34,36,20,22,24,28,32,34,36,40,22,24,28,32,34,36,40,42,24,28,32,34,36,40,42,44,28,32,34,36,40,42,44,48 --cqm8p 8,10,12,14,16,18,20,22,10,12,14,16,18,20,22,24,12,14,16,18,20,22,24,26,14,16,18,20,22,24,26,28,16,18,20,22,24,26,28,32,18,20,22,24,26,28,32,34,20,22,24,26,28,32,34,36,22,24,26,28,32,34,36,40
Composing a custom matrix was not very difficult for me, a complete newbie, but not completely uncomplicated either.
I started with a base of eight for every string so I could be sure the resulting bitrate was properly divisible, them I set an end-quantitizer which was a direct multiple of eight (40 and 48 respectively)
Then I started subtracting binary values for each stair, doubling the subtracted value where i felt detail could suffer further compression (middle and end values), making sure that I included all other multiples-of-eight along the way (40, 32, 24, and 16 respectively)
The result... every value in those matrices gives an Integer when divided by eight, which greatly aids Compression IMO, hence the presumptuous "Superior" title.

Here's how that compression looks on the 8x8 matrices for I and P frames respectively:





As far as i can tell, these matrices offer:

* slightly better compression than their flat counterparts (up to x3 on it's highest value 48)

* more stable streams than the default JVT due to better-divisible binary values (JVT uses multiples of three mostly)

* Medium-High signal-to-noise ratios which translate into better retention of detail.

But then again, these are rather presumptuous assumptions on my part, so i await further feedback, advice and constructive criticism from more experienced members of this community
Attached Files
File Type: txt Superior.cfg.txt (923 Bytes, 63 views)

Last edited by Desmodeus; 24th December 2010 at 11:46.
Desmodeus is offline   Reply With Quote
Old 19th December 2010, 23:36   #133  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,666
Quote:
Originally Posted by Desmodeus View Post
* slightly better compression than their flat counterparts (up to x3 on it's highest value 48)
How is this a good thing? You can get x16 compression by setting the HFs to 256, but that's not a good idea either.

Quote:
Originally Posted by Desmodeus View Post
* more stable streams than the default JVT due to better-divisible binary values (JVT uses multiples of three mostly)
Why would even values be "more stable"?
Dark Shikari is offline   Reply With Quote
Old 19th December 2010, 23:45   #134  |  Link
Desmodeus
Compulsive Tinkerer
 
Desmodeus's Avatar
 
Join Date: Dec 2010
Location: Trapped in the Matrix
Posts: 4
Quote:
Originally Posted by Dark Shikari View Post
How is this a good thing? You can get x16 compression by setting the HFs to 256, but that's not a good idea either.
I've actually come across some matrices with high-frequency values of 128+ which nonetheless pertained to be "sharp" on this very Thread.
Also... I believe the maximal hexadecimal value is 255 (or FF), so wouldn't 256 be breaking that boundary O.o?

Quote:
Why would even values be "more stable"?
I simply assumed even values which could be integrally divided by an octet would be easier to compress and/or quantify ...was I wrong?

Last edited by Desmodeus; 19th December 2010 at 23:54.
Desmodeus is offline   Reply With Quote
Old 19th December 2010, 23:52   #135  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,666
Quote:
Originally Posted by Desmodeus View Post
I've actually come across some matrices with high-frequency values of 128+ which nonetheless pertained to be "sharp" on this very Thread.
That doesn't have any bearing on whether high values are good or bad. "X happens to have a good Y" does not mean that X was related to the cause of a good Y.

Quote:
Originally Posted by Desmodeus View Post
I simply assumed even values which could be integrally divided by an octet would be easier to compress and/or quantify ...was I wrong?
"Easier to compress"? No, it's pretty much irrelevant...
Dark Shikari is offline   Reply With Quote
Old 20th December 2010, 00:53   #136  |  Link
Lyris
Registered User
 
Join Date: Sep 2007
Location: Europe
Posts: 602
Quote:
Originally Posted by Sharktooth View Post
AVC-HR at 1600kbps...

grain is perfectly preserved...
I would struggle to call the coarse quantization inbetween the two actors "perfect".
Or is that what the already compressed DVD source looked like?
Lyris is offline   Reply With Quote
Old 13th October 2012, 20:35   #137  |  Link
gioppatta
Registered User
 
Join Date: May 2012
Posts: 36
somebody knows these matrices? And what they do?

Custom intra4X4 luma:
6 7 10 16
7 7 11 17
10 11 12 20
12 13 20 16

Custom intra4X4 chromau:
16 16 16 16
16 16 16 16
16 16 16 16
16 16 16 16

Custom inter4X4 luma:
10 13 28 41
13 14 32 84
28 32 41 111
41 46 111 16

Custom inter4X4 chromau:
16 16 16 16
16 16 16 16
16 16 16 16
16 16 16 16

Custom intra8X8 luma:
9 9 10 10 11 16 21 29
9 9 10 10 11 16 21 29
10 10 10 10 11 16 22 31
10 10 10 11 11 17 23 33
11 11 11 11 11 19 25 36
12 12 13 13 14 20 27 40
15 15 16 16 21 27 31 45
20 20 21 22 36 40 45 16

Custom inter8X8 luma:
12 13 15 18 20 70 163 255
13 13 16 18 20 72 170 255
15 16 17 19 21 81 190 255
18 18 19 21 23 96 228 255
20 20 21 23 25 120 255 255
33 34 36 39 45 32 255 255
64 66 71 80 164 255 255 255
151 155 169 192 255 255 255 10
gioppatta is offline   Reply With Quote
Old 14th October 2012, 00:26   #138  |  Link
mp3dom
Registered User
 
Join Date: Jul 2003
Location: Italy
Posts: 1,135
They comes from a Sony Blu-Code encode. It's one of those various matrices that the encoder may use (based on the type of footage).
mp3dom is offline   Reply With Quote
Old 14th October 2012, 18:53   #139  |  Link
mandarinka
Registered User
 
mandarinka's Avatar
 
Join Date: Jan 2007
Posts: 729
Quote:
Originally Posted by gioppatta View Post
somebody knows these matrices? And what they do?

Custom intra4X4 luma:
6 7 10 16
7 7 11 17
10 11 12 20
12 13 20 16

Custom intra4X4 chromau:
16 16 16 16
16 16 16 16
16 16 16 16
16 16 16 16

Custom inter4X4 luma:
10 13 28 41
13 14 32 84
28 32 41 111
41 46 111 16

Custom inter4X4 chromau:
16 16 16 16
16 16 16 16
16 16 16 16
16 16 16 16

Custom intra8X8 luma:
9 9 10 10 11 16 21 29
9 9 10 10 11 16 21 29
10 10 10 10 11 16 22 31
10 10 10 11 11 17 23 33
11 11 11 11 11 19 25 36
12 12 13 13 14 20 27 40
15 15 16 16 21 27 31 45
20 20 21 22 36 40 45 16

Custom inter8X8 luma:
12 13 15 18 20 70 163 255
13 13 16 18 20 72 170 255
15 16 17 19 21 81 190 255
18 18 19 21 23 96 228 255
20 20 21 23 25 120 255 255
33 34 36 39 45 32 255 255
64 66 71 80 164 255 255 255
151 155 169 192 255 255 255 10
That looks like the matrix called unofficialy "Prestige". Search the forum for that.

It has been discussed for example here (original thread IIRC).
mandarinka is offline   Reply With Quote
Old 19th October 2012, 15:40   #140  |  Link
gioppatta
Registered User
 
Join Date: May 2012
Posts: 36
Thank you!
gioppatta is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:21.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.