Skip to content

Commit dcb0ecf

Browse files
Updating download scripts and package rev
1 parent 3a4af1d commit dcb0ecf

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

build/index.sh

+12-11
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ download () {
2727
fi
2828
}
2929

30+
##Special case download from archive.org for one-time download
3031
echo 'windows x64'
3132
echo ' downloading from gyan.dev'
32-
download 'https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.7z' win32-x64.7z
33+
download 'https://web.archive.org/web/20230629190651/https://www.gyan.dev/ffmpeg/builds/packages/ffmpeg-5.1.2-essentials_build.7z' win32-x64.7z
3334
echo ' extracting'
3435
tmpdir=$(mktemp -d)
3536
7zr e -y -bd -o"$tmpdir" win32-x64.7z >/dev/null
@@ -40,14 +41,14 @@ mv "$tmpdir/README.txt" ../bin/win32-x64.README
4041

4142
echo 'windows ia32'
4243
echo ' downloading from github.com'
43-
download 'https://github.com/sudo-nautilus/FFmpeg-Builds-Win32/releases/download/latest/ffmpeg-n6.0-latest-win32-gpl-6.0.zip' win32-ia32.zip
44+
download 'https://github.com/sudo-nautilus/FFmpeg-Builds-Win32/releases/download/autobuild-2022-09-30-12-48/ffmpeg-n5.1.2-1-g05d6157aab-win32-gpl-5.1.zip' win32-ia32.zip
4445
echo ' extracting'
4546
unzip -o -d ../bin -j win32-ia32.zip '*/bin/ffmpeg.exe' '*/bin/ffprobe.exe'
4647
mv ../bin/ffmpeg.exe ../bin/ffmpeg-win32-ia32
4748
mv ../bin/ffprobe.exe ../bin/ffprobe-win32-ia32
4849

4950
echo 'linux x64'
50-
download 'https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz' linux-x64.tar.xz
51+
download 'https://www.johnvansickle.com/ffmpeg/old-releases/ffmpeg-5.1.1-amd64-static.tar.xz' linux-x64.tar.xz
5152
echo ' extracting'
5253
xzcat linux-x64.tar.xz | $tar_exec -x -C ../bin --strip-components 1 --wildcards '*/ffmpeg' '*/ffprobe'
5354
mv ../bin/ffmpeg ../bin/ffmpeg-linux-x64
@@ -56,7 +57,7 @@ xzcat linux-x64.tar.xz | $tar_exec -x --ignore-case --wildcards -O '**/GPLv3.txt
5657
xzcat linux-x64.tar.xz | $tar_exec -x --ignore-case --wildcards -O '**/readme.txt' >../bin/linux-x64.README
5758

5859
echo 'linux ia32'
59-
download 'https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-i686-static.tar.xz' linux-ia32.tar.xz
60+
download 'https://www.johnvansickle.com/ffmpeg/old-releases/ffmpeg-5.1.1-i686-static.tar.xz' linux-ia32.tar.xz
6061
echo ' extracting'
6162
xzcat linux-ia32.tar.xz | $tar_exec -x -C ../bin --strip-components 1 --wildcards '*/ffmpeg' '*/ffprobe'
6263
mv ../bin/ffmpeg ../bin/ffmpeg-linux-ia32
@@ -65,7 +66,7 @@ xzcat linux-ia32.tar.xz | $tar_exec -x --ignore-case --wildcards -O '**/GPLv3.tx
6566
xzcat linux-ia32.tar.xz | $tar_exec -x --ignore-case --wildcards -O '**/readme.txt' >../bin/linux-ia32.README
6667

6768
echo 'linux arm'
68-
download 'https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-armhf-static.tar.xz' linux-arm.tar.xz
69+
download 'https://www.johnvansickle.com/ffmpeg/old-releases/ffmpeg-5.1.1-armhf-static.tar.xz' linux-arm.tar.xz
6970
echo ' extracting'
7071
xzcat linux-arm.tar.xz | $tar_exec -x -C ../bin --strip-components 1 --wildcards '*/ffmpeg' '*/ffprobe'
7172
mv ../bin/ffmpeg ../bin/ffmpeg-linux-arm
@@ -74,7 +75,7 @@ xzcat linux-arm.tar.xz | $tar_exec -x --ignore-case --wildcards -O '**/GPLv3.txt
7475
xzcat linux-arm.tar.xz | $tar_exec -x --ignore-case --wildcards -O '**/readme.txt' >../bin/linux-arm.README
7576

7677
echo 'linux arm64'
77-
download 'https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-arm64-static.tar.xz' linux-arm64.tar.xz
78+
download 'https://www.johnvansickle.com/ffmpeg/old-releases/ffmpeg-5.1.1-arm64-static.tar.xz' linux-arm64.tar.xz
7879
echo ' extracting'
7980
xzcat linux-arm64.tar.xz | $tar_exec -x -C ../bin --strip-components 1 --wildcards '*/ffmpeg' '*/ffprobe'
8081
mv ../bin/ffmpeg ../bin/ffmpeg-linux-arm64
@@ -83,12 +84,12 @@ xzcat linux-arm64.tar.xz | $tar_exec -x --ignore-case --wildcards -O '**/GPLv3.t
8384
xzcat linux-arm64.tar.xz | $tar_exec -x --ignore-case --wildcards -O '**/readme.txt' >../bin/linux-arm64.README
8485

8586
echo 'darwin x64'
86-
download 'https://www.osxexperts.net/ffmpeg61intel.zip' ffmpeg-darwin-x64.zip
87+
download 'https://www.osxexperts.net/ffmpeg511intel.zip' ffmpeg-darwin-x64.zip
8788
echo ' extracting'
8889
unzip -o -d ../bin -j ffmpeg-darwin-x64.zip ffmpeg
8990
mv ../bin/ffmpeg ../bin/ffmpeg-darwin-x64
9091

91-
download 'https://www.osxexperts.net/ffprobe61intel.zip' ffprobe-darwin-x64.zip
92+
download 'https://www.osxexperts.net/ffprobe511intel.zip' ffprobe-darwin-x64.zip
9293
echo ' extracting'
9394
unzip -o -d ../bin -j ffprobe-darwin-x64.zip ffprobe
9495
mv ../bin/ffprobe ../bin/ffprobe-darwin-x64
@@ -97,8 +98,8 @@ curl -s -L 'https://git.ffmpeg.org/gitweb/ffmpeg.git/blob_plain/HEAD:/LICENSE.md
9798

9899
echo 'darwin arm64'
99100
echo ' downloading from osxexperts.net'
100-
download 'https://www.osxexperts.net/ffmpeg611arm.zip' ffmpeg-darwin-arm64.zip
101-
download 'https://www.osxexperts.net/ffprobe611arm.zip' ffprobe-darwin-arm64.zip
101+
download 'https://www.osxexperts.net/ffmpeg511arm.zip' ffmpeg-darwin-arm64.zip
102+
download 'https://www.osxexperts.net/ffprobe511arm.zip' ffprobe-darwin-arm64.zip
102103
echo ' extracting'
103104
unzip -o -d ../bin -j ffmpeg-darwin-arm64.zip ffmpeg
104105
unzip -o -d ../bin -j ffprobe-darwin-arm64.zip ffprobe
@@ -110,5 +111,5 @@ curl -fsSL 'https://git.ffmpeg.org/gitweb/ffmpeg.git/blob_plain/n6.1:/README.md'
110111

111112
echo 'freebsd x64'
112113
echo ' downloading from github.com/Thefrank/ffmpeg-static-freebsd'
113-
download 'https://github.com/Thefrank/ffmpeg-static-freebsd/releases/download/v6.1.0/ffmpeg' ../bin/freebsd-x64
114+
download 'https://github.com/Thefrank/ffmpeg-static-freebsd/releases/download/v5.1.1/ffmpeg' ../bin/freebsd-x64
114115
chmod +x ../bin/freebsd-x64

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ffmpeg-ffprobe-static",
3-
"version": "6.1.1-rc.3",
3+
"version": "5.1-rc.1",
44
"description": "ffmpeg and ffprobe static binaries for Mac OSX, Linux, and Windows",
55
"main": "index.js",
66
"types": "index.d.ts",
@@ -17,8 +17,8 @@
1717
"prepublishOnly": "npm run lint && npm test"
1818
},
1919
"ffmpeg-static": {
20-
"binary-release-tag": "b6.1.1-rc.3",
21-
"binary-release-name": "6.1.1.rc.3"
20+
"binary-release-tag": "b5.1-rc.1",
21+
"binary-release-name": "5.1.rc.1"
2222
},
2323
"repository": {
2424
"type": "git",

0 commit comments

Comments
 (0)