PDA

View Full Version : XviD4conf can't read custom matrix?


kinematic
15th April 2007, 15:37
Lately i've been playing around with Xvid encoding and in my searching on Google to learn more i came across custom matrices here on the doom9 forum.
Supposedly Jawor's 1 cd matrix is very good so i fired up xvid4conf and went to the matrix editor.
I then navigated to that matrix and selected to load it but xvid4conf says it can't read it because of a syntax error.
It has the right file extention as far as I can tell(*.cqm)but when i open it i get this wich doesn't seem right.
http://img187.imageshack.us/img187/4074/schermafdrukxk9.th.png (http://img187.imageshack.us/my.php?image=schermafdrukxk9.png)
This matrix came in a folder i d'loaded from here and other matrices look similar.
And then some other matrices are identified as binary files or apllication/octet stream so i really don't have a clue what's going on here and could use some help.

BigDid
15th April 2007, 19:51
Lately i've been playing around with Xvid encoding and in my searching on Google to learn more i came across custom matrices here on the doom9 forum.
Supposedly Jawor's 1 cd matrix is very good
Hi,

It is a very good cqm for low to mid bitrate range (used in AutoGordianKnot as standard soft matrix/cqm) and I renew my thanks and congratulations to the author (even if he is not active nowadays).

so i fired up xvid4conf and went to the matrix editor.
I then navigated to that matrix and selected to load it but xvid4conf says it can't read it because of a syntax error.
It has the right file extention as far as I can tell(*.cqm)but when i open it i get this wich doesn't seem right.
Right extension is .xcm. You can
1/ Re-download the cqm from the source: http://www-users.mat.uni.torun.pl/~jawor/matrix/
2/ Point the Xvid encoder configurator: programs/Xvid/Configure encoder in Windows then Profile@level/editmatrix/loadmatrix
and select it

You will know that it is the right one choosen when you see the 31/124 numbers right top and bottom of the xvid/conf matrix editor.

Did

kinematic
15th April 2007, 21:44
Still no luck(i'm using debian GNU/Linux).
I d'loaded it again from the link you gave but i'm still getting a syntax error when i try to load it.
I'm completely stuck so i guess i'll have to use the standard matrices.

BigDid
15th April 2007, 22:09
Still no luck(i'm using debian GNU/Linux).
I d'loaded it again from the link you gave but i'm still getting a syntax error when i try to load it.
I'm completely stuck so i guess i'll have to use the standard matrices.
You could try to manually enter the numbers (from the link given) in your xvid/config editor AND trying to save that edited matrix, so it can be reused.

Did

kinematic
15th April 2007, 23:17
i can't,the matrix editor on linux is different i guess.
i can't enter numbers in a intra and inter matrix editor(see thumbnail).
http://img159.imageshack.us/img159/7254/schermafdruk1rm2.th.png (http://img159.imageshack.us/my.php?image=schermafdruk1rm2.png)

BigDid
16th April 2007, 18:42
i can't,the matrix editor on linux is different i guess.
i can't enter numbers in a intra and inter matrix editor(see thumbnail).
http://img159.imageshack.us/img159/7254/schermafdruk1rm2.th.png (http://img159.imageshack.us/my.php?image=schermafdruk1rm2.png)
Hmmm,

You could try Avidemux: http://forum.doom9.org/showthread.php?t=108784&page=11&highlight=avidemux
it has (among other things) an xvid encoder and is available in linux: http://fixounet.free.fr/avidemux/
and I just checked the Win rev, it has the cqm loader/editor...

Did

subspawn
17th April 2007, 10:33
transcode (which uses xvid4conf generated xvid.conf files) requires the custom matrixes in a different format.
Namely .inter and .intra

Place the following options in the xvid.conf file:

quant_intra_matrix = jawor-1cd.intra
quant_inter_matrix = jawor-1cd.inter


In which the jawor-1cd.intra file contains:

8 16 20 23 27 30 32 34
16 16 23 24 29 31 34 38
20 23 27 28 30 35 38 40
23 24 28 29 35 39 40 44
27 29 30 35 39 42 45 50
30 31 35 39 42 46 54 59
32 34 38 40 45 54 62 72
34 38 40 44 50 59 72 84

jawor-1cd.inter:

17 19 21 23 25 27 29 31
19 21 23 25 27 28 29 33
21 23 25 27 29 30 32 37
23 25 27 30 31 34 40 45
25 27 29 31 38 46 54 60
27 28 30 34 46 58 72 74
29 29 32 40 54 72 90 100
31 33 37 45 60 74 100 124


I used to open the xcm files with Wine & a xcm editor, and just copy paste all the values in plain text files .inter and .intra

kinematic
17th April 2007, 18:02
Thnx for the info subspawn...will try this.
I've also been playing with avidemux and i like it much better.
The xvid configure utility in avidemux accepts custom matrices just fine(i have to say jawor's matrix is great and HVS best is also good)and the filters for resizing,cropping and deinterlacing are also better imo.
I just start it from the terminal at nice level 10 wich gives a good compromise between cpu utilization and encoding time.
All in all i like it much better :)

BigDid
17th April 2007, 18:46
Thnx for the info subspawn...will try this.
I've also been playing with avidemux and i like it much better.
The xvid configure utility in avidemux accepts custom matrices just fine(i have to say jawor's matrix is great and HVS best is also good)and the filters for resizing,cropping and deinterlacing are also better imo...
Hi,

Glad it worked. I made a mistake on the direct link to avidemux and have updated my previous post.

Be aware Avidemux is (was?) picky with mpg2 big sources (more than 4Gb) but Mean is working hard to release better revs each time. Good luck.

Did

kinematic
17th April 2007, 22:59
my first encoding turned out great(Axxo like quality on 1 cd)....i'm pretty pleased with myself :D