Simple FFMPEG-PHP Install in centa os

Status
Not open for further replies.

rahulkv

Banned
Banned
52
2012
0
0
Use this you can install ffmpeg on centa os
# wget http://downloads.sourceforge.net/project/ffmpeg-php/ffmpeg-php/0.5.3.1/ffmpeg-php-0.5.3.1.tbz2
# bunzip2 -d ffmpeg-php-0.5.3.1.tbz2
# tar -xvf ffmpeg-php-0.5.3.1.tar
# cd ffmpeg-php-0.5.3.1
# phpize
# ./configure
# make
# make install

Open ‘/etc/php.ini’ and add a line ‘extension=ffmpeg.so’ in the category ‘Dynamic Extensions’.

When I installed, I got the following error:

error: /usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function ‘zif_ffmpeg_frame_ffmpeg_frame’: /usr/src/ffmpeg-php-0.6.0/ffmpeg_frame.c:421: error: ‘PIX_FMT_RGBA32′ undeclared (first use in this function)

Simple fix:

With the latest version of ffmpeg-php (0.6.0), update ffmpeg_frame.c and replace every instance of PIX_FMT_RGBA32 with PIX_FMT_RGB32
vi ffmpeg_frame.c
:%s/PIX_FMT_RGBA32/PIX_FMT_RGB32
:w
:q!
./configure make && make install and then add extension=â€ffmpeg.so†inside php.ini as mentioned above.
 
Status
Not open for further replies.
Back
Top