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. |
|
20th June 2005, 20:05 | #1 | Link |
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 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 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 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 happy comparing! attached the available cqm matrices coming with the avc reference encoder developed by mpeg plus soulhunters and sharktooths matrices:
__________________
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. |
20th June 2005, 20:48 | #2 | Link |
Bored...
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 Last edited by Soulhunter; 20th June 2005 at 21:06. Reason: following bonds advice... |
20th June 2005, 20:57 | #3 | Link |
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 |
21st June 2005, 09:30 | #5 | Link | |
Bored...
Join Date: Apr 2003
Location: Unknown
Posts: 2,812
|
Quote:
- It drops high frequencys stronger than low ones - It treats the luma and the chroma equally - It wants to be tested by you... ^^ Bye |
|
21st June 2005, 09:35 | #6 | Link |
Bored...
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 |
21st June 2005, 14:32 | #7 | Link |
Mr. Sandman
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...
__________________
MPEG-4 ASP Custom Matrices: EQM V1(old), EQM AutoGK Sharpmatrix (aka EQM V2), EQM V3HR (updated 01/10/2004), EQM V3LR, EQM V3ULR (updated 04/02/2005), EQM V3UHR (updated 17/12/2004) and EQM V3EHR (updated 05/10/2004) Info about my ASP matrices. MPEG-4 AVC Custom Matrices: EQM AVC-HR Info about my AVC matrices My x264 builds. Mooo!!! |
21st June 2005, 21:53 | #9 | Link | |
Registered User
Join Date: Jan 2004
Posts: 849
|
Quote:
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. |
|
22nd June 2005, 10:19 | #12 | Link |
Mr. Sandman
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
|
No, there's no 8x8 chroma quantization in h.264.
__________________
MPEG-4 ASP Custom Matrices: EQM V1(old), EQM AutoGK Sharpmatrix (aka EQM V2), EQM V3HR (updated 01/10/2004), EQM V3LR, EQM V3ULR (updated 04/02/2005), EQM V3UHR (updated 17/12/2004) and EQM V3EHR (updated 05/10/2004) Info about my ASP matrices. MPEG-4 AVC Custom Matrices: EQM AVC-HR Info about my AVC matrices My x264 builds. Mooo!!! |
19th February 2006, 08:07 | #13 | Link |
Mr. Sandman
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
|
i confirm what revgen said. 700kbps is too low for EQM AVC-HR (unless the source is supercompressible o.r the resolution is lowered)
__________________
MPEG-4 ASP Custom Matrices: EQM V1(old), EQM AutoGK Sharpmatrix (aka EQM V2), EQM V3HR (updated 01/10/2004), EQM V3LR, EQM V3ULR (updated 04/02/2005), EQM V3UHR (updated 17/12/2004) and EQM V3EHR (updated 05/10/2004) Info about my ASP matrices. MPEG-4 AVC Custom Matrices: EQM AVC-HR Info about my AVC matrices My x264 builds. Mooo!!! |
20th February 2006, 05:34 | #14 | Link | |
Registered User
Join Date: May 2005
Posts: 184
|
The usage of the EQM AVC-HR cqm is mentioned in the download page (2005-08-01).
http://forum.doom9.org/showpost.php?...92&postcount=1 Quote:
- Movie resolution (640x480 up to 720x480) - Interlaced* or Progressive video? *Sorry, i'm not familiar to cqm, is there any cqm for interlaced video? (where is the "I'm with stupid" icon? I can't find it!!) - Recommended bitrates (1000kbps) - Recommended movie type (Anime, TV & etc) |
|
8th March 2006, 07:26 | #17 | Link |
Registered User
Join Date: Dec 2005
Posts: 145
|
Code:
INTRA4X4_LUMA = 10,12,14,16, 12,14,16,18, 14,16,18,20, 16,18,20,20 INTRA4X4_CHROMAU = 13,14,15,16, 14,15,16,18, 15,16,18,20, 16,18,20,20 INTRA4X4_CHROMAV = 13,14,15,16, 14,15,16,18, 15,16,18,20, 16,18,20,20 INTER4X4_LUMA = 10,12,14,16, 12,14,16,18, 14,16,18,20, 16,18,20,20 INTER4X4_CHROMAU = 13,14,15,16, 14,15,16,18, 15,16,18,20, 16,18,20,20 INTER4X4_CHROMAV = 13,14,15,16, 14,15,16,18, 15,16,18,20, 16,18,20,20 INTRA8X8_LUMA = 10,10,11,12,12,13,14,15, 10,11,12,13,13,15,15,16, 11,12,12,14,15,15,16,17, 12,13,14,15,15,16,17,18, 12,13,15,15,16,17,18,19, 13,15,15,16,17,18,19,19, 14,15,16,17,18,19,19,20, 15,16,17,18,19,19,20,20 INTER8X8_LUMA = 10,10,11,12,12,13,14,15, 10,11,12,13,14,14,15,16, 11,12,12,14,14,15,16,17, 12,13,14,14,15,16,17,18, 12,14,14,15,16,17,18,19, 13,14,15,16,17,18,19,20, 14,15,16,17,18,19,20,20, 15,16,17,18,19,20,20,20 No matter how much you tweak the default flat16, it is always a drop in psnr... This is just simply cut and paste from xvid's SixOfNine, merging with soulhunter_v1's 4x4s .....decresing all the values so that no. 20 is the max... soulhunter's v2 has some problems, it tends to so some ugly red spot on a clean blue sky with crf 26, well, i tried this sixofnine port, it does solve this problems... still need testing Last edited by kotrtim; 11th March 2006 at 09:16. |
8th March 2006, 08:45 | #19 | Link |
Registered User
Join Date: Dec 2005
Posts: 145
|
picture order 1. original 2. soulhunter v2 3. eqm_avc_hr 4. jvt 5. soulhunter/sixofnine merge look carefully, the top left corner (North East) I'm using --nf besides this, soulhunter v2 will produce errors like one big red area on a clean blue sky, tried eqm, no such errors, i will try to reproduce. EDIT: sorry, checked eqm, same error, even worst 2 spot, one clear, one faint...jvt does not have such errors, which is very annoying EDIT2 : Tested with more different settings, the above encodes are all default settings (except crf 26 , cqm, nf).. I tried subme 6 and it help to make the spot less noticible and also shifted the spot to another location, subme 6 + no fast pskip solved all the problems, it's more like a x264 bug, not a cqm problem, but of course if default settings is used with default matrix, no such problems So for those who use cqm, subme 6 + no fast pskip is a must, even better if trellis 2 is used Last edited by kotrtim; 9th March 2006 at 06:54. |
Thread Tools | Search this Thread |
Display Modes | |
|
|