安装php扩展 ffmpeg-php
环境: CentOS 6.5 PHP5.6 安装前php 已加载GD 模块(yum install php-gd)1、添加ffmpeg和ffmpeg-devel源 cat > /etc/yum.repos.d/dag.repo <<EOF [dag] name=Dag RPM Repository for Red Hat Enterprise Linux baseurl=http://www.mirrorservice.org/sites/apt.sw.be/redhat/el$releasever/en/$basearch/dag gpgcheck=1 enabled=1 EOF 导入签名认证 rpm --import http://www.mirrorservice.org/sites/apt.sw.be/RPM-GPG-KEY.dag.txt rpm -ivh http://www.mirrorservice.org/sites/apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm 2、安装ffmpeg yum install ffmpeg ffmpeg-devel #ffmpeg -version FFmpeg version 0.6.5,