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 http://biznetnetworks.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.6.0.tbz2
# 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 ffmpeg.so 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.
extension=ffmpeg.so
Restart apache & you are done.
You can install ffmpeg on our Linux VPS hosting and Linux Dedicated Servers. If you face any error OR issue, feel free to initiate a chat.