How To Install FFmpeg on CentOS 7

Install FFmpeg on CentOS 7

In this tutorial, we will show you how to install FFmpeg on CentOS 7. For those of you who didn’t know, FFmpeg is a cross-platform solution for streaming audio and video as well as recording and conversion. There’s also a great PHP package called ffmpeg-php that allows for easy use of FFmpeg from inside PHP scripts. In this tutorial, i will show you the easy way to install ffmpeg and ffmpeg-php (php extension).

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation FFmpeg on a CentOS 7 server.

Install FFmpeg on CentOS 7

Step 1. First, let’s start by ensuring your system is up-to-date.

Step 2. Installing the Nux repository.

After enabling Epel repo, go ahead and install Nux Desktop repository:

Step 3. Installing FFmpeg and FFmpeg development packages on CentOS 7.

Install ffmpeg and ffmpeg -devel packages:

To check for a installed ffmpeg version run:

This should result in something very similar to the following output:

If you want to learn more about FFmpeg, input:

Congratulations! You have successfully installed FFmpeg. Thanks for using this tutorial for installing FFmpeg in CentOS 7 system. For additional help or useful information, we recommend you to check the official FFmpeg website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!