centos 5.x 上安装 FFmpeg, Mplayer, Mencoder, flvtool
首先做下准备工作:
yum update
yum upgrade
一. 安装所需程序库的RPM包到 centos 5.x
rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
二. 安装 Install ffmpeg, mplayer, mencoder 等模块
yum -y install ffmpeg ffmpeg-devel mplayer mencoder flvtool2
三. 安装 Lame
cd /usr/local/src
wget http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz
tar zxvf lame-3.97.tar.gz
cd /usr/local/src/lame-3.97
./configure
make && make install
四. 安装 FFMPEG-PHP
cd /usr/local/src
wget http://garr.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.6.0.tbz2
tar jxvf ffmpeg-php-0.6.0.tbz2
cd ffmpeg-php-0.6.0
phpize
./configure
make
make install
然后修改php.ini文件
vi /etc/php.ini
在php.ini文件加上这句
extension=ffmpeg.so
然后重新启动apache
/etc/init.d/httpd restart
运行
php -m | grep ffmpeg
至此,安装完成,比源码包安装要方便多了。
捐赠本站(Donate)
如您感觉文章有用,可扫码捐赠本站!(If the article useful, you can scan the QR code to donate))
- Author: shisekong
- Link: https://blog.361way.com/ffmpeg/216.html
- License: This work is under a 知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议. Kindly fulfill the requirements of the aforementioned License when adapting or creating a derivative of this work.