[x265] [PATCH] preset: Change param defaults for veryslow and slower preset

Kalyan Goswami kalyan at multicorewareinc.com
Thu Dec 27 12:37:34 CET 2018


Pushed to default

Thanks,
Kalyan Goswami, PhD
Video Architect @ MulticoreWare
http: <http://www.multicorewareinc.com/>//www.multicorewareinc.com
<http://www.multicorewareinc.com/>
+91 9884989331


On Thu, Dec 27, 2018 at 12:20 PM <pooja at multicorewareinc.com> wrote:

> # HG changeset patch
> # User Pooja Venkatesan <pooja at multicorewareinc.com>
> # Date 1545892012 -19800
> #      Thu Dec 27 11:56:52 2018 +0530
> # Node ID 3955fddb29bcb342e4b51c57dd8dece92ad06889
> # Parent  1951152ff12db320a4b626e57ee1c870d84d7f14
> preset: Change param defaults for veryslow and slower preset
>
> This patch does the following:
> 1)Replace slower preset with defaults used in veryslow preset.
> 2)Change param defaults in veryslow preset as per experimental results.
>
> diff -r 1951152ff12d -r 3955fddb29bc doc/reST/presets.rst
> --- a/doc/reST/presets.rst      Fri Dec 07 12:52:46 2018 +0530
> +++ b/doc/reST/presets.rst      Thu Dec 27 11:56:52 2018 +0530
> @@ -43,33 +43,33 @@
>
>  +-----------------+-----+-----+-----+-----+-----+-----+------+------+------+------+
>  | b-adapt         |  0  |  0  |  0  |   0 |   0 |   2 |   2  |   2  |
>  2  |  2   |
>
>  +-----------------+-----+-----+-----+-----+-----+-----+------+------+------+------+
> -| rc-lookahead    |  5  | 10  | 15  |  15 |  15 |  20 |  25  |  30  |
> 40  | 60   |
> +| rc-lookahead    |  5  | 10  | 15  |  15 |  15 |  20 |  25  |  40  |
> 40  | 60   |
>
>  +-----------------+-----+-----+-----+-----+-----+-----+------+------+------+------+
> -| lookahead-slices|  8  |  8  |  8  |   8 |   8 |   8 |   4  |   4  |
>  1  |  1   |
> +| lookahead-slices|  8  |  8  |  8  |   8 |   8 |   8 |   4  |   1  |
>  1  |  1   |
>
>  +-----------------+-----+-----+-----+-----+-----+-----+------+------+------+------+
>  | scenecut        |  0  | 40  | 40  |  40 |  40 |  40 |  40  |  40  |
> 40  | 40   |
>
>  +-----------------+-----+-----+-----+-----+-----+-----+------+------+------+------+
> -| ref             |  1  |  1  |  2  |   2 |   3 |   3 |   4  |   4  |
>  5  |  5   |
> +| ref             |  1  |  1  |  2  |   2 |   3 |   3 |   4  |   5  |
>  5  |  5   |
>
>  +-----------------+-----+-----+-----+-----+-----+-----+------+------+------+------+
> -| limit-refs      |  0  |  0  |  3  |   3 |   3 |   3 |   3  |   2  |
>  1  |  0   |
> +| limit-refs      |  0  |  0  |  3  |   3 |   3 |   3 |   3  |   1  |
>  0  |  0   |
>
>  +-----------------+-----+-----+-----+-----+-----+-----+------+------+------+------+
>  | me              | dia | hex | hex | hex | hex | hex | star | star |
> star | star |
>
>  +-----------------+-----+-----+-----+-----+-----+-----+------+------+------+------+
>  | merange         | 57  | 57  | 57  |  57 |  57 |  57 |  57  |  57  |
> 57  | 92   |
>
>  +-----------------+-----+-----+-----+-----+-----+-----+------+------+------+------+
> -| subme           |  0  |  1  |  1  |   2 |   2 |   2 |   3  |   3  |
>  4  |  5   |
> +| subme           |  0  |  1  |  1  |   2 |   2 |   2 |   3  |   4  |
>  4  |  5   |
>
>  +-----------------+-----+-----+-----+-----+-----+-----+------+------+------+------+
>  | rect            |  0  |  0  |  0  |   0 |   0 |   0 |   1  |   1  |
>  1  |  1   |
>
>  +-----------------+-----+-----+-----+-----+-----+-----+------+------+------+------+
>  | amp             |  0  |  0  |  0  |   0 |   0 |   0 |   0  |   1  |
>  1  |  1   |
>
>  +-----------------+-----+-----+-----+-----+-----+-----+------+------+------+------+
> -| limit-modes     |  0  |  0  |  0  |   0 |   0 |   0 |   1  |   1  |
>  1  |  0   |
> +| limit-modes     |  0  |  0  |  0  |   0 |   0 |   0 |   1  |   1  |
>  0  |  0   |
>
>  +-----------------+-----+-----+-----+-----+-----+-----+------+------+------+------+
> -| max-merge       |  2  |  2  |  2  |   2 |   2 |   2 |   3  |   3  |
>  4  |  5   |
> +| max-merge       |  2  |  2  |  2  |   2 |   2 |   2 |   3  |   4  |
>  5  |  5   |
>
>  +-----------------+-----+-----+-----+-----+-----+-----+------+------+------+------+
>  | early-skip      |  1  |  1  |  1  |   1 |   0 |   0 |   0  |   0  |
>  0  |  0   |
>
>  +-----------------+-----+-----+-----+-----+-----+-----+------+------+------+------+
> -| recursion-skip  |  1  |  1  |  1  |   1 |   1 |   1 |   1  |   1  |
>  0  |  0   |
> +| recursion-skip  |  1  |  1  |  1  |   1 |   1 |   1 |   1  |   0  |
>  0  |  0   |
>
>  +-----------------+-----+-----+-----+-----+-----+-----+------+------+------+------+
>  | fast-intra      |  1  |  1  |  1  |   1 |   1 |   0 |   0  |   0  |
>  0  |  0   |
>
>  +-----------------+-----+-----+-----+-----+-----+-----+------+------+------+------+
> @@ -91,11 +91,11 @@
>
>  +-----------------+-----+-----+-----+-----+-----+-----+------+------+------+------+
>  | rdoq-level      |  0  |  0  |  0  |   0 |   0 |   0 |   2  |   2  |
>  2  |  2   |
>
>  +-----------------+-----+-----+-----+-----+-----+-----+------+------+------+------+
> -| tu-intra        |  1  |  1  |  1  |   1 |   1 |   1 |   1  |   2  |
>  3  |  4   |
> +| tu-intra        |  1  |  1  |  1  |   1 |   1 |   1 |   1  |   3  |
>  3  |  4   |
>
>  +-----------------+-----+-----+-----+-----+-----+-----+------+------+------+------+
> -| tu-inter        |  1  |  1  |  1  |   1 |   1 |   1 |   1  |   2  |
>  3  |  4   |
> +| tu-inter        |  1  |  1  |  1  |   1 |   1 |   1 |   1  |   3  |
>  3  |  4   |
>
>  +-----------------+-----+-----+-----+-----+-----+-----+------+------+------+------+
> -| limit-tu        |  0  |  0  |  0  |   0 |   0 |   0 |   0  |   4  |
>  4  |  0   |
> +| limit-tu        |  0  |  0  |  0  |   0 |   0 |   0 |   0  |   4  |
>  0  |  0   |
>
>  +-----------------+-----+-----+-----+-----+-----+-----+------+------+------+------+
>
>  .. _tunings:
> diff -r 1951152ff12d -r 3955fddb29bc source/common/param.cpp
> --- a/source/common/param.cpp   Fri Dec 07 12:52:46 2018 +0530
> +++ b/source/common/param.cpp   Thu Dec 27 11:56:52 2018 +0530
> @@ -423,28 +423,6 @@
>              param->bEnableWeightedBiPred = 1;
>              param->bEnableAMP = 1;
>              param->bEnableRectInter = 1;
> -            param->lookaheadDepth = 30;
> -            param->bframes = 8;
> -            param->tuQTMaxInterDepth = 2;
> -            param->tuQTMaxIntraDepth = 2;
> -            param->rdLevel = 6;
> -            param->rdoqLevel = 2;
> -            param->psyRdoq = 1.0;
> -            param->subpelRefine = 3;
> -            param->maxNumMergeCand = 3;
> -            param->searchMethod = X265_STAR_SEARCH;
> -            param->maxNumReferences = 4;
> -            param->limitReferences = 2;
> -            param->limitModes = 1;
> -            param->bIntraInBFrames = 1;
> -            param->lookaheadSlices = 4; // limit parallelism as already
> enough work exists
> -            param->limitTU = 4;
> -        }
> -        else if (!strcmp(preset, "veryslow"))
> -        {
> -            param->bEnableWeightedBiPred = 1;
> -            param->bEnableAMP = 1;
> -            param->bEnableRectInter = 1;
>              param->lookaheadDepth = 40;
>              param->bframes = 8;
>              param->tuQTMaxInterDepth = 3;
> @@ -462,6 +440,28 @@
>              param->lookaheadSlices = 0; // disabled for best quality
>              param->limitTU = 4;
>          }
> +        else if (!strcmp(preset, "veryslow"))
> +        {
> +            param->bEnableWeightedBiPred = 1;
> +            param->bEnableAMP = 1;
> +            param->bEnableRectInter = 1;
> +            param->lookaheadDepth = 40;
> +            param->bframes = 8;
> +            param->tuQTMaxInterDepth = 3;
> +            param->tuQTMaxIntraDepth = 3;
> +            param->rdLevel = 6;
> +            param->rdoqLevel = 2;
> +            param->psyRdoq = 1.0;
> +            param->subpelRefine = 4;
> +            param->maxNumMergeCand = 5;
> +            param->searchMethod = X265_STAR_SEARCH;
> +            param->maxNumReferences = 5;
> +            param->limitReferences = 0;
> +            param->limitModes = 0;
> +            param->bIntraInBFrames = 1;
> +            param->lookaheadSlices = 0; // disabled for best quality
> +            param->limitTU = 0;
> +        }
>          else if (!strcmp(preset, "placebo"))
>          {
>              param->bEnableWeightedBiPred = 1;
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20181227/3de02937/attachment.html>


More information about the x265-devel mailing list