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
  • 2019-06-24 06:22:10

    Android RecyclerView嵌套的滑动冲突问题

    这是一个简单的recyclerView嵌套recyclerView的demo, 很明显,子布局应该也是可以滑动的才对,但你滑动子布局却是父布局在滑动 这就是滑动冲突

  • 2019-07-02 21:55:47

    Nginx出现500 Internal Server Error 错误的解决方案

    Nginx 500错误(Internal Server Error 内部服务器错误):500错误指的是服务器内部错误,也就是服务器遇到意外情况,而无法履行请求。 在高并发连接的情况下,Nginx是Apache服务器不错的替代品。Nginx同时也可以作为7层负载均衡服务器来使用。根据测试结果,Nginx 0.6.31 + PHP 5.2.6 (FastCGI) 可以承受3万以上的并发连接数,相当于同等环境下Apache的10倍。