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 Linux baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag gpgcheck=1 gpgkey=http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt enabled=1 protect=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
参考文章:https://stavrovski.net/blog/install-ffmpeg-and-ffmpeg-php-in-centos-6-with-virtualmin
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。