码迷,mamicode.com
首页 > 其他好文 > 详细

centos yum安装ffmpeg

时间:2017-04-25 10:10:05      阅读:178      评论:0      收藏:0      [点我收藏+]

标签:centos7   配置   信息   rar   gpg   扩展   --   音频转换   pen   

一、安装前都需要先安装epel扩展源

yum -y install epel-release

二、对于6,安装yum源之后直接安装即可:

su -c ‘yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-6.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-6.noarch.rpm‘

yum -y install ffmpeg ffmpeg-devel

三、在centos7中安装如下:

su -c ‘yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-7.noarch.rpm‘

rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm

yum -y install ffmpeg ffmpeg-devel

 

ps:在php中执行音频转换时,如果报错,报错信息如:

ffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object file: No such file or directory

则需要在配置文件中增加:(配置文件为:/etc/ld.so.conf)

/usr/lib
/usr/local/lib

即可

centos yum安装ffmpeg

标签:centos7   配置   信息   rar   gpg   扩展   --   音频转换   pen   

原文地址:http://www.cnblogs.com/tm2015/p/6760150.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!