Install FFmpeg on RHEL 8
官方的二进制文件部分功能不兼容, 可能会出现 Segmentation fault (core dumped) 的错误.
解决办法: 需要安装其它第三方编译的版本
sudo dnf install -y epel-release dnf-utils
tee /etc/yum.repos.d/almalinux-powertools.repo >/dev/null <<'EOF'
[powertools]
name=AlmaLinux $releasever - PowerTools
#mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/powertools
baseurl=http://mirrors.cloud.aliyuncs.com/almalinux/$releasever/PowerTools/$basearch/os/
enabled=1
gpgcheck=1
countme=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux
EOF
sudo yum-config-manager --enable powertools
sudo dnf install -y --nogpgcheck https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm
sudo dnf install -y --nogpgcheck https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm
sudo dnf install -y ffmpeg