Centos 7/8 安装FFMpeg

Scroll Down
  • Centos 7
# 启用EPEL
yum install epel-release

# 启用RPM Fusion存储库
yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm

# install FFmpeg
yum install ffmpeg ffmpeg-devel

# Verify
ffmpeg -version
  • Centos 8
# 启用 EPEL 
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

# 启用 RPM Fusion
yum install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm

# 安装 SDL2, 仓库中不包含此依赖库,单独安装
yum install http://rpmfind.net/linux/epel/7/x86_64/Packages/s/SDL2-2.0.10-1.el7.x86_64.rpm

# install FFmpeg
yum install ffmpeg ffmpeg-devel

# Verify
ffmpeg -version