Installing ffmpeg on EC2
This article explains how to install ffmpeg on a EC2 instance.
Setup
SSH into your instance and become root
$ sudo su -Go to the the /usr/local/bin directory
$ cd /usr/local/binInside the /usr/local/bin directory, create an “ffmpeg” directory
$ mkdir ffmpegGo into the new directory
$ cd ffmpegGo to static build directory at http://ffmpeg.gusari.org/static/64bit/ and pick the latest version of FFMPEG.
$ wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xzThe file should now be in /usr/local/bin/ffmpeg. Untar it…
$ tar -xf ffmpeg-release-amd64-static.tar.xzMove files
$ mv ffmpeg-release-amd64-static/* .If you want to be able to execute FFMPEG from any directory, simply create a symlink into /usr/bin like this:
$ ln -s /usr/local/bin/ffmpeg/ffmpeg /usr/bin/ffmpegNow, you should be able to run the command “ffmpeg” from anywhere