mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-23 18:14:06 +00:00
[CI] Add MacOS option for the ffmpeg and vtm binary downloads
This commit is contained in:
parent
96ade5c133
commit
5b02109945
|
@ -1,11 +1,29 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Download FFmpeg and HM decoder and place them in $PATH.
|
# Download FFmpeg and VTM decoder and place them in $PATH.
|
||||||
|
|
||||||
set -euvo pipefail
|
set -euvo pipefail
|
||||||
|
|
||||||
mkdir -p "${HOME}/bin"
|
mkdir -p "${HOME}/bin"
|
||||||
|
|
||||||
|
if [ "$(uname)" == "Darwin" ]; then
|
||||||
|
wget http://ultravideo.fi/ffmpeg-release-7.0-static-applesilicon.tar.xz
|
||||||
|
sha256sum -c - << EOF
|
||||||
|
c2bf6c192fac269ec298ee20b403cc6c9b493970ca3902a2123e649813ea1aba ffmpeg-release-7.0-static-applesilicon.tar.xz
|
||||||
|
EOF
|
||||||
|
tar xf ffmpeg-release-7.0-static-applesilicon.tar.xz
|
||||||
|
cp ffmpeg "${HOME}/bin/ffmpeg"
|
||||||
|
chmod +x "${HOME}/bin/ffmpeg"
|
||||||
|
|
||||||
|
wget http://ultravideo.fi/vtm-23.4-applesilicon.tar.xz
|
||||||
|
sha256sum -c - << EOF
|
||||||
|
193c71adca4f4882425de20f93f63ec6e20fe84154137d6894571a354962c7e1 vtm-23.4-applesilicon.tar.xz
|
||||||
|
EOF
|
||||||
|
tar xf vtm-23.4-applesilicon.tar.xz
|
||||||
|
cp DecoderApp "${HOME}/bin/DecoderAppStatic"
|
||||||
|
chmod +x "${HOME}/bin/DecoderAppStatic"
|
||||||
|
|
||||||
|
else
|
||||||
wget http://ultravideo.fi/ffmpeg-release-4.2.1-32bit-static.tar.xz
|
wget http://ultravideo.fi/ffmpeg-release-4.2.1-32bit-static.tar.xz
|
||||||
sha256sum -c - << EOF
|
sha256sum -c - << EOF
|
||||||
226f55f8a94d71f3d231a20fe59fcbb7f6100cabf663f9bcb887d17b332a91c5 ffmpeg-release-4.2.1-32bit-static.tar.xz
|
226f55f8a94d71f3d231a20fe59fcbb7f6100cabf663f9bcb887d17b332a91c5 ffmpeg-release-4.2.1-32bit-static.tar.xz
|
||||||
|
@ -21,5 +39,6 @@ EOF
|
||||||
tar xf ubuntu-vtm-13.0.tgz
|
tar xf ubuntu-vtm-13.0.tgz
|
||||||
cp DecoderApp "${HOME}/bin/DecoderAppStatic"
|
cp DecoderApp "${HOME}/bin/DecoderAppStatic"
|
||||||
chmod +x "${HOME}/bin/DecoderAppStatic"
|
chmod +x "${HOME}/bin/DecoderAppStatic"
|
||||||
|
fi
|
||||||
|
|
||||||
export PATH="${HOME}/bin:${PATH}"
|
export PATH="${HOME}/bin:${PATH}"
|
||||||
|
|
Loading…
Reference in a new issue