X-Git-Url: https://git.piment-noir.org/?p=deb_x265.git;a=blobdiff_plain;f=doc%2FreST%2Fpresets.rst;h=63134ea706e9041821f50b599d98d797e85dbf26;hp=99085a2aa92374267b15fdeda70b9cde3b1c830c;hb=b53f7c52d8280ab63876efd6eb292c21430ac607;hpb=5c9b45285dd64723ad1dac380b98a7b1f3095674 diff --git a/doc/reST/presets.rst b/doc/reST/presets.rst index 99085a2..63134ea 100644 --- a/doc/reST/presets.rst +++ b/doc/reST/presets.rst @@ -1,11 +1,11 @@ Preset Options -------------- +.. _presets: + Presets ======= -.. _preset-tune-ref: - x265 has a number of predefined :option:`--preset` options that make trade-offs between encode speed (encoded frames per second) and compression efficiency (quality per bit in the bitstream). The default @@ -66,7 +66,7 @@ The presets adjust encoder parameters to affect these trade-offs. +--------------+-----------+-----------+----------+--------+------+--------+------+--------+----------+---------+ | rdLevel | 2 | 2 | 2 | 2 | 2 | 3 | 4 | 6 | 6 | 6 | +--------------+-----------+-----------+----------+--------+------+--------+------+--------+----------+---------+ -| lft | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | +| deblock | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | +--------------+-----------+-----------+----------+--------+------+--------+------+--------+----------+---------+ | tu-intra | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 2 | 3 | 4 | +--------------+-----------+-----------+----------+--------+------+--------+------+--------+----------+---------+ @@ -75,6 +75,8 @@ The presets adjust encoder parameters to affect these trade-offs. Placebo mode enables transform-skip prediction evaluation. +.. _tunings: + Tuning ====== @@ -97,7 +99,46 @@ after the preset. +--------------+-----------------------------------------------------+ | ssim | enables adaptive quant auto-mode, disables psy-rd | +--------------+-----------------------------------------------------+ +| grain | improves retention of film grain. more below | ++--------------+-----------------------------------------------------+ | fastdecode | no loop filters, no weighted pred, no intra in B | +--------------+-----------------------------------------------------+ | zerolatency | no lookahead, no B frames, no cutree | +--------------+-----------------------------------------------------+ +| cbr | --pbratio 1.0 --ratetol 0.5 | ++--------------+-----------------------------------------------------+ + + +Film Grain Retention +~~~~~~~~~~~~~~~~~~~~ + +:option:`--tune` grain tries to improve the retention of film grain in +the reconstructed output. It helps rate distortion optimizations select +modes which preserve high frequency noise: + + * :option:`--psy-rd` 0.5 + * :option:`--psy-rdoq` 30 + +.. Note:: + + --psy-rdoq is only effective when RDOQuant is enabled, which is at + RD levels 4, 5, and 6 (presets slow and below). + +It lowers the strength of adaptive quantization, so residual energy can +be more evenly distributed across the (noisy) picture: + + * :option:`--aq-mode` 1 + * :option:`--aq-strength` 0.3 + +And it similarly tunes rate control to prevent the slice QP from +swinging too wildly from frame to frame: + + * :option:`--ipratio` 1.1 + * :option:`--pbratio` 1.1 + * :option:`--qcomp` 0.8 + +And lastly it reduces the strength of deblocking to prevent grain being +blurred on block boundaries: + + * :option:`--deblock` -2 +