Skip to content

Instantly share code, notes, and snippets.

@spookyuser
Forked from loong/Install ffmpeg on AWS Linux AMI
Last active December 28, 2019 07:07
Show Gist options
  • Save spookyuser/dd8c75319ec581c1028310cedaea786c to your computer and use it in GitHub Desktop.
Save spookyuser/dd8c75319ec581c1028310cedaea786c 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
@siltwood
Copy link

Thank you.

@spookyuser
Copy link
Author

@Eomm @ivarmlee11 of course! glad you found it useful :) And thanks for the shout out :P

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment