This is Our Old blog with useful tutorials, We'll start posting tutorial In forum soon, please use this forum as blog is discontinued but will not been taken down Link to Forum
CentosControl PanelCWPHestia CPLinuxUbuntuVesta CP

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

In this tutorial we’ll install latest version of FFmpeg 5.0 “Lorentz” 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/11

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 mv /usr/bin/qt-faststart /usr/bin/qt-faststart.bak mv /usr/local/bin/qt-faststart /usr/local/bin/qt-faststart.bak

Download Latest version of FFMPEG :

cd /usr/local
rm -rf  ffmpeg
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/qt-faststart /usr/local/bin/qt-faststart ln -s /usr/local/ffmpeg/ffmpeg /usr/bin/ffmpeg ln -s /usr/local/ffmpeg/ffprobe /usr/bin/ffprobe
ln -s /usr/local/ffmpeg/qt-faststart /usr/bin/qt-faststart

Change the permission for the files :

chmod 755 /usr/local/ffmpeg/ffmpeg
chmod 755 /usr/local/ffmpeg/ffprobe
chmod 755 /usr/local/ffmpeg/qt-faststart

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

FFMPEG path :


FFPROBE path :


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

ffmpeg version 5.1.1-static  Copyright (c) 2000-2022 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      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Sandeep B.

I'm a system admin and php developer and currently working as System Admin In CWP Control panel, expertise in Linux and Windows administration RHEL certified admin.

Related Articles

Back to top button