assistanz
Assistanz

Install FFmpeg via CLI(Command Line Interface) on linux server

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:-

Install FFmpeg

 

“which” commands searches the ffmpeg path of executable in system paths set in $PATH

Insta FFmpeg
Insta FFmpeg

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

DirectAdmin Server Management Plans

Premium Support

24/7 End User Support from your Helpdesk
$ 99 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Emergency Phone
  • Chat Support for Admin
  • Separate Account Manager
  • NDA & SLA
  • SLA Review Meetings
  • FREE Consultancy Services
  • Simple SignUp Process
  • Instant Account Activation
  •  

Platinum Support

24/7 Proactive Support
$ 49 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Emergency Phone
  • Chat Support for Admin
  • Separate Account Manager
  • Advance Proactive Monitoring
  • Guaranteed SLA
  • SLA Review Meetings
  • 3rd Party Application Support
  • FREE Consultancy Services
  • Server Migration Support
  • Weekly Status Report
  • No End User Support
Popular

Unlimited Support

24/7 Support

$ 30 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Support
  • Basic Monitoring
  • 30 Minutes Response Time
  • 4 Hours Resolution time for the Possible Issues
  • Security and Performance Optimization
  • React to Customers queries
  • Simple SignUp Process
  • Instant Account Activation
  • No Third party application support
  • No Migration and End User Support

Cpanel Server Management Plans

Premium Support

24/7 End User Support from your Helpdesk

$ 99 Monthly / Server
  • 24/7 End User White Label Support
  • Unlimited Number of Tickets
  • Chat Support for Admin
  • Separate Account Manager
  • Guaranteed SLA
  • Weekly Status Reports
  • FREE Consultancy Services
  • Simple SignUp Process
  • Instant Account Activation

Platinum Support

24/7 Proactive Server Management
$ 49 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Emergency Phone
  • Chat Support for Admin
  • Separate Account Manager
  • Advance Proactive Monitoring
  • Guaranteed SLA
  • SLA Review Meetings
  • 3rd Party Application Support
  • FREE Consultancy Services
  • Server Migration Support
  • Weekly Status Report
  • No End User Support
Popular

Unlimited Support

24/7 Server Management

$ 29 Monthly / Server
  • Unlimited Admin Tasks
  • 24/7 Support
  • Basic Monitoring
  • 30 Minutes Response time
  • 4 hours Response time for possible issues
  • Security and Performance Optimization
  • React to Customers queries
  • No Third party application support
  • No Migration and End User Support

Cpanel Server Management Plans

Premium Support

24/7 End User Support from your Helpdesk

$ 99 Monthly / Server
  • 24/7 End User White Label Support
  • Unlimited Number of Tickets
  • Chat Support for Admin
  • Separate Account Manager
  • Guaranteed SLA
  • Weekly Status Reports
  • FREE Consultancy Services
  • Simple SignUp Process
  • Instant Account Activation

Platinum Support

24/7 Proactive Server Management
$ 49 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Emergency Phone
  • Chat Support for Admin
  • Separate Account Manager
  • Advance Proactive Monitoring
  • Guaranteed SLA
  • SLA Review Meetings
  • 3rd Party Application Support
  • FREE Consultancy Services
  • Server Migration Support
  • Weekly Status Report
  • No End User Support
Popular

Unlimited Support

24/7 Server Management

$ 29 Monthly / Server
  • Unlimited Admin Tasks
  • 24/7 Support
  • Basic Monitoring
  • 30 Minutes Response time
  • 4 hours Response time for possible issues
  • Security and Performance Optimization
  • React to Customers queries
  • No Third party application support
  • No Migration and End User Support