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.

相关推荐
二十七剑27 分钟前
jvm调试和查看工具
java·linux·jvm
菜菜小蒙36 分钟前
【Linux】基于UDP/TCP服务器与客户端的实现
linux·服务器·udp
a小胡哦1 小时前
Windows、Mac、Linux,到底该怎么选?
linux·windows·macos·操作系统
_extraordinary_1 小时前
Linux权限(一)
android·linux·excel
易安杰1 小时前
ElasticSearch+Kibana通过Docker部署到Linux服务器中
linux·elasticsearch·搜索引擎·全文检索·中文分词
人生!?2 小时前
给小米/红米手机root(工具基本为官方工具)——KernelSU篇
android·linux·智能手机
Anna_Tong3 小时前
阿里云如何协助解决操作系统兼容性问题
linux·服务器·ubuntu·阿里云·centos·云计算·系统迁移
不良人天码星3 小时前
Linux的基础指令和环境部署,项目部署实战(下)
linux·运维·服务器
致奋斗的我们5 小时前
HAProxy介绍与编译安装
linux·汇编·数据库·mysql·青少年编程·haproxy·openeurler
waves浪游5 小时前
Linux基本指令(上)
linux·运维·服务器