Update scripts/prepare-ffmpeg-sidecar.ps1

This commit is contained in:
Alvin-Zilverstand committed 2026-11-12 16:53:27 +01:00
1 parent 24f962be7f
commit cbcd8d5f6b
1 file changed
+2 -1
+2 -1
View File
@@ -27,7 +27,8 @@ New-Item -ItemType Directory -Force $tempRoot | Out-Null
try {
Write-Host "Downloading FFmpeg essentials build..."
Invoke-WebRequest -UseBasicParsing -Uri $DownloadUrl -OutFile $zipPath
Expand-Archive -LiteralPath $zipPath -DestinationPath $tempRoot -Force
Add-Type -AssemblyName System.IO.Compression.FileSystem
[System.IO.Compression.ZipFile]::ExtractToDirectory($zipPath, $tempRoot)
$ffmpeg = Get-ChildItem -Path $tempRoot -Recurse -Filter ffmpeg.exe | Select-Object -First 1
if (-not $ffmpeg) {
throw "Downloaded archive did not contain ffmpeg.exe"