As we all know, ffmpeg is a video stream software. we can install ffmpeg in linux. This article mainly introduces how to install ffmpeg extension in PHP5.3 under Centos6.5, for more information, see. As we all know, ffmpeg is a video stream software. we can install ffmpeg in linux. This article mainly introduces how to install ffmpeg extension in PHP 6.5 in Centos 5.3, for more information, see.
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 # 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
:#
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 a detailed explanation of how to install ffmpeg extension in PHP 6.5 in Centos 5.3. For more information, see PHP Chinese network (www.php1.cn )!