آموزش نصب 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

آیا این پاسخ مفید بود؟

 چاپ این مقاله

خوانده شده

ارور HTTP Error 500.21 - Internal Server Error در websitepanel

با سلام خدمت کاربران الماس هاستینگ چنانچه هنگام استفاده از websitepanel با ارور HTTP Error...

یافتن پوشه های 777 با SSH

برای یافتن فایل های 777 بر روی سرور از دستور زیر استفاده کنید. find adress -perm 777 و برای...

راهنمای گرفتن فول بکاپ ( خودکار – هر شب ) از وبسایت + انتقال آن به میزبانی دیگر

با کمک این راهنما میتوانید هر شب از وبسایتتان فول بکاپ گرفته آن را به میزبانی دیگر ( FTP ) انتقال...

FTP & OpenVZ & CSF-Error: Connection timed out

حل مشکل Error: Connection timed outError: Failed to retrieve directory listing __ اول فایل...

حل مشکل Nginx ارور Restarting nginx daemon: nginxRemaining processes: 9589

برای حل حل ارور زیر در Nginx میباید به طریق زیر عمل کنید: متن ارور: Restarting nginx...