mounting ffmpeg - php on centos

With the aid of this guide, I am attempting to install ffmpeg making use of these commands:

 # cd ffmpeg-php/branches/ffmpeg-php/ffmpeg-php-0.6.1/
 # replace 'PIX_FMT_RGBA32' 'PIX_FMT_RGB32' -- *
 # phpize 
 # ./configure --with-ffmpeg=/usr/local/cpffmpeg
 # make 
 # make install

But when I run this replace 'PIX_FMT_RGBA32' 'PIX_FMT_RGB32' -- * I get this mistake:

change : Error analysis documents 'autom4te.cache' (Errcode : 21) change : Error analysis documents 'construct' (Errcode : 21) ffmpeg_frame. c transformed change: Error analysis documents 'include' (Errcode : 21) change : Error analysis documents 'components' (Errcode : 21) change : Error analysis documents 'examinations' (Errcode : 21)

And when I run make and also miss that line I get:

/root/ffmpeg-php/branches/ffmpeg-php/ffmpeg-php-0.6.1/ffmpeg-php.c:171: error: expected '{' at end of input
make: *** [ffmpeg-php.lo] Error 1

Any suggestions?

0
2019-05-13 03:30:17
Source Share
Answers: 3

Probably, you would certainly require to modify the just one documents i.e. ffmpeg_frame. c

replace 'PIX_FMT_RGBA32' 'PIX_FMT_RGB32' -- ffmpeg_frame.c
./configure
make
make install

This need to install ffmpeg - php on the web server - you will certainly require to add the ffmpeg.so documents to your php.ini submit like:

extension=ffmpeg.so

Restart Apache on the web server once the expansion is included.

0
2019-05-30 10:05:12
Source

Can't you make use of yum?

On Ubuntu doing aptitude install php5-ffmpeg appears to instantly install ffmpeg and also all it is dependences. Probably the same package is available for CentOS?

0
2019-05-19 14:35:23
Source

The mistakes from replace are safe, it is simply informing you (cryptically) that these files are directory sites and also it can not act upon them.

Yet you do require to run phpize and also ./configure … prior to you can run make.

0
2019-05-17 16:36:32
Source