Change NCNN_GPU_ID=-1 handling in Clone-Image.ps1 to omit upscayl-bin -g flag instead of passing -1 (which the tested build rejects), update documentation across Clone-Image.md, SKILL.md, README.md and index.md to clarify -1 means CPU for rife-ncnn-vulkan but default device for upscayl-bin, wrap Get-SrtContent calls in Create-FullSubtitle.ps1 with @() array operator to ensure Count property exists when parsing returns single entry, fix Get-FramesRange.ps1 output directory resolution to use Resolve-Path before
This commit is contained in:
1 parent
de238fb9c3
commit
fcc208e351
7 files changed
+13
-12
No files matched your search
@@ -194,7 +194,7 @@ function Export-SrtFile {
|
||||
#region Main Script
|
||||
|
||||
Write-Host "Parsing first subtitle file: $Subtitle1"
|
||||
$subtitle1Entries = Get-SrtContent -SrtPath $Subtitle1
|
||||
$subtitle1Entries = @(Get-SrtContent -SrtPath $Subtitle1)
|
||||
Write-Host " Found $($subtitle1Entries.Count) entries"
|
||||
|
||||
if ($subtitle1Entries.Count -eq 0) {
|
||||
@@ -210,7 +210,7 @@ $videoDurationFormatted = ConvertFrom-TimeSpan -TimeSpan ([TimeSpan]::FromSecond
|
||||
Write-Host " Video duration: $videoDurationFormatted (${videoDuration}s)"
|
||||
|
||||
Write-Host "Parsing second subtitle file: $Subtitle2"
|
||||
$subtitle2Entries = Get-SrtContent -SrtPath $Subtitle2
|
||||
$subtitle2Entries = @(Get-SrtContent -SrtPath $Subtitle2)
|
||||
Write-Host " Found $($subtitle2Entries.Count) entries"
|
||||
|
||||
if ($subtitle2Entries.Count -eq 0) {
|
||||
|
||||
Reference in new issue
Block a user