-
-
Save YahuiWong/830f9c93797cac09c81589385886a795 to your computer and use it in GitHub Desktop.
Installs FFmpeg on aws\whatever
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
# Taken from https://forums.aws.amazon.com/thread.jspa?messageID=332091 | |
# And https://gist.github.com/rainabba/07425c3bc14a0bb51632f12e913d9081 | |
# | |
# Usage: `sudo bash ./install_ffmpeg.sh` | |
# Config Variables | |
static_host=https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-64bit-static.tar.xz | |
filename=ffmpeg-git-64bit-static.tar.xz | |
cd /usr/local/bin | |
mkdir ffmpeg | |
echo "Made dir" | |
cd ffmpeg | |
echo "Downloading" | |
wget $static_host | |
echo "Download finished" | |
# Unzip ffmpeg contents directly with --strip-components https://superuser.com/a/899688/450105 | |
echo "Unzipping" | |
tar xf $filename --strip-components=1 | |
rm $filename | |
echo "Symlinking" | |
ln -s /usr/local/bin/ffmpeg/ffmpeg /usr/bin/ffmpeg | |
ln -s /usr/local/bin/ffmpeg/ffpropbe /usr/bin/ffpropbe | |
echo "FFmpeg installed!" | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment