diff --git a/install/post.ps1 b/install/post.ps1 index 37faf17..39aa0bc 100644 --- a/install/post.ps1 +++ b/install/post.ps1 @@ -31,7 +31,13 @@ Write-Warning "Testing FFmpeg encoders.. note NVENC may fail if you use an older } } -(Get-Content "$DIR\Smoothie\settings\recipe.ini") -replace ('libx264 -preset slow -crf 15',$valid_args) | Set-Content "$DIR\Smoothie\settings\recipe.ini" +$rc = (Get-Content "$DIR\Smoothie\settings\recipe.ini") -replace ('libx264 -preset slow -crf 15',$valid_args) + +if ($valid_args -like '*libx26'){ + $rc = $rc -replace ('gpu=true','gpu=false') +} + +Set-Content "$DIR\Smoothie\settings\recipe.ini" -Value $rc $SendTo = [System.Environment]::GetFolderPath('SendTo') diff --git a/settings/recipe.ini b/settings/recipe.ini index db4f07f..027e763 100644 --- a/settings/recipe.ini +++ b/settings/recipe.ini @@ -7,7 +7,7 @@ fps=720 speed=medium tuning=weak algorithm=23 -gpu=yes +gpu=true [frame blending] enabled=yes @@ -21,7 +21,7 @@ args=-c:v libx264 -preset slow -crf 15 [misc] folder= deduplication=y -container=mp4 +container=.mp4 flavors=fruits [timescale]