繁体中文
设为首页
加入收藏
当前位置:网络编程首页 >> php >> 如何使PHP支持ffmpeg(ffmpeg-php模块的安装)

如何使PHP支持ffmpeg(ffmpeg-php模块的安装)

2008-03-26 10:09:51  作者:  来源:互联网  浏览次数:35  文字大小:【】【】【
简介:下载ffmpeg安装包地址: http://ffmpeg.mplayerhq.hu/download.html使用该命令下载ffmpeg: svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg./configure --enable-share --prefix=/usrmake clean && ma ...
下载ffmpeg安装包地址: http://ffmpeg.mplayerhq.hu/download.html

使用该命令下载ffmpeg: svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg

./configure --enable-share --prefix=/usr

make clean && make && make install

下载ffmpeg-php安装包地址: http://ffmpeg-php.sourceforge.net/

tar -xvf ffmpeg-php-0.4.9.tar

mv ffmpeg-php-0.4.9 php-4.3.6/ext/ffmpeg

cd php-4.3.6/ext/ffmpeg

phpize

cd /opt/software/php-4.3.6

rm configure

./buildconf –force

第二次编译php,让它支持ffmpeg-php

./configure --with-png-dir=/usr --with-gd --enable-gd-native-ttf --with-ttf --with-freetype --without-gdbm --with-gettext --with-ncurses --with-gmp --with-iconv --with-jpeg-dir=/usr --with-png --enable-ftp --enable-sockets -with-xml --with-dom --with-zlib --enable-track-vars --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs --with-ffmpeg=/user/local/include

make && make install

红字为需要注意的地方,路径或参数不同会造成无法加载ffmpeg.so的错误.
错误提示如:


Warning: dl(): Not supported in multithreaded Web servers - use extension statements in your php.ini

红字为需要注意的地方,路径或参数不同会造成无法加载ffmpeg.so的错误.
错误提示如:
Warning: dl(): Not supported in multithreaded Web servers - use extension statements in your php.ini

责任编辑:探索者


相关文章
 

最新文章

更多

· php教程:mysql的常用语句
· PHP教程:cookie和数组的...
· PHP创建windows服务并自...
· PHP技巧教程:setcookie...
· 可以在读者复制网页内容...
· 高亮显示php代码
· PHP加速器 eaccelerator...
· ffmpeg+mencoder环境搭建...
· ffmpeg的编译大全
· Ffmpeg使用语法

推荐文章

更多

· php教程:mysql的常用语句
· PHP教程:cookie和数组的...
· PHP创建windows服务并自...
· PHP技巧教程:setcookie...
· 可以在读者复制网页内容...
· 高亮显示php代码
· PHP加速器 eaccelerator...
· ffmpeg+mencoder环境搭建...
· ffmpeg的编译大全
· Ffmpeg使用语法

热点文章

更多