Accelerated Video Playback/zh: Difference between revisions

FuzzyBot (talk | contribs)
Updating to match new version of source page
Ardenet (talk | contribs)
No edit summary
Tags: Mobile edit Mobile web edit
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<languages/>
<languages/>
<div class="mw-translate-fuzzy">
NixOS 中的视频播放加速通常是通过向 {{nixos:option|hardware.graphics.extraPackages}} 添加相关包来完成的。
NixOS 中的加速视频播放通常是通过向 {{nixos:option|hardware.opengl.extraPackages}} 添加相关包来完成的。
</div>


<span id="Installation"></span>
<span id="Installation"></span>
Line 36: Line 34:
</nowiki>}}
</nowiki>}}


<div lang="en" dir="ltr" class="mw-content-ltr">
=== NVIDIA ===
=== NVIDIA ===
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
NVIDIA 官方并未支持 Linux 上的视频播放加速。虽然存在第三方实现,但不支持 Chrome<ref>https://github.com/elFarto/nvidia-vaapi-driver#chrome</ref>,并且与其他实现<ref>https://github.com/elFarto/nvidia-vaapi-driver#codec-support</ref>相比存在显著限制。
NVIDIA do not officially support accelerated video playback on Linux. A third-party implementation exists, but does not support Chrome<ref>https://github.com/elFarto/nvidia-vaapi-driver#chrome</ref>, and has significant limitations compared to the other implementations<ref>https://github.com/elFarto/nvidia-vaapi-driver#codec-support</ref>.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
拥有独立 iGPU 的 NVIDIA 用户通常应该更喜欢使用他们的 iGPU 来实现此目的,因此请参考上面的 Intel AMD 部分。
NVIDIA users with a separate iGPU should generally prefer to use their iGPU for this, and therefore look to the above Intel and AMD sections instead.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
仅具有 NVIDIA GPU 的用户可以尝试使用第三方实现;默认情况下,添加软件包到 <code>hardware.graphics.extraPackages</code>,但之后需要进行一些额外的设置才能使用<ref>https://github.com/elFarto/nvidia-vaapi-driver#configuration</ref>
Users with only an NVIDIA GPU can attempt to use the third party implementation; the package is added to <code>hardware.graphics.extraPackages</code> by default, but it requires some additional setup to be useful<ref>https://github.com/elFarto/nvidia-vaapi-driver#configuration</ref>:
</div>


{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
Line 83: Line 73:


您可以通过运行以下命令来测试您的配置:<code>nix-shell -p libva-utils --run vainfo</code>
您可以通过运行以下命令来测试您的配置:<code>nix-shell -p libva-utils --run vainfo</code>
有关更多信息,请参阅[https://wiki.archlinux.org/index.php/Hardware_video_acceleration#Verification Arch Linux wiki 的硬件视频加速]。
有关更多信息,请参阅 [https://wiki.archlinux.org/index.php/Hardware_video_acceleration#Verification Arch Linux wiki 的硬件视频加速]。
<span id="Applications"></span>
<span id="Applications"></span>
== 应用 ==
== 应用 ==
=== Chromium ===
=== Chromium ===
请参阅 [[Chromium#Accelerated_video_playback]].
请参阅 [[Special:MyLanguage/Chromium#Accelerated_video_playback|Chromium 视频加速]].
=== Firefox ===
=== Firefox ===