Log in

View Full Version : Anime Matrices


egrimisu
9th July 2008, 18:03
Hi, would some one please recomand me a good anime matrix is there is one? Thanks in advance.

Dark Shikari
9th July 2008, 18:05
Flat:

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

;)

( And if you didn't get the joke, flat is the default :D )

Adub
9th July 2008, 18:09
matrices are being phased out, especially with the new psy optimizations.

Don't worry about matrices, and you will be fine.

egrimisu
9th July 2008, 20:58
But i have this anime and i select 1700 bitrate to encode the file to 310mb and i get a 264mb result + the video is not that great. I used 2 pass encodig with these settings : program --pass 2 --bitrate 1773 --stats ".stats" --ref 16 --mixed-refs --no-fast-pskip --bframes 16 --b-pyramid --b-rdo --bime --weightb --direct auto --subme 7 --trellis 2 --partitions p8x8,b8x8,i4x4,i8x8 --8x8dct --me tesa --threads 2 --thread-input --progress --no-psnr --no-ssim --output "output" "input" . Am i doing something wrong? Do you have a good advice? Thanks

Dark Shikari
9th July 2008, 21:11
But i have this anime and i select 1700 bitrate to encode the file to 310mb and i get a 264mb result + the video is not that great. I used 2 pass encodig with these settings : program --pass 2 --bitrate 1773 --stats ".stats" --ref 16 --mixed-refs --no-fast-pskip --bframes 16 --b-pyramid --b-rdo --bime --weightb --direct auto --subme 7 --trellis 2 --partitions p8x8,b8x8,i4x4,i8x8 --8x8dct --me tesa --threads 2 --thread-input --progress --no-psnr --no-ssim --output "output" "input" . Am i doing something wrong? Do you have a good advice? ThanksWhat is defined as "not good"? Can you give an example?

Also, weightb is probably a bad idea on anime.

Sharktooth
10th July 2008, 04:03
are you using megui for encoding?

mahsah
10th July 2008, 04:56
An "Anime Matrix" (http://en.wikipedia.org/wiki/Animatrix) you say?

I'm going to regret that, aren't I?

egrimisu
10th July 2008, 09:15
Yes i' using meGUI for encode, the problem with my encode is that i'm getting macroblocking in dark areas, in light areas everything is great.Another concern is that i set the video bitrate to 1700Kb/s that mean that i sould get 311mb file size and i get smaller aprox 270mb.

mahsah i'm talking about this kind of matrix:
16,16,16,16,
16,16,16,16,
16,16,16,16,
16,16,16,16

Sharktooth
10th July 2008, 13:46
try disabling the psy-rdo adding --rdcmp ssd to the custom commandline options

Dark Shikari
10th July 2008, 13:58
try disabling the psy-rdo adding --rdcmp ssd to the custom commandline optionsWhich is a bit odd, given that of all the ways psy RDO could screw up anime, blocking in dark areas is the last thing I'd expect...

It almost sounds like he has AQ off or something. Its hard to tell without samples though, which is why I asked... its pretty useless to say "it looks bad" or "its blocky" without providing an example.

*.mp4 guy
10th July 2008, 14:37
If aq for some reason is not enough, you could run the source through an avisynth script to clean it up and make the gradients more encoder friendly, if even that is not enough, you can pair aq with a cqm, but thats liable to leave your lines a real mess if your bitrate isnt very high.

Proper preprocessing of dificult sources is as important to compression achieved as encoder settings, pristine sources, even if very noisy and high motion, will look miles better, even with non-optimal settings then a botched source will ever be able to look. Some things in particular do not work well with X264, compression artifacts, very comonly found in grainy, darkly lit portions of a source, have been documented to send it into fits, and the best way to address the problem is to remove the artifacts, encoder tweaks can reduce the problem, but come at the cost of overal efficiency.