Skip to content

Commit ca69ca0

Browse files
committed
build script: pull ffmpeg 5.0.1 binaries, bug fixes 🐛
1 parent d18e205 commit ca69ca0

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

.github/workflows/test.yml

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
uses: actions/setup-node@v1
2323
with:
2424
node-version: ${{ matrix.node-version }}
25+
- run: apt install -y p7zip
26+
2527
- run: npm install
2628

2729
- run: npm run lint

build/index.sh

+13-4
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,38 @@ tar_exec=$(command -v gtar)
77
if [ $? -ne 0 ]; then
88
tar_exec=$(command -v tar)
99
fi
10+
https://rtfmp.wordpress.com/2017/03/31/difference-7z-7za-and-7zr/
11+
p7zip_exec=$(command -v 7zr)
12+
if [ $? -ne 0 ]; then
13+
p7zip_exec=$(command -v 7zz)
14+
fi
15+
if [ $? -ne 0 ]; then
16+
p7zip_exec=$(command -v 7z)
17+
fi
1018
set -e
1119
echo using tar executable at $tar_exec
20+
echo using 7z executable at $p7zip_exec
1221

1322
mkdir -p ../bin
1423

1524
download () {
16-
curl -L -# --compressed -A 'https://github.com/eugeneware/ffmpeg-static build script' -o $2 $1
25+
curl -f -L -# --compressed -A 'https://github.com/eugeneware/ffmpeg-static build script' -o $2 $1
1726
}
1827

1928
echo 'windows x64'
2029
echo ' downloading from gyan.dev'
2130
download 'https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.7z' win32-x64.7z
2231
echo ' extracting'
2332
tmpdir=$(mktemp -d)
24-
7zr e -y -bd -o"$tmpdir" win32-x64.7z >/dev/null
33+
$p7zip_exec e -y -bd -o"$tmpdir" win32-x64.7z >/dev/null
2534
mv "$tmpdir/ffmpeg.exe" ../bin/win32-x64
2635
chmod +x ../bin/win32-x64
2736
mv "$tmpdir/LICENSE" ../bin/win32-x64.LICENSE
2837
mv "$tmpdir/README.txt" ../bin/win32-x64.README
2938

3039
echo 'windows ia32'
3140
echo ' downloading from github.com'
32-
download 'https://github.com/sudo-nautilus/FFmpeg-Builds-Win32/releases/download/latest/ffmpeg-n5.0-latest-win32-gpl-5.0.zip' win32-ia32.zip
41+
download 'https://github.com/sudo-nautilus/FFmpeg-Builds-Win32/releases/download/autobuild-2022-04-30-14-19/ffmpeg-n5.0.1-4-ga5ebb3d25e-win32-gpl-5.0.zip' win32-ia32.zip
3342
echo ' extracting'
3443
unzip -o -d ../bin -j win32-ia32.zip '*/bin/ffmpeg.exe'
3544
mv ../bin/ffmpeg.exe ../bin/win32-ia32
@@ -82,7 +91,7 @@ curl -s -L 'https://evermeet.cx/ffmpeg/info/ffmpeg/release' | jq --tab '.' >../b
8291

8392
echo 'darwin arm64'
8493
echo ' downloading from osxexperts.net'
85-
download 'https://www.osxexperts.net/FFmpegARM.zip' darwin-arm64.zip
94+
download 'https://www.osxexperts.net/FFmpeg501ARM.zip' darwin-arm64.zip
8695
echo ' extracting'
8796
unzip -o -d ../bin -j darwin-arm64.zip ffmpeg
8897
mv ../bin/ffmpeg ../bin/darwin-arm64

0 commit comments

Comments
 (0)