Linux实战(13):Centos8安装FFmpeg

此文章所做的操作参考漏网的鱼参考链接

步骤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.

因在实操中使用了大多教程,大同小异。最大的坑则是下载速度较慢,其他的都是小问题,如遇到一些小问题还是问一下度娘我就不再次搬运了,写此文档也是记录一下自己的实操。

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值