About FFmpeg:-
The FFmpeg is a complete solution to record, convert, edit and stream audio and video. It is a command-line video software for Windows, Mac, and Linux. It supports converting between most video and audio formats. The ffmpeg reads from an arbitrary number of input “files” (which can be regular files, pipes, network streams, grabbing devices, etc.), Multiplex(join) and demultiplex(split) video and audio tracks from all video formats. Edit(cut,join) all video formats. Advanced video and audio filters. The below-provided shell script will help us to install a static binary of any ffmpeg version onto your Linux server. If you want to compile from a source, there are several ways to do so. Here’s the compilation guide. Tested and works on an AWS EC2 Ubuntu and Centos instance, but should work on any Linux server.
Utilization:-
1. SSH to your server and download the script
# wget https://github.com/SSS015/muniments/archive/master.zip
2. Extract zip file and type “cd” command go to “muniments-master” directory
# unzip master.zip # cd muniments-master
3. To unpack a tar file using below command.
# tar -xvf file.tar
4. Execute the bash script
# bash install.sh
5. After complete the installtion and run it below command and check what the latest version is
# ffmpeg -version
The output should look something like this:-
“which” commands searches the ffmpeg path of executable in system paths set in $PATH

Done:- You are now able to run the #ffmpeg command from anywhere on the server.
If any server using CloudLinux, we need to enable additional commands to cageFS users in CloudLinux. The following steps how to add #ffmpeg command to CageFS users in CloudLinux server.
Steps:-
1. Login to server as root using SSH
2. Open the file /etc/cagefs/conf.d/binutils.cfg in vi editor
# vi /etc/cagefs/conf.d/binutils.cfg
3. Add the path of the commands in the line starts with “paths=”.
like this
paths=/usr/bin/ffmpeg, /usr/bin/ffprobe, /usr/bin/qt-faststart, /usr/bin/ffserver
You can get the path of a command using the below command
Syntax: which {command-name}
Add the command paths in the file. We can add multiple file paths separated by commas
4. Save the file and run the following cagefs command to apply the change on the server
>> If there is any bug or suggestion to improve this script, feel free to mail me at manivannan.s[ at ]assistanz.com