在CentOS7中安装ffmpeg
由于CentOS自带的yum库不包含ffmpeg软件包,因此借助第三方YUM源下载ffmpeg
1.升级yum
sudo yum install epel-release -y
sudo yum update -y
2.安装Nux Dextop Yum 源
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-5.el7.nux.noarch.rpm
3.安装FFmpeg 和 FFmpeg开发包
sudo yum install ffmpeg ffmpeg-devel -y
4.测试是否安装成功
ffmpeg
出现
[root@VM-0-14-centos server]$ ffmpeg
ffmpeg version 2.8.15 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-36)
即可