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. |
7th July 2017, 14:14 | #1 | Link | |
Registered User
Join Date: Jun 2017
Posts: 2
|
X265 Best Settings for Anime?
Hello!
I want to encode some of my older Anime Files into x265 to save some space. I'm using this settings at the moment (StaxRip), but i'm still not happy with them. Quote:
Original: https://picload.org/view/rplrwcil/x265original.png.html x265 Encode: https://picload.org/view/rplrwcia/x265neu.png.html Are there some recommended x265 Settings for Anime Content? Thank you! Patrick |
|
7th July 2017, 14:33 | #2 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
Hi,
regarding anime and color there are more competent people here then me but you should upload the full log file because there is more involved then x265, have a look in my signature.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists Last edited by stax76; 7th July 2017 at 14:39. |
9th July 2017, 18:09 | #3 | Link |
Testeur de codecs
Join Date: May 2003
Location: France
Posts: 2,484
|
sao must really help for anime like high value for deblocking.
Code:
--ctu 32 --max-tu-size 16 Code:
--psy-rd 1.6 --psy-rdoq 5.0 --rdoq-level 1
__________________
Le Sagittaire ... ;-) 1- Ateme AVC or x264 2- VP7 or RV10 only for anime 3- XviD, DivX or WMV9 |
9th July 2017, 18:44 | #4 | Link |
Registered User
Join Date: Apr 2008
Posts: 58
|
From my personal tests with low motion anime, I have found these settings to help:
Code:
--psy-rd 1 --tu-intra 4 --tu-inter 4 --limit-tu 1 I have tested Psy RD settings and have found that a value of 1 works best with low detail anime. Setting it too low starts to affect any dithering used causing gradients to look worse, while setting it too high can make the image look less clean. Same can also be said with the AQ Strength -- don't set it higher than 1 and don't drop it below 0.7. Encoding at 10 bit will also help plenty with preserving gradients, so I highly recommend it for anime and cartoons. Edit: I should also add that deblock with strength of 1 or 2 is also a must for encoding anime. Leave SAO and Strong Intra Smoothing enabled as the benefit of preserving flat colors and gradients outweigh the need of keeping high frequency detail with anime. Last edited by Heaud; 9th July 2017 at 18:59. |
10th July 2017, 04:12 | #5 | Link |
Registered User
Join Date: Mar 2008
Posts: 448
|
Saving disk space?
How about using Level 5.1 and set --ref to 6? After all, new Ultra HD Blu-ray specification actually recommends 10bit L5.1 with max 6 ref frames. Set --aq-mode 3 too. I got funny result (with --aq-mode 1) on anime character with black hair where it seems to be 'blocky' at middle of black hair? Next, B-frames, stick with b-frames=16 in conjunction with b-adapt=1. Well....b-adapt=2 is the best, but it is way too slow when one sets 16 b-frames. Enable --weightb for better bframe efficiency. Now, about the color....which decoder you use before piping the output to x265? |
10th July 2017, 14:19 | #6 | Link |
Registered User
Join Date: Jan 2010
Posts: 709
|
Code:
--level-idc 4 -F 1 --lookahead-slices 0 --no-high-tier --limit-modes --limit-refs 3 --crf 16 --deblock -1:-1 --rc-lookahead 60 --ref 6 --bframes 8 --aq-mode 3 --aq-strength 0.6 --ssim-rd --dynamic-rd 2.0 --aq-motion --no-sao --no-strong-intra-smoothing --psy-rd 1.5 --rdoq-level 2 --psy-rdoq 1.0 --qcomp 0.6 --qg-size 16 --tu-intra 4 --tu-inter 4 --limit-tu 4 --rect --cbqpoffs -3 --crqpoffs -3 --videoformat ntsc --range limited --colorprim bt709 --transfer bt709 --colormatrix bt709 --vbv-maxrate 12000 --vbv-bufsize 12000 Imho 8 or 10 bit is a matter of taste as more deblock and sao
__________________
powered by Google Translator Last edited by Motenai Yoda; 10th July 2017 at 14:26. |
10th July 2017, 22:55 | #7 | Link | |
Registered User
Join Date: Apr 2008
Posts: 58
|
Quote:
I do agree with aq-mode of 3 to be quite useful with anime, although some consideration is needed with CRF as it may need to be increased a bit if you want to avoid the increase in encode file size. |
|
15th July 2017, 22:48 | #8 | Link |
Registered User
Join Date: May 2009
Posts: 328
|
This is what I use, and it works for me.
pmode:rd=4:tu-intra-depth=3:rdoq-level=2:early-skip:b-intra:limit-modes:aq-mode=2:qg-size=16:ipratio=1.38bratio=1.28:me=3:max-merge=3:weightb:bframes=6:rc-lookahead=50:ref=6sy-rdoq=1.38:no-sao it might not be the best of the best, but it does a great job to my eyes. |
16th July 2017, 09:40 | #9 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
This modded build of x265 (https://down.7086.in/x265-Yuuki-Asuna/) has 2 anime presets build in + a high and low bitrate variant.
My personal experience is that rd-refine helps alot, but it is also slow...
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database |
26th July 2017, 19:40 | #10 | Link | ||
Moderator
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,750
|
Quote:
More for "how good quality can I get over a 2G network", NOT for UHD HDR ! Quote:
For anime, I've found positive results also using: --tskip --tskip-fast --tu-inter 4 --tu-intra 4 --limit-tu 4 But at a speed hit. |
||
10th August 2018, 22:15 | #11 | Link |
Registered User
Join Date: Feb 2007
Posts: 128
|
Hm... I basically used the above setting but... my character here had a pretty bad hair day afterwards...
https://i.imgur.com/FJychbE.png What can I do? More bitrate the only solution? Yes, the hair moves a lot in this scene. Settings: 1) (BluRay) 2) --crf 23 --profile main10 --output-depth 10 --limit-tu 4 --tu-intra-depth 4 --tu-inter-depth 4 --tskip --tskip-fast --aq-mode 3 --no-open-gop 3) --crf 25 --profile main10 --output-depth 10 --limit-tu 4 --tu-intra-depth 4 --tu-inter-depth 4 --tskip --tskip-fast --aq-mode 3 --no-open-gop Code:
|
10th August 2018, 22:41 | #12 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
You also tried with --preset slower or veryslow ?
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database |
11th August 2018, 11:37 | #13 | Link |
Registered User
Join Date: Feb 2007
Posts: 128
|
Veryslow didn't help really. :-/
I had some success with no_cutree though. Still the result is not really great. https://i.imgur.com/AJH6FOA.png "My settings": --crf 24 --profile main10 --output-depth 10 --limit-tu 4 --tu-intra-depth 4 --tu-inter-depth 4 --tskip --tskip-fast --aq-mode 3 --no-open-gop Last edited by katzenjoghurt; 11th August 2018 at 11:56. |
12th August 2018, 00:14 | #14 | Link |
Registered User
Join Date: May 2002
Posts: 95
|
I'm using ffmpeg and I had always positive results in anime in veryslow with this: keyint=250:ref=6:limit-refs=3:rc-lookahead=60:amp=1:subme=7:aq-mode=3:aq-strength=1.25sy-rd=0.80sy-rdoq=2.00
I found that aq-mode 3 with combination of aq-strength in the range of 1.25 to 1.5, psy-rd in the range 0.75-0.80 and psy-rdoq 2.00 do wonders in dark scenes at the cost of bitrate, in one case the crf 25 files with my config looked better that a standard crf 23 and both had a similar size. |
12th August 2018, 09:07 | #15 | Link |
Herr
Join Date: Apr 2009
Location: North Europe
Posts: 556
|
@katzenjoghurt. I've read that you should lower your aq-strength to like 0.6 for anime, because the solid/"texture"-areas are usually not complex compared to real life footage solid areas.
Although high aq-strength might help against banding if I recall correctly. Maybe you should try a x265-build set for anime, like this, https://forum.doom9.org/showthread.p...11#post1846311 or maybe of course lower CRF to like 22. Last edited by Forteen88; 12th August 2018 at 10:29. |
12th August 2018, 12:15 | #16 | Link | ||
Registered User
Join Date: Feb 2007
Posts: 128
|
Quote:
Eventually I used the vcb-s++ preset. Result: BluRay vs. x265@CRF23 / 3422 kb/s: https://imgur.com/a/R1jMyry Quote:
Though at crf22 I kinda liked the result. BluRay vs. x265@CRF22 / 4116 kb/s vs. x265@CRF24 / 3140 kb/s: https://imgur.com/a/DckbQAb (Didn't try out veryslow though) Eventually I came up now with a setup the user Meteorrain posted here in the forum 2 years ago. And added no_cuttree and set aq-strength to 0.5. --crf 24 --profile main10 --output-depth 10 --rd 4 --ctu 32 --max-tu-size 16 --tu-intra-depth 2 --tu-inter-depth 2 --rdoq-level 1 --psy-rdoq 5 --aq-strength 0.5 --qcomp 0.75 --no-cutree --merange 44 --no-sao --psy-rd 1.6 --rdpenalty 1 --no-strong-intra-smoothing BluRay vs. x265 @CRF24 / 3258kb/s: https://imgur.com/a/i3rdeyY Still not awesome but (for my eyes) the best result so far at that bitrate for that situation. Last edited by katzenjoghurt; 12th August 2018 at 12:18. |
||
13th August 2018, 23:03 | #17 | Link |
結城有紀
Join Date: Dec 2003
Location: NJ; OR; Shanghai
Posts: 894
|
__________________
Projects x265 - Yuuki-Asuna-mod Download / GitHub TS - ADTS AAC Splitter | LATM AAC Splitter | BS4K-ASS Neo AviSynth+ filters - F3KDB | FFT3D | DFTTest | MiniDeen | Temporal Median Last edited by MeteorRain; 13th August 2018 at 23:06. |
13th August 2018, 23:19 | #18 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
Make a very short encode and open your file in mediainfo to see all settings.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database |
16th August 2018, 22:22 | #19 | Link | ||
Registered User
Join Date: Feb 2007
Posts: 128
|
Quote:
Compressed several movies now with these altered settings above and I like the result in general - except in dark scenes maybe where areas tend to not stay really flat any more near the edges. Quote:
Especially the new tunes in there. When to pick which one? But I think I'm happy with the settings I found now... |
||
17th August 2018, 18:19 | #20 | Link | |
Moderator
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,750
|
Quote:
It might also be your display. Depending on how it's made, lots of displays get weird artifacts in near-black. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|