اعضا > مرکز آموزش > آموزش ها و تفاوت سرورها > آموزش نصب FFmpeg, Mplayer, Mencoder, FFmpeg-PHP روی centos 5.x

آموزش نصب FFmpeg, Mplayer, Mencoder, FFmpeg-PHP روی centos 5.x

با سلام

براتون آموزش کامل نصب  رو قرار میدم امیدوارم استفاده لازم رو ببرید

1 Setting Up RPMForge Respository.

For i386/i686

rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

For x86_64

rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm


2 Install ffmpeg, mplayer, mencoder with all supported modules.

yum -y install ffmpeg ffmpeg-devel mplayer mencoder flvtool2


3 Install FFMPEG-PHP

cd /usr/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


It will copy the ffmpeg.so module in php default module location. Now you have to edit php.ini file to enable ffmpeg-php support in it by using ffmpeg.so module.

vi /etc/php.ini

and append following line

extension=ffmpeg.so

Restart apache service to take effect of php.ini

/etc/init.d/httpd restart

Run following command to ffmpeg module listing in php.

php -m | grep ffmpeg

Have a nice streaming

منبع: http://www.sohailriaz.com

در همین زمینه