Skip to content

Commit

Permalink
build script: pull ffmpeg 5.1 binaries 💚 [todo:linux]
Browse files Browse the repository at this point in the history
related: #110
  • Loading branch information
derhuerst committed Dec 2, 2022
1 parent e635bec commit d9e3e1c
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions build/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ download () {
echo 'windows x64'
echo ' downloading from github.com/GyanD/codexffmpeg'
# todo: 404
download 'https://github.com/GyanD/codexffmpeg/releases/download/5.0.1/ffmpeg-5.0.1-essentials_build.7z' win32-x64.7z
download 'https://github.com/GyanD/codexffmpeg/releases/download/5.1/ffmpeg-5.1-essentials_build.7z' win32-x64.7z
echo ' extracting'
tmpdir=$(mktemp -d)
$p7zip_exec e -y -bd -o"$tmpdir" win32-x64.7z >/dev/null
Expand All @@ -40,15 +40,15 @@ mv "$tmpdir/README.txt" ../bin/win32-x64.README

echo 'windows ia32'
echo ' downloading from github.com'
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
download 'https://github.com/sudo-nautilus/FFmpeg-Builds-Win32/releases/download/autobuild-2022-07-31-12-36/ffmpeg-n5.1-2-g915ef932a3-win32-gpl-5.1.zip' win32-ia32.zip
echo ' extracting'
unzip -o -d ../bin -j win32-ia32.zip '*/bin/ffmpeg.exe'
mv ../bin/ffmpeg.exe ../bin/win32-ia32
curl -sf -L 'https://raw.githubusercontent.com/sudo-nautilus/FFmpeg-Builds-Win32/autobuild-2022-04-30-14-19/LICENSE' -o ../bin/win32-ia32.LICENSE
curl -sf -L 'https://raw.githubusercontent.com/sudo-nautilus/FFmpeg-Builds-Win32/autobuild-2022-07-31-12-36/LICENSE' -o ../bin/win32-ia32.LICENSE

echo 'linux x64'
echo ' downloading from johnvansickle.com'
download 'https://johnvansickle.com/ffmpeg/releases/ffmpeg-5.0.1-amd64-static.tar.xz' linux-x64.tar.xz
download 'https://johnvansickle.com/ffmpeg/releases/ffmpeg-5.1-amd64-static.tar.xz' linux-x64.tar.xz
echo ' extracting'
xzcat linux-x64.tar.xz | $tar_exec -x -C ../bin --strip-components 1 --wildcards '*/ffmpeg'
mv ../bin/ffmpeg ../bin/linux-x64
Expand All @@ -57,7 +57,7 @@ xzcat linux-x64.tar.xz | $tar_exec -x --ignore-case --wildcards -O '**/readme.tx

echo 'linux ia32'
echo ' downloading from johnvansickle.com'
download 'https://johnvansickle.com/ffmpeg/releases/ffmpeg-5.0.1-i686-static.tar.xz' linux-ia32.tar.xz
download 'https://johnvansickle.com/ffmpeg/releases/ffmpeg-5.1-i686-static.tar.xz' linux-ia32.tar.xz
echo ' extracting'
xzcat linux-ia32.tar.xz | $tar_exec -x -C ../bin --strip-components 1 --wildcards '*/ffmpeg'
mv ../bin/ffmpeg ../bin/linux-ia32
Expand All @@ -66,7 +66,7 @@ xzcat linux-ia32.tar.xz | $tar_exec -x --ignore-case --wildcards -O '**/readme.t

echo 'linux arm'
echo ' downloading from johnvansickle.com'
download 'https://johnvansickle.com/ffmpeg/releases/ffmpeg-5.0.1-armhf-static.tar.xz' linux-arm.tar.xz
download 'https://johnvansickle.com/ffmpeg/releases/ffmpeg-5.1-armhf-static.tar.xz' linux-arm.tar.xz
echo ' extracting'
xzcat linux-arm.tar.xz | $tar_exec -x -C ../bin --strip-components 1 --wildcards '*/ffmpeg'
mv ../bin/ffmpeg ../bin/linux-arm
Expand All @@ -75,7 +75,7 @@ xzcat linux-arm.tar.xz | $tar_exec -x --ignore-case --wildcards -O '**/readme.tx

echo 'linux arm64'
echo ' downloading from johnvansickle.com'
download 'https://johnvansickle.com/ffmpeg/releases/ffmpeg-5.0.1-arm64-static.tar.xz' linux-arm64.tar.xz
download 'https://johnvansickle.com/ffmpeg/releases/ffmpeg-5.1-arm64-static.tar.xz' linux-arm64.tar.xz
echo ' extracting'
xzcat linux-arm64.tar.xz | $tar_exec -x -C ../bin --strip-components 1 --wildcards '*/ffmpeg'
mv ../bin/ffmpeg ../bin/linux-arm64
Expand All @@ -84,25 +84,25 @@ xzcat linux-arm64.tar.xz | $tar_exec -x --ignore-case --wildcards -O '**/readme.

echo 'darwin x64'
echo ' downloading from evermeet.cx'
download $(curl 'https://evermeet.cx/ffmpeg/info/ffmpeg/5.0.1' -sfL | jq -rc '.download.zip.url') darwin-x64.zip
download $(curl 'https://evermeet.cx/ffmpeg/info/ffmpeg/5.1' -sfL | jq -rc '.download.zip.url') darwin-x64.zip
echo ' extracting'
unzip -o -d ../bin -j darwin-x64.zip ffmpeg
mv ../bin/ffmpeg ../bin/darwin-x64
curl -sf -L 'https://git.ffmpeg.org/gitweb/ffmpeg.git/blob_plain/n5.0.1:/LICENSE.md' -o ../bin/darwin-x64.LICENSE
curl -sf -L 'https://evermeet.cx/ffmpeg/info/ffmpeg/5.0.1' | jq --tab '.' >../bin/darwin-x64.README
curl -sf -L 'https://git.ffmpeg.org/gitweb/ffmpeg.git/blob_plain/n5.1:/LICENSE.md' -o ../bin/darwin-x64.LICENSE
curl -sf -L 'https://evermeet.cx/ffmpeg/info/ffmpeg/5.1' | jq --tab '.' >../bin/darwin-x64.README

echo 'darwin arm64'
echo ' downloading from osxexperts.net'
download 'https://www.osxexperts.net/FFmpeg501ARM.zip' darwin-arm64.zip
download 'https://www.osxexperts.net/FFmpeg51ARM.zip' darwin-arm64.zip
echo ' extracting'
unzip -o -d ../bin -j darwin-arm64.zip ffmpeg
mv ../bin/ffmpeg ../bin/darwin-arm64
curl -sf -L 'https://git.ffmpeg.org/gitweb/ffmpeg.git/blob_plain/n5.0.1:/LICENSE.md' -o ../bin/darwin-arm64.LICENSE
curl -sf -L 'https://git.ffmpeg.org/gitweb/ffmpeg.git/blob_plain/n5.0.1:/README.md' -o ../bin/darwin-arm64.README
curl -sf -L 'https://git.ffmpeg.org/gitweb/ffmpeg.git/blob_plain/n5.1:/LICENSE.md' -o ../bin/darwin-arm64.LICENSE
curl -sf -L 'https://git.ffmpeg.org/gitweb/ffmpeg.git/blob_plain/n5.1:/README.md' -o ../bin/darwin-arm64.README

echo 'freebsd x64'
echo ' downloading from github.com/Thefrank/ffmpeg-static-freebsd'
download 'https://github.com/Thefrank/ffmpeg-static-freebsd/releases/download/v5.0.1/ffmpeg' ../bin/freebsd-x64
download 'https://github.com/Thefrank/ffmpeg-static-freebsd/releases/download/v5.1/ffmpeg' ../bin/freebsd-x64
chmod +x ../bin/freebsd-x64
curl -sf -L 'https://github.com/Thefrank/ffmpeg-static-freebsd/releases/download/v5.0.1/GPLv3.LICENSE' -o ../bin/freebsd-x64.LICENSE
curl -sf -L 'https://git.ffmpeg.org/gitweb/ffmpeg.git/blob_plain/n5.0.1:/README.md' -o ../bin/freebsd-x64.README
curl -sf -L 'https://github.com/Thefrank/ffmpeg-static-freebsd/releases/download/v5.1/GPLv3.LICENSE' -o ../bin/freebsd-x64.LICENSE
curl -sf -L 'https://git.ffmpeg.org/gitweb/ffmpeg.git/blob_plain/n5.1:/README.md' -o ../bin/freebsd-x64.README

0 comments on commit d9e3e1c

Please sign in to comment.