File tree Expand file tree Collapse file tree 1 file changed +19
-5
lines changed
Expand file tree Collapse file tree 1 file changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -77,13 +77,27 @@ jobs:
7777 sudo make install
7878 ffmpeg -version
7979
80- - name : Install FFmpeg 7.1.1 on Windows (prebuilt )
80+ - name : Install FFmpeg 7.1.1 on Windows (custom build )
8181 if : matrix.os == 'windows-latest'
82+ shell : powershell
8283 run : |
83- Invoke-WebRequest -Uri https://www.gyan.dev/ffmpeg/builds/packages/ffmpeg-7.1.1-full_build.zip -OutFile ffmpeg.zip
84- Expand-Archive ffmpeg.zip -DestinationPath $env:USERPROFILE\ffmpeg
85- $env:Path += ";$env:USERPROFILE\ffmpeg\ffmpeg-7.1.1-full_build\bin"
86- ffmpeg -version
84+ Invoke-WebRequest -Uri https://github.com/PHP-WebRTC/ffmpeg-builder/releases/download/v7.1.1/ffmpeg-win_amd64.tar.gz -OutFile ffmpeg.tar.gz
85+ mkdir ffmpeg
86+ tar -xzf ffmpeg.tar.gz -C ffmpeg
87+
88+ # Add lib folder containing DLLs to PATH
89+ echo "${{ github.workspace }}\ffmpeg\lib" | Out-File -Append $env:GITHUB_PATH
90+
91+ # Check ffmpeg version from bin if available
92+ if (Test-Path "${{ github.workspace }}\ffmpeg\bin\ffmpeg.exe") {
93+ & "${{ github.workspace }}\ffmpeg\bin\ffmpeg.exe" -version
94+ } elseif (Test-Path "${{ github.workspace }}\ffmpeg\lib\ffmpeg.exe") {
95+ & "${{ github.workspace }}\ffmpeg\lib\ffmpeg.exe" -version
96+ } else {
97+ Write-Host "ffmpeg.exe not found."
98+ }
99+
100+
87101
88102 - name : Check PHP and FFI status
89103 run : |
You can’t perform that action at this time.
0 commit comments