How to Install Latest FFMPEG 4 in CentOS 8/7 Ubuntu 20.04/18.04 CWP/Cpanel/Plesk/Ispconfig

by Sandeep B.

In this tutorial we’ll install latest version of FFMPEG in Centos server it will work in CWP, Cpanel and ispconfig and other centos supported control panel. I’ve gotten many requests and mails upon how to install ffmpeg and here is the guide.

FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge.

Its pretty simple to Install Latest version of FFMPEG Just follow this steps :

Ensurer you’re running kernel 3.2.x and above. Check kernel version via this command “uname -sr

Supported operating systems :

EL/Centos 7/8

Ubuntu 18.04/20.4

Debian 9/10

and linux running kernel 3.2.x or above

Move/backup currently installed FFMPEG :

mv /usr/local/bin/ffmpeg /usr/local/bin/ffmpeg.bak
mv /usr/local/bin/ffprobe /usr/local/bin/ffprobe.bak
mv /usr/bin/ffmpeg /usr/bin/ffmpeg.bak
mv /usr/bin/ffprobe /usr/bin/ffprobe.bak

Download Latest version of FFMPEG :

cd /usr/local
rm -rf  ffmpeg
wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz
tar xf ffmpeg-release-amd64-static.tar.xz
rm -rf ffmpeg-release-amd64-static.tar.xz
mv ffmpeg-* ffmpeg

Now create symlinks for ffmpeg and ffprobe bin file :

ln -s /usr/local/ffmpeg/ffmpeg /usr/local/bin/ffmpeg
ln -s /usr/local/ffmpeg/ffprobe /usr/local/bin/ffprobe
ln -s /usr/local/ffmpeg/ffmpeg /usr/bin/ffmpeg
ln -s /usr/local/ffmpeg/ffprobe /usr/bin/ffprobe

Change the permission for the files :

chmod 755 /usr/local/ffmpeg/ffmpeg
chmod 755 /usr/local/ffmpeg/ffprobe

Use this FFMPEG and FFPROBE path in your script/application :

FFMPEG path :

/usr/local/bin/ffmpeg

FFPROBE path :

/usr/local/bin/ffprobe

Thats it you can now use FFMPEG and ffprobe Latest version, check version by typing “ffmpeg” :

root@mysterydata# ffmpeg
ffmpeg version 4.3.1-static Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
Hyper fast Audio and Video encoder

If this post helps you in any way please consider a donation

Donate with PayPal :

md-donate

You may also like

Leave a Comment