Skip to content

Commit

Permalink
hotfix: gpu & default extension
Browse files Browse the repository at this point in the history
  • Loading branch information
couleurm committed Feb 15, 2022
1 parent b792168 commit 5b43b4c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion install/post.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
4 changes: 2 additions & 2 deletions settings/recipe.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ fps=720
speed=medium
tuning=weak
algorithm=23
gpu=yes
gpu=true

[frame blending]
enabled=yes
Expand All @@ -21,7 +21,7 @@ args=-c:v libx264 -preset slow -crf 15
[misc]
folder=
deduplication=y
container=mp4
container=.mp4
flavors=fruits

[timescale]
Expand Down

0 comments on commit 5b43b4c

Please sign in to comment.