在 Centos8 上观看 Netflix

在 Centos8 上观看 Netflix

我在华硕上安装了 Centos 8.5.2111。我试图在 Firefox 91 上观看 Netflix,但存在编解码器和协议。我设置了 Widevine 和 Cisco H264 插件,但它不起作用。谷歌搜索表明我需要 ffmpeg 和 ffmpeg-devel。好的,我运行这些命令,结果如下:

$ sudo yum install epel-release
[snip]
$ sudo yum localinstall https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm
Last metadata expiration check: 0:11:36 ago on Tue 28 Dec 2021 04:58:28 AM PST.
rpmfusion-free-release-8.noarch.rpm                                                                                    11 kB/s |  11 kB     00:01    
Package rpmfusion-free-release-8-0.1.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
$ sudo yum install ffmpeg ffmpeg-devel
Last metadata expiration check: 0:11:51 ago on Tue 28 Dec 2021 04:58:28 AM PST.
Error: 
 Problem 1: conflicting requests
  - nothing provides libSDL2-2.0.so.0()(64bit) needed by ffmpeg-4.2.5-2.el8.x86_64
 Problem 2: package ffmpeg-devel-4.2.5-2.el8.x86_64 requires libavdevice(x86-64) = 4.2.5-2.el8, but none of the providers can be installed
  - package ffmpeg-devel-4.2.5-2.el8.x86_64 requires libavdevice.so.58()(64bit), but none of the providers can be installed
  - conflicting requests
  - nothing provides libSDL2-2.0.so.0()(64bit) needed by libavdevice-4.2.5-2.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
$ sudo yum install ffmpeg ffmpeg-devel --skip-broken --nobest
Last metadata expiration check: 0:12:09 ago on Tue 28 Dec 2021 04:58:28 AM PST.
Dependencies resolved.

 Problem 1: conflicting requests
  - nothing provides libSDL2-2.0.so.0()(64bit) needed by ffmpeg-4.2.5-2.el8.x86_64
 Problem 2: package ffmpeg-devel-4.2.5-2.el8.x86_64 requires libavdevice(x86-64) = 4.2.5-2.el8, but none of the providers can be installed
  - package ffmpeg-devel-4.2.5-2.el8.x86_64 requires libavdevice.so.58()(64bit), but none of the providers can be installed
  - conflicting requests
  - nothing provides libSDL2-2.0.so.0()(64bit) needed by libavdevice-4.2.5-2.el8.x86_64
======================================================================================================================================================
 Package                            Architecture                 Version                           Repository                                    Size
======================================================================================================================================================
Skipping packages with broken dependencies:
 ffmpeg                             x86_64                       4.2.5-2.el8                       rpmfusion-free-updates                       1.4 M
 ffmpeg-devel                       x86_64                       4.2.5-2.el8                       rpmfusion-free-updates                       909 k
 libavdevice                        x86_64                       4.2.5-2.el8                       rpmfusion-free-updates                        97 k

Transaction Summary
======================================================================================================================================================
Skip  3 Packages

Nothing to do.
Complete!
$ 

好的,刷新我的 Netflix 标签仍然不起作用。我需要 libSDL2。我能找到的最接近的是SDLSDL-devel我安装了它,但它无助于安装 ffmpeg。我该怎么办?

答案1

我不是基于 rpm 的发行版的专家,但你试过运行吗 sudo yum install ffmpeg ffmpeg-devel --nobest?根据输出结果判断,这个可能有效。

此外,你可能缺少一些存储库(这只是猜测,因为你没有发布yum repolist)这里有一个我找到的指南,并且根据您提供的输出判断,您没有完全满足要求。我的猜测得到了证实论坛帖子中,一位 CentOS 用户在使用 SDL2 库时遇到了类似的问题,他只需要启用powertools 仓库事物。

答案2

我跟随关联由@savchenko-dmitriy 提供,在安装前的最后一步ffmpeg说安装 PowerTools 像这样$ sudo dnf config-manager –enable PowerTools

对我来说工作是这样的:-

sudo dnf config-manager --enable   powertools

之后我进行安装并且它工作

$ sudo dnf install ffmpeg
$ sudo dnf install ffmpeg ffmpeg-devel

相关内容