此文章所做的操作参考
漏网的鱼
:参考链接
步骤1:安装RPMfusion Yum存储库
RHEL或兼容发行版(如CentOS)上启用EPEL。
dnf -y install https://download.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm
dnf install --nogpgcheck https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm
步骤2:安装FFmpeg
dnf install http://rpmfind.net/linux/epel/7/x86_64/Packages/s/SDL2-2.0.10-1.el7.x86_64.rpm
dnf install -y ffmpeg
注意
:安装过程中会安装很多依赖,而且***特别的慢,特别有一个包慢就算了还下着下着就失败了。安装特别慢的一个包我会附上离线包,离线包下载地址
离线安装rpm包命令:
rpm -ivh cuda-npp-10.2.89-2.el8.x86_64.rpm
开发库安装
dnf -y install ffmpeg-devel
步骤3:检查
[root@xuzhiguo ~]# rpm -qi ffmpeg
Name : ffmpeg
Epoch : 1
Version : 4.2.2
Release : 5.el8
Architecture: x86_64
Install Date: Sun 26 Apr 2020 03:59:45 PM CST
Group : Unspecified
Size : 2191356
License : LGPLv3+
Signature : DSA/SHA1, Sat 28 Mar 2020 05:07:19 AM CST, Key ID 14386362f90c0e97
Source RPM : ffmpeg-4.2.2-5.el8.src.rpm
Build Date : Sat 28 Mar 2020 03:31:14 AM CST
Build Host : localhost.localdomain
Relocations : (not relocatable)
URL : http://ffmpeg.org/
Summary : A complete solution to record, convert and stream audio and video
Description :
FFmpeg is a complete and free Internet live audio and video
broadcasting solution for Linux/Unix. It also includes a digital
VCR. It can encode in real time in many formats including MPEG1 audio
and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash.
因在实操中使用了大多教程,大同小异。最大的坑则是***较慢,其他的都是小问题,如遇到一些小问题还是问一下度娘我就不再次搬运了,写此文档也是记录一下自己的实操。