Knowledge Base
MilesWeb / Dedicated Server FAQ

Easy Steps To Install FFMPEG On Linux Server

Approx. read time : 2 min

FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. It includes libavcodec – the leading audio/video codec library.

This tutorial will help you to install ffmpeg on your Linux VPS OR Linux Dedicated Server.

Before starting the installation, please update the yum repositories on your server.
Once the repositories are updated, follow the steps below to install ffmpeg.

# yum install ffmpeg ffmpeg-devel php-devel mplayer -y

It will install all the required rpm’s and required dependencies.

It’s time to compile it with php so that you can use it with your php code.

# cd /usr/local/src
# wget
# tar xjf ffmpeg-php-0.6.0.tbz2
# cd ffmpeg-php-0.6.0
# phpize
# ./configure –enable-shared –prefix=/usr
# make
# make install

Now, you will have to include the file in php.ini. You can find server’s php.ini with command

# php -i | grep php.ini

Open the file with your favorite editor and add line below.

Restart apache & you are done.

You can install ffmpeg on our Linux VPS and Linux Dedicated Servers. If you face any error OR issue, feel free to initiate a chat.


With over 10+ years of experience in the web hosting industry, I have achieved extensive exposure to result-oriented methodologies. And expertise in different domains like Datacentre Services, Cloud computing technology, Web hosting industry and many more.