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

Reply
 
Thread Tools Search this Thread Display Modes
Old 20th June 2005, 20:05   #1  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,770
collection of available AVC custom quant matrices

1) jvt
description: the jvt matrix, used as the default custom matrix by the avc reference software (comparable to the "mpeg" matrix of mpeg-4 asp), uses the same values in all intra4x4 matrices and the same values in all inter4x4 matrices:

Code:
#jvt

INTRA4X4_LUMA =
 6,13,20,28,
13,20,28,32,
20,28,32,37,
28,32,37,42

INTRA4X4_CHROMAU =
 6,13,20,28,
13,20,28,32,
20,28,32,37,
28,32,37,42

INTRA4X4_CHROMAV =
 6,13,20,28,
13,20,28,32,
20,28,32,37,
28,32,37,42

INTER4X4_LUMA =
10,14,20,24,
14,20,24,27,
20,24,27,30,
24,27,30,34

INTER4X4_CHROMAU =
10,14,20,24,
14,20,24,27,
20,24,27,30,
24,27,30,34

INTER4X4_CHROMAV =
10,14,20,24,
14,20,24,27,
20,24,27,30,
24,27,30,34

INTRA8X8_LUMA =
 6,10,13,16,18,23,25,27,
10,11,16,18,23,25,27,29,
13,16,18,23,25,27,29,31,
16,18,23,25,27,29,31,33,
18,23,25,27,29,31,33,36,
23,25,27,29,31,33,36,38,
25,27,29,31,33,36,38,40,
27,29,31,33,36,38,40,42

INTER8X8_LUMA =
 9,13,15,17,19,21,22,24,
13,13,17,19,21,22,24,25,
15,17,19,21,22,24,25,27,
17,19,21,22,24,25,27,28,
19,21,22,24,25,27,28,30,
21,22,24,25,27,28,30,32,
22,24,25,27,28,30,32,33,
24,25,27,28,30,32,33,35
when you want to use the jvt cqm with x264 you can do that via the following commandline:
Code:
--cqm jvt

2) q_matrix
description: the "q_matrix", coming with the avc reference software, uses the same values in all intra4x4 matrices and the same values in all inter4x4 matrices:

Code:
#q_matrix

INTRA4X4_LUMA =
 6,12,19,26,
12,19,26,31,
19,26,31,35,
26,31,35,39

INTRA4X4_CHROMAU =
 6,12,19,26,
12,19,26,31,
19,26,31,35,
26,31,35,39

INTRA4X4_CHROMAV =
 6,12,19,26,
12,19,26,31,
19,26,31,35,
26,31,35,39

INTER4X4_LUMA =
 9,13,18,21,
13,18,21,24,
18,21,24,27,
21,24,27,30

INTER4X4_CHROMAU =
 9,13,18,21,
13,18,21,24,
18,21,24,27,
21,24,27,30

INTER4X4_CHROMAV =
 9,13,18,21,
13,18,21,24,
18,21,24,27,
21,24,27,30

INTRA8X8_LUMA =
 6,10,13,16,19,24,26,28,
10,12,16,19,24,26,28,31,
13,16,19,24,26,28,31,33,
16,19,24,26,28,31,33,35,
19,24,26,28,31,33,35,37,
24,26,28,31,33,35,37,39,
26,28,31,33,35,37,39,42,
28,31,33,35,37,39,42,44

INTER8X8_LUMA =
 9,12,14,16,18,19,21,22,
12,13,16,18,19,21,22,24,
14,16,18,19,21,22,24,25,
16,18,19,21,22,24,25,27,
18,19,21,22,24,25,27,28,
19,21,22,24,25,27,28,30,
21,22,24,25,27,28,30,31,
22,24,25,27,28,30,31,33
when you want to use the q_matrix cqm with x264 you can do that via the following commandline:
Code:
--cqm4i 6,12,19,26,12,19,26,31,19,26,31,35,26,31,35,39 --cqm4p 9,13,18,21,13,18,21,24,18,21,24,27,21,24,27,30 --cqm8i 6,10,13,16,19,24,26,28,10,12,16,19,24,26,28,31,13,16,19,24,26,28,31,33,16,19,24,26,28,31,33,35,19,24,26,28,31,33,35,37,24,26,28,31,33,35,37,39,26,28,31,33,35,37,39,42,28,31,33,35,37,39,42,44 --cqm8p 9,12,14,16,18,19,21,22,12,13,16,18,19,21,22,24,14,16,18,19,21,22,24,25,16,18,19,21,22,24,25,27,18,19,21,22,24,25,27,28,19,21,22,24,25,27,28,30,21,22,24,25,27,28,30,31,22,24,25,27,28,30,31,33

3) q_matrix2
description: the "q_matrix2", coming with the avc reference software, uses the same values in all intra4x4 matrices and the same values in all inter4x4 matrices:

Code:
#q_matrix2

INTRA4X4_LUMA =
 7,16,22,24,
16,22,24,28,
18,22,27,33,
22,24,32,47

INTRA4X4_CHROMAU =
 7,16,22,24,
16,22,24,28,
18,22,27,33,
22,24,32,47

INTRA4X4_CHROMAV =
 7,16,22,24,
16,22,24,28,
18,22,27,33,
22,24,32,47

INTER4X4_LUMA =
13,15,17,18,
15,17,18,20,
17,18,21,22,
18,20,22,25

INTER4X4_CHROMAU =
13,15,17,18,
15,17,18,20,
17,18,21,22,
18,20,22,25

INTER4X4_CHROMAV =
13,15,17,18,
15,17,18,20,
17,18,21,22,
18,20,22,25

INTRA8X8_LUMA =
 7,13,16,18,22,22,24,28,
13,13,18,20,22,24,28,31,
16,18,22,22,24,28,28,32,
18,18,22,22,24,28,31,33,
18,22,22,24,27,29,33,40,
22,22,24,27,29,33,40,48,
22,22,24,28,32,38,47,57,
22,24,29,32,38,47,57,69

INTER8X8_LUMA =
13,14,15,16,17,17,18,19,
14,15,16,17,17,18,19,20,
15,16,17,17,18,19,20,21,
16,17,17,18,19,20,21,22,
17,17,18,19,21,22,22,23,
17,18,19,20,22,22,23,25,
18,19,20,22,22,23,25,26,
19,20,21,22,23,25,26,27
when you want to use the q_matrix2 cqm with x264 you can do that via the following commandline:
Code:
--cqm4i 7,16,22,24,16,22,24,28,18,22,27,33,22,24,32,47 --cqm4p 13,15,17,18,15,17,18,20,17,18,21,22,18,20,22,25 --cqm8i 7,13,16,18,22,22,24,28,13,13,18,20,22,24,28,31,16,18,22,22,24,28,28,32,18,18,22,22,24,28,31,33,18,22,22,24,27,29,33,40,22,22,24,27,29,33,40,48,22,22,24,28,32,38,47,57,22,24,29,32,38,47,57,69 --cqm8p 13,14,15,16,17,17,18,19,14,15,16,17,17,18,19,20,15,16,17,17,18,19,20,21,16,17,17,18,19,20,21,22,17,17,18,19,21,22,22,23,17,18,19,20,22,22,23,25,18,19,20,22,22,23,25,26,19,20,21,22,23,25,26,27

4) flat 16
description: not really a custom matrix, as its the matrix thats used when no custom quantisation matrix is used, but still listed for completeness:

Code:
#flat 16

INTRA4X4_LUMA =
16,16,16,16,
16,16,16,16,
16,16,16,16,
16,16,16,16

INTRA4X4_CHROMAU =
16,16,16,16,
16,16,16,16,
16,16,16,16,
16,16,16,16

INTRA4X4_CHROMAV =
16,16,16,16,
16,16,16,16,
16,16,16,16,
16,16,16,16

INTER4X4_LUMA =
16,16,16,16,
16,16,16,16,
16,16,16,16,
16,16,16,16

INTER4X4_CHROMAU =
16,16,16,16,
16,16,16,16,
16,16,16,16,
16,16,16,16

INTER4X4_CHROMAV =
16,16,16,16,
16,16,16,16,
16,16,16,16,
16,16,16,16

INTRA8X8_LUMA =
16,16,16,16,16,16,16,16,
16,16,16,16,16,16,16,16,
16,16,16,16,16,16,16,16,
16,16,16,16,16,16,16,16,
16,16,16,16,16,16,16,16,
16,16,16,16,16,16,16,16,
16,16,16,16,16,16,16,16,
16,16,16,16,16,16,16,16

INTER8X8_LUMA =
16,16,16,16,16,16,16,16,
16,16,16,16,16,16,16,16,
16,16,16,16,16,16,16,16,
16,16,16,16,16,16,16,16,
16,16,16,16,16,16,16,16,
16,16,16,16,16,16,16,16,
16,16,16,16,16,16,16,16,
16,16,16,16,16,16,16,16
to sum it up: iso/itu doesnt seem to think its worth the hassle to define different matrices for 4x4 luma and chromas

happy comparing!

attached the available cqm matrices coming with the avc reference encoder developed by mpeg plus soulhunters and sharktooths matrices:
Attached Files
File Type: zip avc_matrices.zip (1.9 KB, 995 views)
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free

Last edited by bond; 28th October 2005 at 16:29.
bond is offline   Reply With Quote
Old 20th June 2005, 20:48   #2  |  Link
Soulhunter
Bored...
 
Soulhunter's Avatar
 
Join Date: Apr 2003
Location: Unknown
Posts: 2,812
5) Soulhunters AVC v1

Description: My "Soulhunters v3 -> AVC" try... :P

Code:
#Soulhunters AVC v1

INTRA4X4_LUMA =
 8,12,14,16,
12,14,16,18,
14,16,18,24,
16,18,24,32

INTRA4X4_CHROMAU =
 8,12,14,16,
12,14,16,18,
14,16,18,24,
16,18,24,32

INTRA4X4_CHROMAV =
 8,12,14,16,
12,14,16,18,
14,16,18,24,
16,18,24,32

INTER4X4_LUMA =
 8,12,14,16,
12,14,16,18,
14,16,18,20,
16,18,20,24

INTER4X4_CHROMAU =
 8,12,14,16,
12,14,16,18,
14,16,18,20,
16,18,20,24

INTER4X4_CHROMAV =
 8,12,14,16,
12,14,16,18,
14,16,18,20,
16,18,20,24

INTRA8X8_LUMA =
 8, 8,10,12,13,14,15,16,
 8,10,12,13,14,15,16,18,
10,12,13,14,15,16,18,20,
12,13,14,15,16,18,20,22,
13,14,15,16,18,20,22,24,
14,15,16,18,20,22,24,26,
15,16,18,20,22,24,26,28,
16,18,20,22,24,26,28,32

INTER8X8_LUMA =
16,16,16,16,16,16,16,16,
16,16,16,16,16,16,16,16,
16,16,16,16,16,16,16,16,
16,16,16,16,16,16,16,16,
16,16,16,16,16,16,16,16,
16,16,16,16,16,16,16,16,
16,16,16,16,16,16,16,16,
16,16,16,16,16,16,16,16
Bye
__________________

Visit my IRC channel

Last edited by Soulhunter; 20th June 2005 at 21:06. Reason: following bonds advice...
Soulhunter is offline   Reply With Quote
Old 20th June 2005, 20:57   #3  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,770
Soulhunter, it would be great if you can write your matrices exactly the same way as i did, so
- no spaces in between the values, only ","
- using "INTRA4X4_LUMA =", "INTER8X8_LUMA =" aso

cause thats the way the cqm files are written for the reference software.
i think it would be great if there could be a standardised way of writing these files and the reference software files are useable for that i think
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free
bond is offline   Reply With Quote
Old 21st June 2005, 08:56   #4  |  Link
yaz
n00b ever
 
Join Date: May 2002
Posts: 627
@soulhunter
you're a big inventor but would u, pls, drop some words about what would we expect from this matrix ? i don't think we have enough experience w/cqm in avc (at least i haven't, sorry for those who has)
thx
y
yaz is offline   Reply With Quote
Old 21st June 2005, 09:30   #5  |  Link
Soulhunter
Bored...
 
Soulhunter's Avatar
 
Join Date: Apr 2003
Location: Unknown
Posts: 2,812
Quote:
Originally Posted by yaz
@soulhunter
...what would we expect from this matrix ?
- It quantizes intra-frames stronger than inter-frames
- It drops high frequencys stronger than low ones
- It treats the luma and the chroma equally
- It wants to be tested by you... ^^


Bye
__________________

Visit my IRC channel
Soulhunter is offline   Reply With Quote
Old 21st June 2005, 09:35   #6  |  Link
Soulhunter
Bored...
 
Soulhunter's Avatar
 
Join Date: Apr 2003
Location: Unknown
Posts: 2,812
Another try...

6) Soulhunters AVC v2

- It quantizes intra-frames and inter-frames equally
- It drops a lot high frequencys in the 4X4 chroma
- It generally drops a lot high frequencys
- It is a HVS style attempt... ^^;

Code:
#Soulhunters AVC v2

INTRA4X4_LUMA =
 8,12,14,16,
12,14,16,18,
14,16,18,24,
16,18,24,32

INTRA4X4_CHROMAU =
 8,14,16,24,
14,16,24,32,
16,24,32,64,
24,32,64,128

INTRA4X4_CHROMAV =
 8,14,16,24,
14,16,24,32,
16,24,32,64,
24,32,64,128

INTER4X4_LUMA =
 8,12,14,16,
12,14,16,18,
14,16,18,24,
16,18,24,32

INTER4X4_CHROMAU =
 8,14,16,24,
14,16,24,32,
16,24,32,64,
24,32,64,128

INTER4X4_CHROMAV =
 8,14,16,24,
14,16,24,32,
16,24,32,64,
24,32,64,128

INTRA8X8_LUMA =
 8, 9,10,12,13,14,15,16,
 9,10,12,13,14,15,16,24,
10,12,13,14,15,16,24,32,
12,13,14,15,16,24,32,48,
13,14,15,16,24,32,48,56,
14,15,16,24,32,48,56,64,
15,16,24,32,48,56,64,96,
16,24,32,48,56,64,96,128

INTER8X8_LUMA =
 8, 9,10,12,13,14,15,16,
 9,10,12,13,14,15,16,24,
10,12,13,14,15,16,24,32,
12,13,14,15,16,24,32,48,
13,14,15,16,24,32,48,56,
14,15,16,24,32,48,56,64,
15,16,24,32,48,56,64,96,
16,24,32,48,56,64,96,128
Bye
__________________

Visit my IRC channel
Soulhunter is offline   Reply With Quote
Old 21st June 2005, 09:40   #7  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
@soulhunter: remember ranges are 1-255
Sharktooth is offline   Reply With Quote
Old 21st June 2005, 10:49   #8  |  Link
Soulhunter
Bored...
 
Soulhunter's Avatar
 
Join Date: Apr 2003
Location: Unknown
Posts: 2,812
Quote:
Originally Posted by Sharktooth

@soulhunter: remember ranges are 1-255
Well, Im used to start with a 8 !!!

Sort of old habit... ^^;


Bye
__________________

Visit my IRC channel
Soulhunter is offline   Reply With Quote
Old 21st June 2005, 14:25   #9  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,770
i compared soulhunters avc v1 and v2 with x264 with the following results on the matrix1 clip (1000 frames):

v1:
Code:
x264 [info]: slice I:9    Avg QP:18.67 Avg size: 20475 PSNR Mean Y:46.05 U:49.60 V:50.63 Avg:47.03 Global:46.98
x264 [info]: slice P:393  Avg QP:20.97 Avg size:  6324 PSNR Mean Y:44.13 U:48.18 V:49.22 Avg:45.18 Global:45.03
x264 [info]: slice B:598  Avg QP:22.68 Avg size:  1973 PSNR Mean Y:43.30 U:48.01 V:49.04 Avg:44.45 Global:44.36
x264 [info]: slice I   Avg I4x4:52.5%  I8x8:29.4%  I16x16:18.1%
x264 [info]: slice P   Avg I4x4:3.8%  I8x8:6.8%  I16x16:4.4%  P:57.4%  P8x8:7.9%  PSKIP:19.7%
x264 [info]: slice B   Avg I4x4:0.5%  I8x8:0.9%  I16x16:0.3%  P:23.7%  B:9.7%  B8x8:2.1%  DIRECT:3.7%  BSKIP:59.1%
x264 [info]: 8x8 transform  intra:44.7%  inter:18.1%
x264 [info]: PSNR Mean Y:43.65 U:48.09 V:49.13 Avg:44.76 Global:44.63 kb/s:769.9
v2:
Code:
x264 [info]: slice I:8    Avg QP:18.88 Avg size: 19858 PSNR Mean Y:45.86 U:48.94 V:50.01 Avg:46.76 Global:46.72
x264 [info]: slice P:394  Avg QP:21.29 Avg size:  6348 PSNR Mean Y:44.19 U:47.84 V:48.95 Avg:45.19 Global:45.05
x264 [info]: slice B:598  Avg QP:22.92 Avg size:  1990 PSNR Mean Y:43.33 U:47.71 V:48.80 Avg:44.43 Global:44.36
x264 [info]: slice I   Avg I4x4:53.7%  I8x8:30.4%  I16x16:15.9%
x264 [info]: slice P   Avg I4x4:3.8%  I8x8:6.3%  I16x16:4.3%  P:58.3%  P8x8:7.4%  PSKIP:20.0%
x264 [info]: slice B   Avg I4x4:0.5%  I8x8:0.8%  I16x16:0.3%  P:22.2%  B:9.4%  B8x8:1.9%  DIRECT:3.0%  BSKIP:61.8%
x264 [info]: 8x8 transform  intra:43.5%  inter:30.3%
x264 [info]: PSNR Mean Y:43.69 U:47.77 V:48.87 Avg:44.75 Global:44.63 kb/s:770.0
btw x264 now supports parsing jm-style matrices files. i have attached a zip containing the reference software matrices to the first post
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free
bond is offline   Reply With Quote
Old 21st June 2005, 14:32   #10  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
It will be hard to beat the "standard" quantization with a custom matrix...
It's like ASP h263 vs CQMs... h263 wins most of the times even if visual quality is inferior...
Sharktooth is offline   Reply With Quote
Old 21st June 2005, 21:14   #11  |  Link
Joe Fenton
Registered User
 
Join Date: Jul 2003
Location: In a house.
Posts: 663
This thread should probably be a sticky.
Joe Fenton is offline   Reply With Quote
Old 21st June 2005, 21:53   #12  |  Link
lexor
Registered User
 
Join Date: Jan 2004
Posts: 849
Quote:
Originally Posted by Joe Fenton
This thread should probably be a sticky.
it shouldn't because the moment it becomes sticky it will gain too much of an "official" status which would lead many people to believe that matrices presented here are better than default. Which hasn't been shown by any reasonably involved visual comparison.

when a bunch of people do that and show visual difference thorough clips or screenshots then we can start a sticky with those "better" matrices.

P.S. After writing this I'm sort of ashemed of not participating in visual comparison they had in XVid forum for CQM's
__________________
Geforce GTX 260
Windows 7, 64bit, Core i7
MPC-HC, Foobar2000

Last edited by lexor; 21st June 2005 at 21:55.
lexor is offline   Reply With Quote
Old 21st June 2005, 22:29   #13  |  Link
Soulhunter
Bored...
 
Soulhunter's Avatar
 
Join Date: Apr 2003
Location: Unknown
Posts: 2,812
A CQM sticky in the XviD forum would be nice... XD


Bye
__________________

Visit my IRC channel

Last edited by Soulhunter; 21st June 2005 at 22:32.
Soulhunter is offline   Reply With Quote
Old 22nd June 2005, 00:34   #14  |  Link
Soulhunter
Bored...
 
Soulhunter's Avatar
 
Join Date: Apr 2003
Location: Unknown
Posts: 2,812
@ bond

Btw, is it possible to add separate scaling for 8x8 chroma ???

Would help to make a real HVS style CQM... ^^


Bye
__________________

Visit my IRC channel
Soulhunter is offline   Reply With Quote
Old 22nd June 2005, 10:19   #15  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
No, there's no 8x8 chroma quantization in h.264.
Sharktooth is offline   Reply With Quote
Old 24th June 2005, 10:46   #16  |  Link
Soulhunter
Bored...
 
Soulhunter's Avatar
 
Join Date: Apr 2003
Location: Unknown
Posts: 2,812
Just to keep this list up to date...

-> EQM AVC HR -- BETA --


Bye
__________________

Visit my IRC channel

Last edited by Soulhunter; 24th June 2005 at 10:50.
Soulhunter is offline   Reply With Quote
Old 30th October 2005, 00:00   #17  |  Link
*.mp4 guy
Registered User
 
*.mp4 guy's Avatar
 
Join Date: Feb 2004
Posts: 1,348
Don't Know how I missed this thread.

-Intra more aggresively compressed then inter
-Chroma roughly twice as aggressively compressed as luma
-High frequencies are dropped aggressively on intra
-High frequencies are dropped semi-aggressively on inter
-[Edit2] Removed spaces between numbers.

Mp4Guy's low Bitrate [edit1] V2
Code:
INTRA4X4_LUMA =
8,16,23,30,
16,25,34,40,
23,34,46,60,
30,40,60,84

INTRA4X4_CHROMAU =
16,20,36,46,
20,38,56,67,
36,56,77,102,
46,67,102,166

INTRA4X4_CHROMAV =
16,20,36,46,
20,38,56,67,
36,56,77,102,
46,67,102,166

INTER4X4_LUMA =
12,15,20,24,
15,22,27,32,
20,27,35,42,
24,32,42,55

INTER4X4_CHROMAU =
18,20,32,38,
20,36,44,56,
32,44,66,78,
38,56,78,100

INTER4X4_CHROMAV =
18,20,32,38,
20,36,44,56,
32,44,66,78,
38,56,78,100

INTRA8X8_LUMA =
8,13,16,18,23,28,29,32,
13,14,18,22,26,27,29,33,
16,18,23,27,28,29,32,35,
18,22,27,30,32,34,38,39,
23,26,28,32,37,42,45,47,
28,27,29,34,42,49,55,57,
29,29,32,38,45,55,63,69,
32,33,35,39,47,57,69,84

INTER8X8_LUMA =
8,12,14,15,16,17,18,20,
12,13,16,17,18,19,21,22,
14,16,18,19,20,22,24,25,
15,17,19,21,24,26,27,28,
16,18,20,24,28,29,30,32,
17,19,22,26,29,32,35,38,
18,21,24,27,30,35,42,46,
20,22,25,28,32,38,46,55

Last edited by *.mp4 guy; 7th November 2005 at 23:04.
*.mp4 guy is offline   Reply With Quote
Old 24th November 2005, 11:54   #18  |  Link
redfordxx
Registered User
 
Join Date: Jan 2005
Location: Praha (not that one in Texas)
Posts: 863
Well when there will be again increasing number of Qmatrices for AVC, I expect again confusion which one to choose.
Yeah, for low bitrate use low bitrate matrix for high bitrate high bitrate matrix.
But with bitrate comes compressibility and resolution, so it is not so plain.

How about measuring it with Quantizer? I mean to find some rules like
"the matrix performs best at average Q=20",
or
"If you reach 2nd pass with matrix abc_low_bitrate average Q=15, you should go for abc_mid_bitrate." (I am referring to the fact, that some of matrix producers made whole series for XviD)

Last edited by redfordxx; 24th November 2005 at 11:58.
redfordxx is offline   Reply With Quote
Old 18th February 2006, 11:08   #19  |  Link
*.mp4 guy
Registered User
 
*.mp4 guy's Avatar
 
Join Date: Feb 2004
Posts: 1,348
Some small changes from V3, reduced blocking and hopefully better detail preservation, also shortened the name. I have also changed the recommended Deblocking setting, its now -3:-1 for a sharp picture and 0:1 for a smooth picture.

Mp4Guy's LRM V4
Code:
INTRA4X4_LUMA =
8,22,32,47,
22,48,55,57,
32,55,63,69,
47,57,69,84	

INTRA4X4_CHROMAU =
16,20,34,64,
20,40,62,78,
34,62,98,138,
64,78,138,168

INTRA4X4_CHROMAV =
16,20,34,64,
20,40,62,78,
34,62,98,138,
64,78,138,168

INTER4X4_LUMA =
12,28,28,32,
28,32,35,38,
28,35,42,46,
32,38,46,55	

INTER4X4_CHROMAU =
18,24,34,41,
24,40,48,56,
34,48,64,92,
41,56,92,110		

INTER4X4_CHROMAV =
18,24,34,41,
24,40,48,56,
34,48,64,92,
41,56,92,110	

INTRA8X8_LUMA =
8,11,10,16,24,28,29,32,
12,13,14,19,26,27,29,33,
14,13,16,24,28,29,32,35,
14,17,22,30,32,34,38,39,
18,22,28,32,37,42,45,47,
24,27,29,34,42,49,55,57,
29,29,32,38,45,55,63,69,
32,33,35,39,47,57,69,84

INTER8X8_LUMA =
13,14,16,18,20,21,22,24,
14,15,18,19,20,21,22,25,
16,18,20,21,22,23,25,27,
18,19,21,23,25,26,29,31,
20,20,22,25,28,31,35,38,
21,21,23,26,31,37,42,48,
22,22,25,29,35,42,51,61,
24,25,27,31,38,48,61,76
Quote:
Originally Posted by bond
mp4 guy: i am not sure if it makes a difference for the encoders, but cqm files dont use spaces between the values, plz remove them!
Well it doesn't make a difference, but I got rid of them anyway.

Last edited by *.mp4 guy; 23rd August 2006 at 16:45.
*.mp4 guy is offline   Reply With Quote
Old 18th February 2006, 12:32   #20  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,770
mp4 guy: i am not sure if it makes a difference for the encoders, but cqm files dont use spaces between the values, plz remove them!
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau)
I know, that I know nothing (Socrates)

MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide)
Ogg Theora | Ogg Vorbis
use WM9 today and get Micro$oft controlling the A/V market tomorrow for free
bond is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 06:23.


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