From aac347885d8eae67c06d621ed3ef09505f82da25 Mon Sep 17 00:00:00 2001 From: patrickenfuego Date: Thu, 14 Jul 2022 22:01:49 -0400 Subject: [PATCH] Fix psyrd bug --- modules/FFTools/Private/Set-DVArgs.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/FFTools/Private/Set-DVArgs.ps1 b/modules/FFTools/Private/Set-DVArgs.ps1 index db28ce1..e70e2e7 100644 --- a/modules/FFTools/Private/Set-DVArgs.ps1 +++ b/modules/FFTools/Private/Set-DVArgs.ps1 @@ -351,7 +351,7 @@ function Set-DVArgs { '--min-keyint' 24 '--psy-rd' - $PsyRd + $PSBoundParameters['PsyRd'] ? $PsyRd : '2.00' '--tu-intra-depth' "$($TuDepth[0])" '--tu-inter-depth' @@ -432,7 +432,6 @@ function Set-DVArgs { if ($x265ExtraArray) { $x265BaseArray.AddRange($x265ExtraArray) } switch ($x265ExtraArray) { - { $_ -notcontains '--sao' } { $x265BaseArray.Add('--no-sao') > $null } { $_ -notcontains '--open-gop' } { $x265BaseArray.Add('--no-open-gop') > $null } { $_ -notcontains '--keyint' } { $x265BaseArray.AddRange(@('--keyint', 192)) } { $_ -notcontains '--min-keyint' } { $x265BaseArray.AddRange(@('--min-keyint', 24)) }