Skip to content

Instantly share code, notes, and snippets.

@YahuiWong
Forked from spookyuser/install_ffmpeg.sh
Created December 28, 2019 07:07
Show Gist options
  • Save YahuiWong/830f9c93797cac09c81589385886a795 to your computer and use it in GitHub Desktop.
Save YahuiWong/830f9c93797cac09c81589385886a795 to your computer and use it in GitHub Desktop.
Installs FFmpeg on aws\whatever
# 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