How to install ffmpeg extension in PHP 6.5 in Centos 5.3
The content of this article is mainly to solve the problem of installing ffmpeg extension in PHP5.3 under Centos6.5. Let's not talk about it below. Let's take a look at the detailed steps.
The installation procedure is as follows:
Install required environment yasm
wget http://www.tortall.net/projects/yasm/releases/yasm-0.7.0.tar.gz tar zxvf yasm-0.7.0.tar.gz cd yasm-0.7.0 ./configure make && make install
Install ffmpeg
svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg cd ffmpeg ./configure --enable-shared make make install
Install ffmpeg-php
: Http://ffmpeg-php.sourceforge.net/
tar jxvf ffmpeg-php-0.6.0.tbz2 cd ffmpeg-php-0.6.0 /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config
Important: troubleshooting !!!
Vi ffmpeg_frame.c: % s/PIX_FMT_RGBA32/PIX_FMT_RGB32 # Replace PIX_FMT_RGBA32 with/PIX_FMT_RGB32 make & make installvi/usr/local/php/etc/php. ini added: extension = ffmpeg. soservice httpd restart # restart apache to take effect
Summary
The above is all about this article. I hope this article will help you in your study or work. If you have any questions, please leave a message.