Cloud Linux FFMPEG installation : how to install ffmpeg in cloud linux

FFMPEG is not included in cPanel. It's a 3rd party service. So we don't provide support for it. Please note that we are only your license provider, not your server managers. Anyway you can install FFMPEG using the following instruction. But please note that you should use this instruction on your own risk. We don't take any responsibility if it doesn't work:

Cloud Linux FFMPEG  installation : how to install ffmpeg in cloud linux

FFMPEG is not included in cPanel. It's a 3rd party service. So we don't provide support for it.
Please note that we are only your license provider, not your server managers.
Anyway, you can install FFMPEG using the following instruction. But please note that you should use this instruction on your own risk. We don't take any responsibility if it doesn't work:

RUN THESE COMMANDS AS ROOT
Install epel-release

yum install epel-release -y

Update the OS

yum update -y

Reboot the server

shutdown -r now

Run the following commands

rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm

Install FFMPEG

yum install ffmpeg ffmpeg-devel -y

Run one of the following commands to make sure it's installed successfully

rpm -qa | grep ffmpeg
or
ffmpeg

Run the following commands to compile it with cPanel

cd
yum install git -y
git clone https://github.com/tony2001/ffmpeg-php.git
cd ffmpeg-php

Make FFMPEG on the server (We assume that you are using PHP 7.2)

/opt/cpanel/ea-php72/root/usr/bin/phpize
./configure --with-php-config=/opt/cpanel/ea-php72/root/usr/bin/php-config
make
make install

Note: If you get any error like this-->(configure: error: ffmpeg headers not found. Make sure ffmpeg is compiled as shared libraries using the --enable-shared option)

Use This command: and retry above command

cp -r /usr/include/ffmpeg/* /usr/include/ 

Add the following line to your php.ini file

extension=ffmpeg.so

Reboot webserver

service httpd restart

It must be installed now.

Now run the command 

ffmpeg
or
ffmpeg -version

Output must be similar to the below snapshot

ffmpeg cloudlinux

So now to upgrade the FFmpeg version Follow the below command

Instructions:

Open the terminal. Clone the repository:

git clone https://github.com/Sinhcoms-LLP/ffmpeg-install-cln.git

Change directory:

cd ffmpeg-install

Copy the script to $PATH (as root):

cp -rf ffmpeg-install /usr/bin/

Change the permissions (as root):

chmod +x /usr/bin/ffmpeg-install

Note: The script is compatible with all GNU/Linux distributions.

ffmpeg installation in cloudlinux

  • Commands to install / Update:

    •  ffmpeg-install --install (Latest git version)
    •  ffmpeg-install --install release (Latest stable version)
  • Commands to update:

    •  ffmpeg-install --update (Latest git version)
    •  ffmpeg-install --update release (Latest stable version)
  • Command to uninstall:

    •  ffmpeg-install --uninstall
  • Show help:

    •  ffmpeg-install --help

The fastest way to install

Step 1:

wget https://raw.githubusercontent.com/Sinhcoms-LLP/ffmpeg-install-cln/master/ffmpeg-install

Step 2:

chmod a+x ffmpeg-install

Step 3:

./ffmpeg-install --install release

For this tutorial We are updating the FFmpeg in release stable version:  4.3.0

                     

and the final 

                   

If you face any problem while the process contact us we will there to help you..

What's Your Reaction?

like
0
dislike
0
love
0
funny
0
angry
0
sad
0
wow
0