Last active
June 7, 2019 18:15
-
-
Save CristianGiordano/08d638c157f10c3cd5c94b54d701701d to your computer and use it in GitHub Desktop.
Install FFmpeg on Codeship
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
RELEASES_URL=https://johnvansickle.com/ffmpeg/releases/ | |
RELEASE_TYPE=64bit | |
RELEASE_VERSION=3.4.0 | |
UNTARRED_NAME="ffmpeg-${RELEASE_VERSION}-${RELEASE_TYPE}-static" | |
TAR_NAME="ffmpeg-release-${RELEASE_TYPE}-static.tar" | |
COMPRESSED_TAR_NAME="${TAR_NAME}.xz" | |
FILE_URL="${RELEASES_URL}${COMPRESSED_TAR_NAME}" | |
CACHED_DOWNLOAD="${HOME}/cache/${COMPRESSED_TAR_NAME}" | |
wget --continue --output-document "${CACHED_DOWNLOAD}" "${FILE_URL}" | |
unxz -k "${CACHED_DOWNLOAD}" || true | |
tar -xaf "${HOME}/cache/${TAR_NAME}" -C "${HOME}/cache/" | |
ln -s "${HOME}/cache/${UNTARRED_NAME}/ffmpeg" "${HOME}/bin/" | |
ffmpeg -version | head -n 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment