2017-06-15 12:17:04 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-07-31 10:38:55 +00:00
|
|
|
# Download FFmpeg and VTM decoder and place them in $PATH.
|
2017-06-15 12:17:04 +00:00
|
|
|
|
|
|
|
set -euvo pipefail
|
|
|
|
|
|
|
|
mkdir -p "${HOME}/bin"
|
|
|
|
|
2024-07-31 10:45:48 +00:00
|
|
|
export PATH="/opt/homebrew/bin/:${PATH}"
|
|
|
|
|
2024-07-31 10:38:55 +00:00
|
|
|
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
|
2020-10-09 06:28:58 +00:00
|
|
|
wget http://ultravideo.fi/ffmpeg-release-4.2.1-32bit-static.tar.xz
|
2017-06-15 12:17:04 +00:00
|
|
|
sha256sum -c - << EOF
|
2019-09-11 11:52:30 +00:00
|
|
|
226f55f8a94d71f3d231a20fe59fcbb7f6100cabf663f9bcb887d17b332a91c5 ffmpeg-release-4.2.1-32bit-static.tar.xz
|
2017-06-15 12:17:04 +00:00
|
|
|
EOF
|
2019-09-11 11:52:30 +00:00
|
|
|
tar xf ffmpeg-release-4.2.1-32bit-static.tar.xz
|
|
|
|
cp ffmpeg-4.2.1-i686-static/ffmpeg "${HOME}/bin/ffmpeg"
|
2017-06-15 12:17:04 +00:00
|
|
|
chmod +x "${HOME}/bin/ffmpeg"
|
|
|
|
|
2021-05-27 08:37:07 +00:00
|
|
|
wget http://ultravideo.fi/ubuntu-vtm-13.0.tgz
|
2017-06-15 12:17:04 +00:00
|
|
|
sha256sum -c - << EOF
|
2021-05-27 08:37:07 +00:00
|
|
|
1751bba04611791040a978015da8bb537fcd89c89453c0cdc1ec2719aac2a1a8 ubuntu-vtm-13.0.tgz
|
2017-06-15 12:17:04 +00:00
|
|
|
EOF
|
2021-05-27 08:37:07 +00:00
|
|
|
tar xf ubuntu-vtm-13.0.tgz
|
2020-12-09 10:12:06 +00:00
|
|
|
cp DecoderApp "${HOME}/bin/DecoderAppStatic"
|
2020-10-09 06:28:58 +00:00
|
|
|
chmod +x "${HOME}/bin/DecoderAppStatic"
|
2024-07-31 10:38:55 +00:00
|
|
|
fi
|
2017-06-15 12:17:04 +00:00
|
|
|
|
|
|
|
export PATH="${HOME}/bin:${PATH}"
|