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.

相关推荐
荣光波比1 小时前
Nginx 实战系列(一)—— Web 核心概念、HTTP/HTTPS协议 与 Nginx 安装
linux·运维·服务器·nginx·云计算
绿箭柠檬茶3 小时前
Ubuntu 使用 Samba 共享文件夹
linux·运维·ubuntu
工藤新一¹4 小时前
Linux —— 虚拟进程地址空间
linux·运维·服务器·c/c++·虚拟进程地址空间
Aspiresky5 小时前
浅析Linux内核scatter-gather list实现
linux·dma·scatter/gather
奔跑吧 android5 小时前
【linux kernel 常用数据结构和设计模式】【数据结构 3】【模拟input子系统input_dev和input_handler之间的多对多关系】
linux·数据结构·input·kernel·input_dev·input_handler·input_handle
再难也得平5 小时前
Linux初级篇
linux·运维·服务器
小猫挖掘机(绝版)6 小时前
通过tailscale实现一台电脑上vscode通过ssh连接另一台电脑上的VMware Linux 虚拟机
linux·windows·vscode·ubuntu·ssh
ajassi20007 小时前
开源 C++ QT Widget 开发(十三)IPC通讯--本地套接字 (Local Socket)
linux·c++·qt·开源
方先森有点懒7 小时前
CentOS 7.2 虚机 ssh 登录报错在重启后无法进入系统
linux·运维·centos·ssh
shylyly_7 小时前
Linux->日志的实现
linux·运维·服务器