[x265] grain: improve grain handling settings

Deepthi Nandakumar deepthi at multicorewareinc.com
Thu May 12 16:38:22 CEST 2016


# HG changeset patch
# User Deepthi Nandakumar <deepthi at multicorewareinc.com>
# Date 1463045021 -19800
#      Thu May 12 14:53:41 2016 +0530
# Node ID 3e530043698b9df0f9aba7eefbb381ac6cc79421
# Parent  912e46145616b349d039810e3c2e94ec2af0e652
grain: improve grain handling settings

Turn off SAO, increase psychovisual settings to better retain high frequency

diff -r 912e46145616 -r 3e530043698b doc/reST/presets.rst
--- a/doc/reST/presets.rst    Thu May 12 16:55:39 2016 +0530
+++ b/doc/reST/presets.rst    Thu May 12 14:53:41 2016 +0530
@@ -125,18 +125,24 @@
 eliminate grain, but prevent noticeable artifacts caused by uneven
 distribution of grain. :option:`--tune` *grain* strongly restricts
 algorithms that vary the quantization parameter within and across frames.
+Tune grain also biases towards decisions that retain more high frequency
+components.

     * :option:`--aq-mode` 0
     * :option:`--cutree` 0
     * :option:`--ipratio` 1.1
     * :option:`--pbratio` 1.0
     * :option:`--qpstep` 1
-
+    * :option:`--sao` 0
+    * :option:`--psy-rd` 4.0
+    * :option:`--psy-rdoq` 10.0
+    * :option:`--recursion-skip` 0
+
 It also enables a specialised ratecontrol algorithm :option:`--rc-grain`
 that strictly minimises QP fluctuations across frames, while still
allowing
 the encoder to hit bitrate targets and VBV buffer limits (with a slightly
 higher margin of error than normal). It is highly recommended that this
-algorithm is used only through the :option:`--tune` *grain* feature.
+algorithm is used only through the :option:`--tune` *grain* feature.

 Fast Decode
 ~~~~~~~~~~~
diff -r 912e46145616 -r 3e530043698b source/common/param.cpp
--- a/source/common/param.cpp    Thu May 12 16:55:39 2016 +0530
+++ b/source/common/param.cpp    Thu May 12 14:53:41 2016 +0530
@@ -462,6 +462,10 @@
             param->rc.aqMode = 0;
             param->rc.qpStep = 1;
             param->rc.bEnableGrain = 1;
+            param->bEnableRecursionSkip = 0;
+            param->psyRd = 4.0;
+            param->psyRdoq = 10.0;
+            param->bEnableSAO = 0;
         }
         else
             return -1;


-- 
Deepthi Nandakumar
Engineering Manager, x265
Multicoreware, Inc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20160512/78a70445/attachment-0001.html>


More information about the x265-devel mailing list