Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

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
Now, open a browser and go to the list
of FFMPEG static builds
at https://johnvansickle.com/ffmpeg/and
pick the latest version.

While inside the /usr/local/bin/ffmpeg


directory, type the following command to
download the static build you have
selected
wget
https://johnvansickle.com/ffmpeg
/builds/ffmpeg-git-amd64-
static.tar.xz
Now, untar it...
tar -xf ffmpeg-git-amd64-
static.tar.xz
Run it and check what the latest version
is
cd ffmpeg-git-20190807-amd64-
static/
./ffmpeg -version
The output should look something like
this
ffmpeg version N-60675-g8fe1076
built on Feb 16 2014 05:45:47
with gcc 4.6 (Debian 4.6.3-1)
configuration: --
prefix=/root/ffmpeg-static/64bit
--extra-cflags='-I/root/ffmpeg-
static/64bit/include -static' --
extra-ldflags='-L/root/ffmpeg-
static/64bit/lib -static' --
extra-libs='-lxml2 -lexpat -
lfreetype' --enable-static --
disable-shared --disable-
ffserver --
disable-doc --enable-bzlib --
enable-zlib --enable-postproc --
enable-runtime-cpudetect --
enable-libx264 --enable-gpl --
enable-libtheora --enable-
libvorbis --enable-libmp3lame --
enable-gray --enable-libass --
enable-libfreetype --enable-
libopenjpeg --enable-libspeex --
enable-libvo-aacenc --enable-
libvo-amrwbenc --enable-version3
--enable-libvpx
libavutil 52. 64.100 / 52.
64.100
libavcodec 55. 52.102 / 55.
52.102
libavformat 55. 32.101 / 55.
32.101
libavdevice 55. 9.101 / 55.
9.101
libavfilter 4. 1.102 / 4. 1.102
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0.
17.104
libpostproc 52. 3.100 / 52.
3.100
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-
git-20190807-amd64-static/ffmpeg
/usr/bin/ffmpeg
The first part
(/usr/local/bin/ffmpeg/ffmpeg) is where
the file is located after I untarred the file.
The second part (/usr/bin/ffmpeg) is
where we want the symlink to go
Now, you should be able to run the
command "ffmpeg" from anywhere

You might also like