How to Install FFMPEG in CentOS

Websites have graduated far beyond simple text-based one-page documents. Most include all sorts of multimedia, from videos to full animated applications. Many small website owners may rely on cloud service providers for their music and video streaming, but if you ever need to host your own media content, you will probably need a program that can handle media conversion and streaming. FFMPEG does this very well.

Your frontend web application will likely give no indication about the complex media encoding going on underneath, but FFMPEG will handle a lot of the heavy lifting. On CentOS, you can easily install FFMPEG and get it up and running in just a few minutes.

First, it is important to note that you will only be able to do this with your own dedicated server or VPS, as you will need root access. Just follow these instructions:

1. Edit the YUM repository file, /etc/yum.repos.d/CentOS-Base.repo, and add the following lines:

[dag]
name=Dag RPM Repository for Centos
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
enabled=1

2. Save the file and exit your text editor

3. Run this command as root:

yum install ffmpeg

That is all there is to it. In some situations, the version supplied in the Dag repository may not support the codec you need or may be too outdated. In that case, you can always build FFMPEG from source. You may also want to install other features, like the PHP extension, useful for scripts and web applications that need access to FFMPEG.











Comments: