|
|
|
@ -51,7 +51,7 @@ function Install-FFMPEG {
|
|
|
|
|
Write-Warning "FFMPEG will not be installed"
|
|
|
|
|
}elseif($Architecture -eq 'x64'){
|
|
|
|
|
Write-Verbose "Downloading 64 bit FFMPEG"
|
|
|
|
|
Invoke-WebRequest -Uri https://ffmpeg.zeranoe.com/builds/win64/shared/ffmpeg-4.0.2-win64-shared.zip -UseBasicParsing -OutFile "$tempdir/ffmpeg.zip" | Write-Verbose
|
|
|
|
|
Invoke-WebRequest -Uri https://repo.jellyfin.org/releases/server/windows/ffmpeg/jellyfin-ffmpeg.zip -UseBasicParsing -OutFile "$tempdir/ffmpeg.zip" | Write-Verbose
|
|
|
|
|
}else{
|
|
|
|
|
Write-Verbose "Downloading 32 bit FFMPEG"
|
|
|
|
|
Invoke-WebRequest -Uri https://ffmpeg.zeranoe.com/builds/win32/shared/ffmpeg-4.0.2-win32-shared.zip -UseBasicParsing -OutFile "$tempdir/ffmpeg.zip" | Write-Verbose
|
|
|
|
@ -60,7 +60,7 @@ function Install-FFMPEG {
|
|
|
|
|
Expand-Archive "$tempdir/ffmpeg.zip" -DestinationPath "$tempdir/ffmpeg/" -Force | Write-Verbose
|
|
|
|
|
if($Architecture -eq 'x64'){
|
|
|
|
|
Write-Verbose "Copying Binaries to Jellyfin location"
|
|
|
|
|
Get-ChildItem "$tempdir/ffmpeg/ffmpeg-4.0.2-win64-shared/bin" | ForEach-Object {
|
|
|
|
|
Get-ChildItem "$tempdir/ffmpeg" | ForEach-Object {
|
|
|
|
|
Copy-Item $_.FullName -Destination $installLocation | Write-Verbose
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|