#yum Groupinstall "Development tools" #cd/etc/yum.repos.d/#cp-PRV. /yum.repos.d{,.orig} #vim dag.repo#cat Dag.repo [Dag]name=dag RPM Repository for Red Hat Enterprise LINUXBA seurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/daggpgcheck=1gpgkey=http://dag.wieers.com/packages/ Rpm-gpg-key.dag.txtenabled=1protect=0#wget Http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt-P/tmp#rpm--import /tmp/rpm-gpg-key.dag.txt#yum Repolist#yum Install ffmpeg-devel re2c ffmpeg#cd/usr/local/src/#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 #./configure#sed-i ' s#pix_fmt_rgba32#pix_fmt_rgb32# './ffmpeg_ Frame.c#sed-i ' 311,360s/list_entry/zend_rsrc_list_entry/'./ffmpeg_movie.c#make && make Install#echo-e " extension=ffmpeg.so\n ">/etc/php.d/ffmpeg.ini#apache-k restart#php-m|grep ffmpeg
Reference article:https://stavrovski.net/blog/install-ffmpeg-and-ffmpeg-php-in-centos-6-with-virtualmin