Re: [x265] [PATCH]Add: Forward and Backward masking

2020-12-11 Thread Mario *LigH* Rohkrämer

Niranjan Bala schrieb am 11.12.2020 um 15:29:

+H1("   --masking-strengthComma separated values which specifies 
the duration and offset for the QP increment for inter-frames");


Missing \n at the end of the string.

 +H1("   --masking-strengthComma separated values 
which specifies the duration and offset for the QP increment for 
inter-frames\n");


--

Fun and success!

Mario *LigH* Rohkrämer
maito:cont...@ligh.de
___
x265-devel mailing list
x265-devel@videolan.org
https://mailman.videolan.org/listinfo/x265-devel


Re: [x265] [PATCH]Add: Forward and Backward masking

2020-12-11 Thread Mario *LigH* Rohkrämer

A little unimportant warning in MSYS2/MinGW, GCC 10.2:


E:/MABS/build/x265_git-git/source/encoder/ratecontrol.cpp: In member 
function 'double x265::RateControl::forwardMasking(x265::Frame*, double)':
E:/MABS/build/x265_git-git/source/encoder/ratecontrol.cpp:3195:12: 
warning: unused variable 'bwdRefQpDelta' [-Wunused-variable]

 3195 | double bwdRefQpDelta = double(m_param->bwdRefQpDelta);
  |^
E:/MABS/build/x265_git-git/source/encoder/ratecontrol.cpp:3196:12: 
warning: unused variable 'bwdNonRefQpDelta' [-Wunused-variable]

 3196 | double bwdNonRefQpDelta = double(m_param->bwdNonRefQpDelta);
  |^~~~



--

Fun and success!

Mario *LigH* Rohkrämer
maito:cont...@ligh.de
___
x265-devel mailing list
x265-devel@videolan.org
https://mailman.videolan.org/listinfo/x265-devel


Re: [x265] [X265][PATCH] Fix: QP offset in scenecut-aware-qp with bi-directional window

2020-12-11 Thread Aruna Matheswaran
Pushed to Release_3.5

On Fri, Dec 11, 2020 at 8:30 PM Niranjan Bala 
wrote:

> From f36f211dd1ec4c3d580416e04c879b695fd3501b Mon Sep 17 00:00:00 2001
> From: Niranjan 
> Date: Fri, 11 Dec 2020 20:22:53 +0530
> Subject: [PATCH] Fix: QP offset in scenecut-aware-qp with bi-directional
>  window
>
> ---
>  source/encoder/ratecontrol.cpp | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/source/encoder/ratecontrol.cpp
> b/source/encoder/ratecontrol.cpp
> index 554acfe38..2b7ac9423 100644
> --- a/source/encoder/ratecontrol.cpp
> +++ b/source/encoder/ratecontrol.cpp
> @@ -1860,7 +1860,7 @@ double RateControl::rateEstimateQscale(Frame*
> curFrame, RateControlEntry *rce)
>  double lqmax = m_lmax[m_sliceType];
>  if (m_param->bEnableSceneCutAwareQp == FORWARD ||
> m_param->bEnableSceneCutAwareQp == BI_DIRECTIONAL)
>  qScale = forwardMasking(curFrame, qScale);
> -else if (m_param->bEnableSceneCutAwareQp == BACKWARD ||
> m_param->bEnableSceneCutAwareQp == BI_DIRECTIONAL)
> +if (m_param->bEnableSceneCutAwareQp == BACKWARD ||
> m_param->bEnableSceneCutAwareQp == BI_DIRECTIONAL)
>  qScale = backwardMasking(curFrame, qScale);
>  qScale = x265_clip3(lqmin, lqmax, qScale);
>  q = x265_qScale2qp(qScale);
> @@ -1987,7 +1987,7 @@ double RateControl::rateEstimateQscale(Frame*
> curFrame, RateControlEntry *rce)
>
>  if (m_param->bEnableSceneCutAwareQp == FORWARD ||
> m_param->bEnableSceneCutAwareQp == BI_DIRECTIONAL)
>  q = forwardMasking(curFrame, q);
> -else if (m_param->bEnableSceneCutAwareQp == BACKWARD ||
> m_param->bEnableSceneCutAwareQp == BI_DIRECTIONAL)
> +if (m_param->bEnableSceneCutAwareQp == BACKWARD ||
> m_param->bEnableSceneCutAwareQp == BI_DIRECTIONAL)
>  q = backwardMasking(curFrame, q);
>
>  q = x265_clip3(qmin, qmax, q);
> @@ -2156,7 +2156,7 @@ double RateControl::rateEstimateQscale(Frame*
> curFrame, RateControlEntry *rce)
>
>  if (m_param->bEnableSceneCutAwareQp == FORWARD ||
> m_param->bEnableSceneCutAwareQp == BI_DIRECTIONAL)
>  q = forwardMasking(curFrame, q);
> -else if (m_param->bEnableSceneCutAwareQp == BACKWARD ||
> m_param->bEnableSceneCutAwareQp == BI_DIRECTIONAL)
> +if (m_param->bEnableSceneCutAwareQp == BACKWARD ||
> m_param->bEnableSceneCutAwareQp == BI_DIRECTIONAL)
>  q = backwardMasking(curFrame, q);
>
>  q = x265_clip3(qmin, qmax, q);
> --
> 2.18.0.windows.1
>
>
> --
>
> Thanks & Regards
> *Niranjan Kumar B*
> Video Codec Engineer
> Media & AI Analytics
> +91 958 511 1449
> 
> ___
> x265-devel mailing list
> x265-devel@videolan.org
> https://mailman.videolan.org/listinfo/x265-devel
>


-- 
Regards,
*Aruna Matheswaran,*
Video Codec Engineer,
Media & AI analytics BU,
___
x265-devel mailing list
x265-devel@videolan.org
https://mailman.videolan.org/listinfo/x265-devel


[x265] [X265][PATCH] Fix: QP offset in scenecut-aware-qp with bi-directional window

2020-12-11 Thread Niranjan Bala
>From f36f211dd1ec4c3d580416e04c879b695fd3501b Mon Sep 17 00:00:00 2001
From: Niranjan 
Date: Fri, 11 Dec 2020 20:22:53 +0530
Subject: [PATCH] Fix: QP offset in scenecut-aware-qp with bi-directional
 window

---
 source/encoder/ratecontrol.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/source/encoder/ratecontrol.cpp b/source/encoder/ratecontrol.cpp
index 554acfe38..2b7ac9423 100644
--- a/source/encoder/ratecontrol.cpp
+++ b/source/encoder/ratecontrol.cpp
@@ -1860,7 +1860,7 @@ double RateControl::rateEstimateQscale(Frame*
curFrame, RateControlEntry *rce)
 double lqmax = m_lmax[m_sliceType];
 if (m_param->bEnableSceneCutAwareQp == FORWARD ||
m_param->bEnableSceneCutAwareQp == BI_DIRECTIONAL)
 qScale = forwardMasking(curFrame, qScale);
-else if (m_param->bEnableSceneCutAwareQp == BACKWARD ||
m_param->bEnableSceneCutAwareQp == BI_DIRECTIONAL)
+if (m_param->bEnableSceneCutAwareQp == BACKWARD ||
m_param->bEnableSceneCutAwareQp == BI_DIRECTIONAL)
 qScale = backwardMasking(curFrame, qScale);
 qScale = x265_clip3(lqmin, lqmax, qScale);
 q = x265_qScale2qp(qScale);
@@ -1987,7 +1987,7 @@ double RateControl::rateEstimateQscale(Frame*
curFrame, RateControlEntry *rce)

 if (m_param->bEnableSceneCutAwareQp == FORWARD ||
m_param->bEnableSceneCutAwareQp == BI_DIRECTIONAL)
 q = forwardMasking(curFrame, q);
-else if (m_param->bEnableSceneCutAwareQp == BACKWARD ||
m_param->bEnableSceneCutAwareQp == BI_DIRECTIONAL)
+if (m_param->bEnableSceneCutAwareQp == BACKWARD ||
m_param->bEnableSceneCutAwareQp == BI_DIRECTIONAL)
 q = backwardMasking(curFrame, q);

 q = x265_clip3(qmin, qmax, q);
@@ -2156,7 +2156,7 @@ double RateControl::rateEstimateQscale(Frame*
curFrame, RateControlEntry *rce)

 if (m_param->bEnableSceneCutAwareQp == FORWARD ||
m_param->bEnableSceneCutAwareQp == BI_DIRECTIONAL)
 q = forwardMasking(curFrame, q);
-else if (m_param->bEnableSceneCutAwareQp == BACKWARD ||
m_param->bEnableSceneCutAwareQp == BI_DIRECTIONAL)
+if (m_param->bEnableSceneCutAwareQp == BACKWARD ||
m_param->bEnableSceneCutAwareQp == BI_DIRECTIONAL)
 q = backwardMasking(curFrame, q);

 q = x265_clip3(qmin, qmax, q);
-- 
2.18.0.windows.1


-- 

Thanks & Regards
*Niranjan Kumar B*
Video Codec Engineer
Media & AI Analytics
+91 958 511 1449



x265.diff
Description: Binary data
___
x265-devel mailing list
x265-devel@videolan.org
https://mailman.videolan.org/listinfo/x265-devel


Re: [x265] [PATCH]Add: Forward and Backward masking

2020-12-11 Thread Aruna Matheswaran
Pushed to Release_3.5

On Fri, Dec 11, 2020 at 7:59 PM Niranjan Bala 
wrote:

>
> From 775cdc266297f390dab0256a5efa60c3781a3b0d Mon Sep 17 00:00:00 2001
> From: Niranjan Kumar 
> Date: Wed, 21 Oct 2020 19:18:14 +0530
> Subject: [PATCH] Add: Forward and Backward masking
>
> Enables scenecut-aware-qp in a specified direction
> 0 - Disabled
> 1 - Forward masking
> 2 - Backward masking
> 3 - Bi-directional masking
> ---
>  doc/reST/cli.rst   | 95 +-
>  source/CMakeLists.txt  |  2 +-
>  source/common/param.cpp| 90 ++--
>  source/encoder/encoder.cpp |  8 +--
>  source/encoder/ratecontrol.cpp | 68 +++--
>  source/encoder/ratecontrol.h   |  3 +-
>  source/test/rate-control-tests.txt |  4 +-
>  source/x265.h  | 32 +++---
>  source/x265cli.cpp | 10 ++--
>  source/x265cli.h   |  7 +--
>  10 files changed, 229 insertions(+), 90 deletions(-)
>
> diff --git a/doc/reST/cli.rst b/doc/reST/cli.rst
> index 1a1de9f50..e6acc7785 100755
> --- a/doc/reST/cli.rst
> +++ b/doc/reST/cli.rst
> @@ -1963,37 +1963,76 @@ Quality, rate control and rate distortion options
>
>   **CLI ONLY**
>
> -.. option:: --scenecut-aware-qp, --no-scenecut-aware-qp
> -
> -   It reduces the bits spent on the inter-frames within the
> :option:`--scenecut-window`
> -   before and after a scenecut by increasing their QP in ratecontrol
> pass2 algorithm
> -   without any deterioration in visual quality. If a scenecut falls
> within the window,
> -   the QP of the inter-frames after this scenecut will not be modified.
> -   :option:`--scenecut-aware-qp` works only with --pass 2. Default
> disabled.
> -
> -.. option:: --scenecut-window 
> +.. option:: --scenecut-aware-qp 
>
> -   The duration(in milliseconds) for which there is a reduction in the
> bits spent
> -   on the inter-frames after a scenecut by increasing their QP, when
> -   :option:`--scenecut-aware-qp` is enabled. Default 500ms.
> -
> -   **Range of values:** 0 to 1000
> -
> -.. option:: --qp-delta-ref 
> -
> -   The offset by which QP is incremented for inter-frames
> -   when :option:`--scenecut-aware-qp` is enabled. Default 5.
> -
> -   **Range of values:**  0 to 10
> -
> -.. option:: --qp-delta-nonref 
> + It reduces the bits spent on the inter-frames within the scenecut window
> + before and after a scenecut by increasing their QP in ratecontrol pass2
> algorithm
> + without any deterioration in visual quality. If a scenecut falls within
> the window,
> + the QP of the inter-frames after this scenecut will not be modified.
> + :option:`--scenecut-aware-qp` works only with --pass 2. Default 0.
>
> -   The offset by which QP is incremented for non-referenced
> -   inter-frames when :option:`--scenecut-aware-qp` is enabled.
> -   The offset is computed from :option:`--qp-delta-ref` when it
> -   is not explicitly specified.
> + +---+---+
> + | Mode  | Description   |
> + +===+===+
> + | 0 | Disabled. |
> + +---+---+
> + | 1 | Forward masking.  |
> + |   | Applies QP modification for frames after the scenecut.|
> + +---+---+
> + | 2 | Backward masking. |
> + |   | Applies QP modification for frames before the scenecut.   |
> + +---+---+
> + | 3 | Bi-directional masking.   |
> + |   | Applies QP modification for frames before and after   |
> + |   | the scenecut. |
> + +---+---+
>
> -   **Range of values:**  0 to 10
> +.. option:: --masking-strength 
> +
> + Comma separated list of values which specifies the duration and offset
> + for the QP increment for inter-frames when :option:`--scenecut-aware-qp`
> + is enabled.
> +
> + When :option:`--scenecut-aware-qp` is::
> + * 1 (Forward masking):
> + --masking-strength 
> + * 2 (Backward masking):
> + --masking-strength 
> + * 3 (Bi-directional masking):
> + --masking-strength
> 
> +
> +
> +-+---+
> + | Parameter   | Description
>   |
> +
> +=+===+
> + | fwdWindow   | The duration(in milliseconds) for which there is a
> reduction  |
> + | | in the bits spent on the inter-frames after a
> scenecut by 

[x265] [PATCH]Add: Forward and Backward masking

2020-12-11 Thread Niranjan Bala
>From 775cdc266297f390dab0256a5efa60c3781a3b0d Mon Sep 17 00:00:00 2001
From: Niranjan Kumar 
Date: Wed, 21 Oct 2020 19:18:14 +0530
Subject: [PATCH] Add: Forward and Backward masking

Enables scenecut-aware-qp in a specified direction
0 - Disabled
1 - Forward masking
2 - Backward masking
3 - Bi-directional masking
---
 doc/reST/cli.rst   | 95 +-
 source/CMakeLists.txt  |  2 +-
 source/common/param.cpp| 90 ++--
 source/encoder/encoder.cpp |  8 +--
 source/encoder/ratecontrol.cpp | 68 +++--
 source/encoder/ratecontrol.h   |  3 +-
 source/test/rate-control-tests.txt |  4 +-
 source/x265.h  | 32 +++---
 source/x265cli.cpp | 10 ++--
 source/x265cli.h   |  7 +--
 10 files changed, 229 insertions(+), 90 deletions(-)

diff --git a/doc/reST/cli.rst b/doc/reST/cli.rst
index 1a1de9f50..e6acc7785 100755
--- a/doc/reST/cli.rst
+++ b/doc/reST/cli.rst
@@ -1963,37 +1963,76 @@ Quality, rate control and rate distortion options

  **CLI ONLY**

-.. option:: --scenecut-aware-qp, --no-scenecut-aware-qp
-
-   It reduces the bits spent on the inter-frames within the
:option:`--scenecut-window`
-   before and after a scenecut by increasing their QP in ratecontrol pass2
algorithm
-   without any deterioration in visual quality. If a scenecut falls within
the window,
-   the QP of the inter-frames after this scenecut will not be modified.
-   :option:`--scenecut-aware-qp` works only with --pass 2. Default
disabled.
-
-.. option:: --scenecut-window 
+.. option:: --scenecut-aware-qp 

-   The duration(in milliseconds) for which there is a reduction in the
bits spent
-   on the inter-frames after a scenecut by increasing their QP, when
-   :option:`--scenecut-aware-qp` is enabled. Default 500ms.
-
-   **Range of values:** 0 to 1000
-
-.. option:: --qp-delta-ref 
-
-   The offset by which QP is incremented for inter-frames
-   when :option:`--scenecut-aware-qp` is enabled. Default 5.
-
-   **Range of values:**  0 to 10
-
-.. option:: --qp-delta-nonref 
+ It reduces the bits spent on the inter-frames within the scenecut window
+ before and after a scenecut by increasing their QP in ratecontrol pass2
algorithm
+ without any deterioration in visual quality. If a scenecut falls within
the window,
+ the QP of the inter-frames after this scenecut will not be modified.
+ :option:`--scenecut-aware-qp` works only with --pass 2. Default 0.

-   The offset by which QP is incremented for non-referenced
-   inter-frames when :option:`--scenecut-aware-qp` is enabled.
-   The offset is computed from :option:`--qp-delta-ref` when it
-   is not explicitly specified.
+ +---+---+
+ | Mode  | Description   |
+ +===+===+
+ | 0 | Disabled. |
+ +---+---+
+ | 1 | Forward masking.  |
+ |   | Applies QP modification for frames after the scenecut.|
+ +---+---+
+ | 2 | Backward masking. |
+ |   | Applies QP modification for frames before the scenecut.   |
+ +---+---+
+ | 3 | Bi-directional masking.   |
+ |   | Applies QP modification for frames before and after   |
+ |   | the scenecut. |
+ +---+---+

-   **Range of values:**  0 to 10
+.. option:: --masking-strength 
+
+ Comma separated list of values which specifies the duration and offset
+ for the QP increment for inter-frames when :option:`--scenecut-aware-qp`
+ is enabled.
+
+ When :option:`--scenecut-aware-qp` is::
+ * 1 (Forward masking):
+ --masking-strength 
+ * 2 (Backward masking):
+ --masking-strength 
+ * 3 (Bi-directional masking):
+ --masking-strength

+
+
+-+---+
+ | Parameter   | Description
|
+
+=+===+
+ | fwdWindow   | The duration(in milliseconds) for which there is a
reduction  |
+ | | in the bits spent on the inter-frames after a
scenecut by |
+ | | increasing their QP. Default 500ms.
|
+ | | **Range of values:** 0 to 1000
 |
+
+-+---+
+ | fwdRefQPDelta   | The offset by which QP is incremented for
inter-frames

Re: [x265] [PATCH]Add: Forward and Backward masking

2020-12-11 Thread Aruna Matheswaran
On Fri, Dec 11, 2020 at 1:53 PM Niranjan Bala 
wrote:

> From cf25444e6b0f82de7b751c2436dec22ea94755b9 Mon Sep 17 00:00:00 2001
> From: Niranjan Kumar 
> Date: Wed, 21 Oct 2020 19:18:14 +0530
> Subject: [PATCH] Add: Forward and Backward masking
>

> Enables scenecut-aware-qp in a specified direction
> 0 - Disabled
> 1 - Forward masking
> 2 - Backward masking
> 3 - Bi-directional masking
> ---
>  doc/reST/cli.rst   | 85 +++
>  source/common/param.cpp| 90 ++---
>  source/encoder/encoder.cpp |  6 +--
>  source/encoder/ratecontrol.cpp | 91 +++---
>  source/encoder/ratecontrol.h   |  1 +
>  source/x265.h  | 32 +---
>  source/x265cli.cpp | 10 ++--
>  source/x265cli.h   |  7 +--
>  8 files changed, 244 insertions(+), 78 deletions(-)
>
> diff --git a/doc/reST/cli.rst b/doc/reST/cli.rst
> index 1a1de9f50..4e20daa90 100755
> --- a/doc/reST/cli.rst
> +++ b/doc/reST/cli.rst
> @@ -1963,37 +1963,78 @@ Quality, rate control and rate distortion options
>
>   **CLI ONLY**
>
> -.. option:: --scenecut-aware-qp, --no-scenecut-aware-qp
> +.. option:: --scenecut-aware-qp 
>
> -   It reduces the bits spent on the inter-frames within the
> :option:`--scenecut-window`
> +   It reduces the bits spent on the inter-frames within the scenecut
> window
> before and after a scenecut by increasing their QP in ratecontrol
> pass2 algorithm
> without any deterioration in visual quality. If a scenecut falls
> within the window,
> the QP of the inter-frames after this scenecut will not be modified.
> -   :option:`--scenecut-aware-qp` works only with --pass 2. Default
> disabled.
> +   :option:`--scenecut-aware-qp` works only with --pass 2. Default 0.
>
> -.. option:: --scenecut-window 
> -
> -   The duration(in milliseconds) for which there is a reduction in the
> bits spent
> -   on the inter-frames after a scenecut by increasing their QP, when
> -   :option:`--scenecut-aware-qp` is enabled. Default 500ms.
> +
>  +---+---+
> + | Mode  | Description   |
> + +===+===+
> + | 0 | Disabled. |
> + +---+---+
> + | 1 | Forward masking.  |
> + |   | Applies QP modification for frames after the scenecut.|
> + +---+---+
> + | 2 | Backward masking. |
> +|   | Applies QP modification for frames before the scenecut.
>   |
>
[AM] Fix indentation.

> + +---+---+
> + | 3 | Bi-directional masking.   |
> + |   | Applies QP modification for frames before and after   |
> + |   | the scenecut. |
> + +---+---+
>
> -   **Range of values:** 0 to 1000
> +.. option:: --masking-strength 
>
> -.. option:: --qp-delta-ref 
> -
> -   The offset by which QP is incremented for inter-frames
> -   when :option:`--scenecut-aware-qp` is enabled. Default 5.
> +   Comma separated list of values which specifies the duration and offset
> +   for the QP increment for inter-frames when
> :option:`--scenecut-aware-qp`
> +   is enabled.
>
> -   **Range of values:**  0 to 10
> +   When :option:`--scenecut-aware-qp` is::
> +   * 1 (Forward masking):
> + --masking-strength 
>
> -.. option:: --qp-delta-nonref 
> -
> -   The offset by which QP is incremented for non-referenced
> -   inter-frames when :option:`--scenecut-aware-qp` is enabled.
> -   The offset is computed from :option:`--qp-delta-ref` when it
> -   is not explicitly specified.
> -
> -   **Range of values:**  0 to 10
> +   * 2 (Backward masking):
> + --masking-strength 
> +
> +   * 3 (Bi-directional masking):
> + --masking-strength
> 
> +
> +
>  
> +-+---+
> + | Parameter   | Description
>   |
> +
> +=+===+
> + | fwdWindow   | The duration(in milliseconds) for which there is a
> reduction  |
> + | | in the bits spent on the inter-frames after a
> scenecut by |
> + |  | increasing their QP. Default 500ms.   |
> +| | **Range of values:** 0 to 1000
>|
>
[AM] Fix indentation here and in the following section.

> +
> +-+---+
> + | fwdRefQPDelt

[x265] [PATCH]Add: Forward and Backward masking

2020-12-11 Thread Niranjan Bala
>From cf25444e6b0f82de7b751c2436dec22ea94755b9 Mon Sep 17 00:00:00 2001
From: Niranjan Kumar 
Date: Wed, 21 Oct 2020 19:18:14 +0530
Subject: [PATCH] Add: Forward and Backward masking

Enables scenecut-aware-qp in a specified direction
0 - Disabled
1 - Forward masking
2 - Backward masking
3 - Bi-directional masking
---
 doc/reST/cli.rst   | 85 +++
 source/common/param.cpp| 90 ++---
 source/encoder/encoder.cpp |  6 +--
 source/encoder/ratecontrol.cpp | 91 +++---
 source/encoder/ratecontrol.h   |  1 +
 source/x265.h  | 32 +---
 source/x265cli.cpp | 10 ++--
 source/x265cli.h   |  7 +--
 8 files changed, 244 insertions(+), 78 deletions(-)

diff --git a/doc/reST/cli.rst b/doc/reST/cli.rst
index 1a1de9f50..4e20daa90 100755
--- a/doc/reST/cli.rst
+++ b/doc/reST/cli.rst
@@ -1963,37 +1963,78 @@ Quality, rate control and rate distortion options

  **CLI ONLY**

-.. option:: --scenecut-aware-qp, --no-scenecut-aware-qp
+.. option:: --scenecut-aware-qp 

-   It reduces the bits spent on the inter-frames within the
:option:`--scenecut-window`
+   It reduces the bits spent on the inter-frames within the scenecut window
before and after a scenecut by increasing their QP in ratecontrol pass2
algorithm
without any deterioration in visual quality. If a scenecut falls within
the window,
the QP of the inter-frames after this scenecut will not be modified.
-   :option:`--scenecut-aware-qp` works only with --pass 2. Default
disabled.
+   :option:`--scenecut-aware-qp` works only with --pass 2. Default 0.

-.. option:: --scenecut-window 
-
-   The duration(in milliseconds) for which there is a reduction in the
bits spent
-   on the inter-frames after a scenecut by increasing their QP, when
-   :option:`--scenecut-aware-qp` is enabled. Default 500ms.
+
 +---+---+
+ | Mode  | Description   |
+ +===+===+
+ | 0 | Disabled. |
+ +---+---+
+ | 1 | Forward masking.  |
+ |   | Applies QP modification for frames after the scenecut.|
+ +---+---+
+ | 2 | Backward masking. |
+|   | Applies QP modification for frames before the scenecut.
  |
+ +---+---+
+ | 3 | Bi-directional masking.   |
+ |   | Applies QP modification for frames before and after   |
+ |   | the scenecut. |
+ +---+---+

-   **Range of values:** 0 to 1000
+.. option:: --masking-strength 

-.. option:: --qp-delta-ref 
-
-   The offset by which QP is incremented for inter-frames
-   when :option:`--scenecut-aware-qp` is enabled. Default 5.
+   Comma separated list of values which specifies the duration and offset
+   for the QP increment for inter-frames when
:option:`--scenecut-aware-qp`
+   is enabled.

-   **Range of values:**  0 to 10
+   When :option:`--scenecut-aware-qp` is::
+   * 1 (Forward masking):
+ --masking-strength 

-.. option:: --qp-delta-nonref 
-
-   The offset by which QP is incremented for non-referenced
-   inter-frames when :option:`--scenecut-aware-qp` is enabled.
-   The offset is computed from :option:`--qp-delta-ref` when it
-   is not explicitly specified.
-
-   **Range of values:**  0 to 10
+   * 2 (Backward masking):
+ --masking-strength 
+
+   * 3 (Bi-directional masking):
+ --masking-strength

+
+
 
+-+---+
+ | Parameter   | Description
|
+
+=+===+
+ | fwdWindow   | The duration(in milliseconds) for which there is a
reduction  |
+ | | in the bits spent on the inter-frames after a
scenecut by |
+ |  | increasing their QP. Default 500ms.   |
+| | **Range of values:** 0 to 1000
 |
+
+-+---+
+ | fwdRefQPDelta   | The offset by which QP is incremented for
inter-frames|
+ | | after a scenecut. Default 5.
 |
+ | | **Range of values:** 0 to 10
 |
+
+-+---+
+ | fwdNonRefQPDelta| The offset by which QP is incremented for
non-referenced  |
+|