Skip to content

Commit 317e88d

Browse files
committed
download ffmpeg from johnvansickle
1 parent 82db304 commit 317e88d

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/run-test.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,17 @@ jobs:
4545
with:
4646
python-version: '3.10'
4747

48-
- name: Install FFmpeg
48+
- name: Install latest FFmpeg (static build)
4949
run: |
50-
sudo add-apt-repository ppa:ubuntuhandbook1/ffmpeg
50+
set -e
5151
sudo apt-get update
52-
sudo apt-get install ffmpeg
52+
sudo apt-get install -y xz-utils ca-certificates
53+
curl -L -o ffmpeg.tar.xz https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz
54+
tar -xJf ffmpeg.tar.xz
55+
FF_DIR=$(find . -maxdepth 1 -type d -name "ffmpeg-*-amd64-static" | head -n1)
56+
sudo mv "$FF_DIR/ffmpeg" "$FF_DIR/ffprobe" /usr/local/bin/
5357
ffmpeg -version
58+
ffprobe -version
5459
5560
- name: Clone HwCodecDetect
5661
run: git clone -b main --single-branch https://github.com/whyb/HwCodecDetect.git

0 commit comments

Comments
 (0)