Installing ffmpeg on cPanel server.

Exact steps:

1. rpm -Uhv

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


tar xjf ffmpeg-php-0.6.0.tbz2
cd ffmpeg-php-0.6.0
./configure --prefix=/usr --enable-shared
make install
make entry '' 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
 vi ffmpeg_frame.c

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