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. |
26th February 2017, 12:46 | #4841 | Link | ||
Registered User
Join Date: May 2015
Posts: 185
|
Quote:
Gotcha. Not really helpful now is it? Quote:
Speaking of quality or should we rather call it "detail retention", I see everyone coming up with different custom deblocking values. Some are like -1:-1 where as others recommend as far as -6:-6, is there a "best" and a "safe" value? or when is actually too much deblocking... well... "too much"? My latest test settings are: x265.exe --crf 21 --aq-mode 1 --ctu 64 --qg-size 32 --deblock -6:-6 --me star --bframes 8 --rc-lookahead 60 --ref 5 --b-adapt 2 --tu-intra-depth 4 --tu-inter-depth 4 --merange 92 --weightp --weightb --scenecut 40 --rd 4 --limit-ref 0 --limit-modes --tskip --rect --amp --max-merge 5 --subme 7 --b-intra --no-rskip --no-sao --no-strong-intra-smoothing in.y4m -o out.hevc |
||
26th February 2017, 12:50 | #4842 | Link |
ffx264/ffhevc author
Join Date: May 2007
Location: /dev/video0
Posts: 1,843
|
your line looks good, except for the, IMHO, too high merange value. Even for UHD, that's overkill. As to deblocking, there's no magic value and different people prefer different values. I'm fine with -3 and even -2. also, if you're mostly encoding HD/FHD, a CTU of 32 is slightly preferred
|
26th February 2017, 12:59 | #4843 | Link | |||
Registered User
Join Date: May 2015
Posts: 185
|
Quote:
Quote:
Quote:
Edit: Also I can't find the command line switch to set a custom lookahead-slices arg. |
|||
26th February 2017, 13:23 | #4844 | Link | ||||
ffx264/ffhevc author
Join Date: May 2007
Location: /dev/video0
Posts: 1,843
|
Quote:
The reason I said that 97 is overkill is because with that value, the encoder may select a motion vector that's not necessarily the best one. It is a similar situation with x264 where values above 32 can actually in some cases hurt quality instead of improving it. Quote:
Quote:
Quote:
|
||||
26th February 2017, 13:28 | #4845 | Link | |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
Quote:
Yes the filesize will be a little bit smaller or the quality a little bit better, but it will be so small that it's not really worth it. That's why it is in the placebo preset, bcs it's sloooow
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database |
|
26th February 2017, 14:53 | #4847 | Link | |
Registered User
Join Date: May 2015
Posts: 68
|
Quote:
1) Lowering the merange to 57 will significantly boost your encoding speed, and it is very unlikely (read, impossible) that you will notice any quality degradation. 2) CTU of 32 is good enough for 1080p, and that too will give you significant speed increase. Only much higher resolutions will benefit from CTU 64. A couple of pages back, you were complaining about slow encoding speed, so I'm wondering why you would set these unhelpfully large values for merange especially, and CTU. Last edited by aymanalz; 26th February 2017 at 14:55. |
|
26th February 2017, 17:51 | #4850 | Link | ||
Registered User
Join Date: May 2015
Posts: 185
|
Quote:
2160p = 92 merange. 1080p = 57 merange. 720p = ?? merange. Quote:
1080p = CTU 32. 720p = CTU ??. Because... these values were the ones taken directly from the placebo presets? |
||
26th February 2017, 17:53 | #4851 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
|
But "placebo" means "you have to believe in it to see any advantage over sensible presets". Or in other words: Rather a waste of time and energy than a visible advantage.
|
26th February 2017, 19:32 | #4855 | Link |
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,718
|
I did a small test concerning CTU 64 and 32. The source was a short scene from the first The Hobbit movie, mattes cropped and scaled down to 1280x544 with some sharpening to compensate and then very light denoising. This is what I mostly do to the material that I put on my media server.
With my default settings, which also means CTU 64, the bitrate was 3983.05 kbps and average speed 2.38 fps. With CTU 32, the bitrate was 4092.48 kbps and the average speed 2.76 fps. I really didn't expect the bitrate to change that much at such a low resolution but it's there. The scene itself is fairly detailed, but there's also some sky etc. which could give the 64-pixel CTU something to work on.
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
26th February 2017, 19:43 | #4856 | Link |
Registered User
Join Date: May 2015
Posts: 185
|
Latest changes:
Increased --crf 18 to --crf 21. Lowered --ctu 64 to --ctu 32. Lowered --bframes 8 to --bframes 4. Lowered --merange 92 to --merange 57. Lowered --rd 6 to --rd 4. Lowered --subme 7 to --subme 5. I'm getting an average of 1.16 fps, my current goal is 2.00 fps. The remaining values that are untouched are: --qg-size 32 --deblock -6:-6 --rc-lookahead 60 --tu-intra-depth 4 --tu-inter-depth 4 --scenecut 40 --limit-ref 0 --limit-modes --max-merge 5 Anything else I could tweak at this point to increase crunching speed without hurting either the efficiency or the quality resulted? |
26th February 2017, 19:48 | #4857 | Link |
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,718
|
--tu-intra-depth 3
--tu-inter-depth 3 --limit-refs 3 --max-merge 3 You won't see a visible difference but the encoding will go faster.
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
26th February 2017, 19:50 | #4858 | Link | |
Registered User
Join Date: May 2015
Posts: 185
|
Quote:
Thanks. Last edited by pingfr; 26th February 2017 at 19:56. |
|
26th February 2017, 20:01 | #4859 | Link | |
Registered User
Join Date: May 2015
Posts: 68
|
Quote:
Try just the limit refs 3. And if blocking is the only issue you saw, increase the deblocking to -3,-3 or higher. Lowering deblocking by so much from default values, probably causes...blocking. |
|
26th February 2017, 20:01 | #4860 | Link |
Registered User
Join Date: May 2015
Posts: 185
|
x265.exe --crf 21 --aq-mode 1 --ctu 32 --qg-size 32 --deblock -6:-6 --me star --bframes 4 --rc-lookahead 60 --ref 5 --b-adapt 2 --tu-intra-depth 4 --tu-inter-depth 4 --merange 57 --weightp --weightb --scenecut 40 --rd 4 --limit-ref 3 --limit-modes --tskip --rect --amp --max-merge 5 --subme 5 --b-intra --no-rskip --no-sao --no-strong-intra-smoothing %1 -o %~n1.hevc
x265 [info]: HEVC encoder version 2.3+9-820f4327ddac x265 [info]: build info [Windows][GCC 6.3.0][64 bit] 8bit+10bit+12bit x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2 x265 [info]: Main profile, Level-4 (Main tier) x265 [info]: Thread pool created using 8 threads x265 [info]: Slices : 1 x265 [info]: frame threads / pool features : 3 / wpp(34 rows) x265 [info]: Coding QT: max CU size, min CU size : 32 / 8 x265 [info]: Residual QT: max TU size, max depth : 32 / 4 inter / 4 intra x265 [info]: ME / range / subpel / merge : star / 57 / 5 / 5 x265 [info]: Keyframe min / max / scenecut / bias: 25 / 250 / 40 / 5.00 x265 [info]: Lookahead / bframes / badapt : 60 / 4 / 2 x265 [info]: b-pyramid / weightp / weightb : 1 / 1 / 1 x265 [info]: References / ref-limit cu / depth : 5 / on / on x265 [info]: AQ: mode / str / qg-size / cu-tree : 1 / 1.0 / 32 / 1 x265 [info]: Rate Control / qCompress : CRF-21.0 / 0.60 x265 [info]: tools: rect amp limit-modes rd=4 psy-rd=2.00 tskip signhide tmvp x265 [info]: tools: b-intra lslices=6 deblock(tC=-6:B=-6) x265 [info]: frame I: 3, Avg QP:22.55 kb/s: 28882.40 x265 [info]: frame P: 141, Avg QP:23.75 kb/s: 19361.90 x265 [info]: frame B: 456, Avg QP:28.24 kb/s: 6027.66 x265 [info]: Weighted P-Frames: Y:0.0% UV:0.0% x265 [info]: Weighted B-Frames: Y:0.0% UV:0.0% x265 [info]: consecutive B-frames: 0.7% 0.0% 0.0% 80.6% 18.8% encoded 600 frames in 276.47s (2.17 fps), 9275.48 kb/s, Avg QP:27.15 Video ID : 1 Format : HEVC Format/Info : High Efficiency Video Coding Format profile : Main@L4@Main Codec ID : V_MPEGH/ISO/HEVC Duration : 20s 0ms Bit rate : 9 097 Kbps Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 30.000 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Bits/(Pixel*Frame) : 0.146 Stream size : 21.7 MiB (98%) Writing library : x265 2.3+9-820f4327ddac:[Windows][GCC 6.3.0][64 bit] 8bit+10bit+12bit Encoding settings : cpuid=1173503 / frame-threads=3 / numa-pools=8 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=1920x1080 / interlace=0 / total-frames=600 / level-idc=0 / high-tier=1 / uhd-bd=0 / ref=5 / no-allow-non-conformance / no-repeat-headers / annexb / no-aud / no-hrd / info / hash=0 / no-temporal-layers / open-gop / min-keyint=25 / keyint=250 / bframes=4 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=60 / lookahead-slices=6 / scenecut=40 / no-intra-refresh / ctu=32 / min-cu-size=8 / rect / amp / max-tu-size=32 / tu-inter-depth=4 / tu-intra-depth=4 / limit-tu=0 / rdoq-level=0 / dynamic-rd=0.00 / signhide / tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / no-strong-intra-smoothing / max-merge=5 / limit-refs=3 / limit-modes / me=3 / subme=5 / merange=57 / temporal-mvp / weightp / weightb / no-analyze-src-pics / deblock=-6:-6 / no-sao / no-sao-non-deblock / rd=4 / no-early-skip / no-rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / b-intra / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=0.00 / no-rd-refine / analysis-mode=0 / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=crf / crf=21.0 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=0 / ipratio=1.40 / pbratio=1.30 / aq-mode=1 / aq-strength=1.00 / cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / sar=0 / overscan=0 / videoformat=5 / range=0 / colorprim=2 / transfer=2 / colormatrix=2 / chromaloc=0 / display-window=0 / max-cll=0,0 / min-luma=0 / max-luma=255 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / opt-qp-pps / opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / no-opt-cu-delta-qp / no-aq-motion / no-hdr / no-hdr-opt Default : Yes Forced : No Hard to tell. Last edited by pingfr; 26th February 2017 at 20:09. |
Thread Tools | Search this Thread |
Display Modes | |
|
|