此文章所做的操作參考
漏網的魚:參考鏈接
步驟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.
因在實操中使用了大多教程,大同小異。最大的坑則是下載速度較慢,其他的都是小問題,如遇到一些小問題還是問一下度娘我就不再次搬運了,寫此文檔也是記錄一下自己的實操。
