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.

相关推荐
Magician_liu8 分钟前
Linux基础笔记分享(超详细~)
linux·运维·笔记
linux行者18 分钟前
elasticsearch教程
linux·运维·elk·elasticsearch
泰勒朗斯42 分钟前
ffmpeg-cavs识别广电流
ffmpeg
obj-rainy1 小时前
PXE网络部署/服务器自动部署
linux·运维·网络
问今域中1 小时前
【知识点快读】DMA周期挪用
linux·运维·网络
破竹152 小时前
VSCode远程调试Linux程序
linux·ide·vscode
mxyzhy2 小时前
Linux 软件编程学习第五 六天之minishell小项目
linux·c语言·学习·算法
一只脑洞君2 小时前
Liunx---批量安装服务器
linux·运维·服务器
妍妍的宝贝2 小时前
kickstart自动安装脚本,pxe网络安装
linux·运维·centos
抛物线.2 小时前
Centos7.9操作系统kdump crash文件vmcore未生成问题
linux·服务器·数据库