less than 1 minute read

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/bin

Inside the /usr/local/bin directory, create an “ffmpeg” directory

$ mkdir ffmpeg

Go into the new directory

$ cd ffmpeg

Go 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.xz

The file should now be in /usr/local/bin/ffmpeg. Untar it…

$ tar -xf ffmpeg-release-amd64-static.tar.xz

Move 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/ffmpeg

Now, you should be able to run the command “ffmpeg” from anywhere

Reference

Updated: