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.

相关推荐
l1o3v1e4ding14 分钟前
排查linux CentOS7.6的mysql磁盘 I/O 延迟过高问题
linux·运维·mysql
Edward111111112 小时前
linux创建普通用户
linux·运维·服务器
mzhan0172 小时前
Linux: rcu: 加速宽限期
linux·rcu
Fanfanaas3 小时前
Linux 基础开发工具(二)
linux·运维·服务器·c语言
雾岛听蓝3 小时前
Linux线程基础
linux·开发语言·经验分享
齐落山大勇3 小时前
Linux的文件IO
linux·运维·服务器
tod1133 小时前
深入解析ext2文件系统架构
linux·服务器·c++·文件系统·ext
萧行之3 小时前
FRP 0.62.0 + Mac Ollama 公网穿透部署+排障实录(标准 TOML 格式)
linux·服务器
齐潇宇3 小时前
文件共享服务器
linux·运维·网络·文件共享