centos 安装ffmpeg

这个错误表明在你的 CentOS 系统的默认仓库中没有 ffmpeg 包。CentOS 的默认仓库通常不包含 ffmpeg,因为它涉及一些许可证问题。但是,你可以通过添加第三方仓库来安装 ffmpeg。

使用 EPEL 和 RPM Fusion 仓库

bash 复制代码
# 安装 EPEL 仓库
sudo yum install epel-release

# 安装 RPM Fusion 仓库
sudo yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm

# 更新包列表
sudo yum update

# 安装 ffmpeg
sudo yum install ffmpeg ffmpeg-devel

#上面安装完成没有完整安装,按照提醒运行 才完整安装完成
 yum load-transaction /tmp/yum_save_tx.2024-07-11.00-07.DqO5NY.yumtx


错误:

1)直接安装可能没有包:

sudo yum install ffmpeg

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

base: mirrors.aliyun.com

epel: epel.01link.hk

extras: mirrors.ustc.edu.cn

updates: mirrors.aliyun.com

No package ffmpeg available.

Error: Nothing to do

(base) [root@localhost ~]# yum search ffmpeg

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

base: mirrors.aliyun.com

epel: epel.01link.hk

extras: mirrors.ustc.edu.cn

updates: mirrors.aliyun.com

====================================== N/S matched: ffmpeg =======================================

nv-codec-headers.noarch : FFmpeg version of Nvidia Codec SDK headers

Name and summary matches only, use "search all" for everything.

相关推荐
CheungChunChiu16 分钟前
Flutter 在嵌入式开发的策略与生态
linux·flutter·opengl
十五年专注C++开发27 分钟前
CMake基础: 在release模式下生成调试信息的方法
linux·c++·windows·cmake·跨平台构建
不会代码的小猴30 分钟前
Linux环境编程第三天笔记
linux·笔记
~光~~36 分钟前
【嵌入式linux学习】04_Pinctrl 和 GPIO子系统
linux·rk3588·嵌入式linux
475.351 小时前
linux-journal日志清理
linux·运维·服务器
weixin_438732101 小时前
ChromeDriver谷歌驱动下载
linux·chrome·selenium·自动化·mac·chrome devtools·chromedriver
Black__Jacket1 小时前
Ubuntu下,/dev下,无法读取到CH340串口芯片的端口号
linux·运维·ubuntu
清泉影月2 小时前
Linux:Squid正向代理实现内网访问互联网
linux·运维·服务器
切糕师学AI2 小时前
ARM 中的 SVC 监管调用(Supervisor Call)
linux·c语言·汇编·arm开发
陌上花开缓缓归以2 小时前
linux jiffies 初始化不为0问题分析
linux·arm开发