yumgroupinstall"Developmenttools"cd/etc/yum.repos.d/cp-prv../yum.repos.d{,.orig}vimdag.repocatdag.repo[dag]name=DagRPMRepositoryforRedHatEnterpriseLinuxbaseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/daggpgcheck=1gpgkey=http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txtenabled=1protect=0wgethttp://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt-P/tmprpm--import/tmp/RPM-GPG-KEY.dag.txtyumrepolistyuminstallffmpeg-develre2cffmpegcd/usr/local/src/wgethttp://downloads.sourceforge.net/project/ffmpeg-php/ffmpeg-php/0.6.0/ffmpeg-php-0.6.0.tbz2tar-xjfffmpeg-php-0.6.0.tbz2cdffmpeg-php-0.6.0/phpize./configuresed-i's#PIX_FMT_RGBA32#PIX_FMT_RGB32#'./ffmpeg_frame.csed-i'311,360s/list_entry/zend_rsrc_list_entry/'./ffmpeg_movie.cmake&&makeinstallecho-e"extension=ffmpeg.so\n">/etc/php.d/ffmpeg.iniapache-krestartphp-m|grepffmpeg

参考文章:https://stavrovski.net/blog/install-ffmpeg-and-ffmpeg-php-in-centos-6-with-virtualmin