centos7下yum安装ffmpeg

2018-03-07 14:35:32

安装EPEL Release,因为安装需要使用其他的repo源,所以需要EPEL支持 
yum install -y epel-release

如果出现缺少Code提示,可以:

sudo rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

安装完成之后,可以查看是否安装成功

yum repolist 
安装Nux-Dextop源

导入一个Code

sudo rpm –import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro

安装nux-dextop 源

sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm

查看repo源是否安装成功

yum repolist 
yum安装ffmpeg 
yum install -y ffmpeg

安装完成后检查ffmpeg 版本

ffmpeg -version 
为了方便大家实现一键安装,大家可以制作一个bash文件,一键运行即可,大家可以在/tmp目录下 
cd /tmp 
vi install-ffmpeg.sh 
然后把下面的代码都复制到这个文件中 
然后设定文件可执行: 
chmod +x install-ffmpeg.sh 
然后执行 
./install-ffmpeg.sh

############the codes

yum install -y vim 
yum install -y epel-release 
sudo rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 
yum repolist 
sudo rpm –import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro 
sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm 
yum repolist 
yum update -y 
yum install -y ffmpeg 
ffmpeg -version

#########end of the code
  • 2017-11-10 00:06:15

    CORS: credentials mode is 'include'

    XMLHttpRequest cannot load http://localhost/Foo.API/token. The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. Origin 'http://localhost:5000' is therefore not allowed access. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.

  • 2017-11-19 00:17:51

    Java如何获取Date的“昨天”与“明天”示例代码

    最近在做项目的时候用到Date和Calendar比较多,而且用到的方式也比较全,突然想到一个问题,Java如何获取Date的"昨天"与"明天",也就是前一天和后一天呢?思考后写出了方法,想着万一以后用到,就总结出来,也方便有需要的朋友们参考借鉴,下面来一起看看吧。

  • 2017-11-23 02:00:51

    js 分页插件twbs-pagination

    ​cdn地址 http://www.bootcdn.cn/twbs-pagination/ 官网地址 可以在cdn地址上面查看到