Installing ffmpeg on cPanel server.

Exact steps:

1. rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

2. Installing ffmpeg and related dependencies 

yum install ffmpeg ffmpeg-devel
yum install libogg.i386 libogg-devel.i386
yum install libvorbis.i386 libvorbis-devel.i386

3. Installing ffmpg-php

cd /usr/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 --prefix=/usr --enable-shared
make
make install
---------
make entry 'extension=ffmpeg.so' to php.ini

4. Installing mplayer and mencoder

yum install mplayer mencoder


Common errors:

during 'make' step, if you get the error "error: 'PIX_FMT_RGBA32' undeclared (first use in this function)", 
then run following command in ffmpeg-php source directory and run 'make' command again:


sed -i 's/PIX_FMT_RGBA32/PIX_FMT_RGB32/g' ffmpeg_frame.c
 OR
 vi ffmpeg_frame.c
 :%s/PIX_FMT_RGBA32/PIX_FMT_RGB32
:wq





Installing ffmpeg on cPanel server.
Tagged on:

Leave a Reply

Your email address will not be published. Required fields are marked *

Fork me on GitHub