查看: 130|回复: 0

fedora无法看视频?编解码器详细安装教程【转发】

[复制链接]

1

主题

0

回帖

0

积分

热心网友

金币
0
阅读权限
220
精华
0
威望
0
贡献
0
在线时间
0 小时
注册时间
2008-7-15
发表于 2025-9-21 23:09:00 | 显示全部楼层 |阅读模式

原文:https://zhuanlan.zhihu.com/p/26494803528

启用rpm fusion

free包:

sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm

nofree包:

sudo dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

从 RPM Fusion 存储库启用 Appstream
数据

启用后才能是使用dnf对fusion的包进行更新:

sudo dnf group upgrade core

安装fedora的多媒体组

fedora41 and newer

sudo dnf group install multimedia

fedora41 before

sudo dnf group install Multimedia

安装gstreamer1-plugins框架

安装gstreamer1-plugins框架相关内容(包含解码器):

sudo dnf install gstreamer1-plugins*

ffmpeg使用vaapi
编码器不支持h264和hevc的解决方法

但这个时候,你如果有使用amd显卡的vaapi进行视频编码,还是会出现hevc和h264无法编码的问题。

例如:使用vainfo显示的编码器内容不全,只有vp9,av1等开源编码器的情况。

主要是因为fedore被红帽赞助,受限于美国的版权法,将h264等编码器移除了。

rpmfusion不在美国,所以没有这方面的限制。rpmfusion的说明如下:

Hardware codecs with AMD (mesa),Using the rpmfusion-free section This is needed since Fedora 37 and later... and mainly concern AMD hardware since NVIDIA hardware with nouveau doesn't work well

sudo dnf swap mesa-va-drivers mesa-va-drivers-freeworld
sudo dnf swap mesa-vdpau-drivers mesa-vdpau-drivers-freeworld



来源:https://www.cnblogs.com/ygst/p/19104355
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

圆梦公社,专注于为全球华人提供纯粹技术交流的地方,请勿发布任何政治及违法的言论。如有相关侵权、举报、投诉及建议等,请发 E-mail:dzh188@hotmail.com

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部