Instalam FFMpeg si FFMPEG-PHP Extension pe Centos


yum install ffmpeg ffmpeg-devel

If you get package not found, then you will need to add few lines in the yum repository for dag packages installation. Create a file named dag.repo in /etc/yum.repos.d with the following contents on it

[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1

then

yum install ffmpeg ffmpeg-devel

 daca are probleme cu keia sau ceva de genu asta eu am rezolvata asa:

rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt

astea(http://www.mysql-apache-php.com/ffmpeg-install.htm) zic asa:

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

Install FFMPEG-PHP Extension

 

wget http://downloads.sourceforge.net/project/ffmpeg-php/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2
tar -xjf ffmpeg-php-0.6.0.tbz2
cd ffmpeg-php-0.6.0/

phpize

daca nu e instalat: yum install php-devel

./configure

Daca zice ceva cu no acceptable C compiller PATH bla bla, ii dam asa: yum groupinstall "Development tools"

make

Daca da eroare de genu: "ffmpeg-php-0.6.0/ffmpeg_frame.c:336: error: Б─≤PIX_FMT_RGBA32Б─≥ undeclared (first use in this function)", facem asa:

Fix: With the latest version of ffmpeg-php (0.6.0), update ffmpeg_frame.c and replace every instance of PIX_FMT_RGBA32 with PIX_FMT_RGB32

vi ffmpeg_frame.c

:%s/PIX_FMT_RGBA32/PIX_FMT_RGB32

:w :q!

./configure

make

make install

yum install ffmpeg ffmpeg-devel

Leave a Reply

Your email address will not be published. Required fields are marked *