2015-10-24

‎配置

← Older revision

Revision as of 07:24, 24 October 2015

(5 intermediate revisions by the same user not shown)

Line 9:

Line 9:

{{Related articles end}}

{{Related articles end}}



{{TranslationStatus (简体中文)|VDPAU|
2014
-
02
-
15
|
360179
}}

+

{{TranslationStatus (简体中文)|VDPAU|
2015
-
10
-
23
|
403464
}}

'''[http://http.download.nvidia.com/XFree86/vdpau/doxygen/html/ Unix视频解码及演示 API (Video Decode and Presentation API for Unix,缩写为VDPAU)]'''是一个开源的库,它使得部分的视频解码和视频后期处理任务转移到GPU硬件上。

'''[http://http.download.nvidia.com/XFree86/vdpau/doxygen/html/ Unix视频解码及演示 API (Video Decode and Presentation API for Unix,缩写为VDPAU)]'''是一个开源的库,它使得部分的视频解码和视频后期处理任务转移到GPU硬件上。

Line 30:

Line 30:

* GeForce 8/9 和 GeForce 100-300 系列由 {{Pkg|nvidia-340xx-utils}} 软件包支持。

* GeForce 8/9 和 GeForce 100-300 系列由 {{Pkg|nvidia-340xx-utils}} 软件包支持。

+

=== 支持格式 ===

+

+

{| class="wikitable" style="width: 100%"

+

!

+

! colspan="3" | 开源

+

! colspan="2" | 闭源

+

|-

+

!

+

! AMD

+

! Intel

+

! Nvidia

+

! AMD

+

! Nvidia

+

|-

+

| MPEG2 decoding

+

| Radeon 9500 and newer

+

| <center>—<sup>2</sup></center>

+

| GeForce 8 and newer

+

| <center>—<sup>2</sup></center>

+

| GeForce 8 and newer

+

|-

+

| MPEG4 decoding

+

| Radeon HD 6000 and newer

+

| <center>—<sup>2</sup></center>

+

| GeForce 200 and newer

+

| <center>—<sup>2</sup></center>

+

| GeForce 200 and newer

+

|-

+

| H.264 decoding

+

| Radeon HD 4000 and newer

+

| GMA 4500<sup>1</sup>, Ironlake Graphics and newer

+

| GeForce 8 and newer

+

| Radeon HD 4000 and newer

+

| GeForce 8 and newer

+

|-

+

| HEVC (H.265) decoding

+

| <center>—</center>

+

| <center>—<sup>2</sup></center>

+

| <center>—</center>

+

| <center>—<sup>2</sup></center>

+

| GeForce 900<sup>4</sup> and newer

+

|-

+

| VC1 decoding

+

| Radeon HD 4000 and newer

+

| <center>—<sup>2</sup></center>

+

| GeForce 8<sup>3</sup> and newer

+

| <center>—<sup>2</sup></center>

+

| GeForce 8<sup>3</sup> and newer

+

|}

+

+

* <sup>1</sup> Supported by the {{AUR|libva-intel-driver-g45-h264}} package. See [[Intel graphics#H.264 decoding on GMA 4500]] for instructions and caveats.

+

* <sup>2</sup> As of version 0.3, the VA GL driver doesn't support any other hardware decoder than H.264.

+

* <sup>3</sup> [[Wikipedia:Nvidia PureVideo|Except]] GeForce 8800 Ultra, 8800 GTX, 8800 GTS (320/640 MB).

+

* <sup>4</sup> Except GeForce GTX 970 and GTX 980.

要检查一个功能是否被 GPU 支持,可以使用 {{Pkg|vdpauinfo}} 软件包提供的命令:

要检查一个功能是否被 GPU 支持,可以使用 {{Pkg|vdpauinfo}} 软件包提供的命令:

$ vdpauinfo

$ vdpauinfo



== 配置 ==

+

=
== 配置
=
==

环境变量 {{ic|VDPAU_DRIVER}} 决定使用的驱动。可以[[Environment variables#Defining variables globally|全局设置]] 或 [[Environment variables#Defining variables locally|针对一个用户]] 设置 [[Environment variables|环境变量]]

环境变量 {{ic|VDPAU_DRIVER}} 决定使用的驱动。可以[[Environment variables#Defining variables globally|全局设置]] 或 [[Environment variables#Defining variables locally|针对一个用户]] 设置 [[Environment variables|环境变量]]



使用的驱动:

+

正确的驱动程序名称取决于您的设置:

* Intel 或 AMD Catalyst 使用 {{ic|va_gl}}.

* Intel 或 AMD Catalyst 使用 {{ic|va_gl}}.



*
开源的 AMD
/
ATI 去的要根据 GPU 设置驱动的版本
,
先获取 GPU去的:

+

*
开源AMD
/
ATI驱动程序
,
您需要将它设置为适当的驱动程序版本取决于你的GPU。

+

* Nvidia的专有版本将变量设置为“nvidia”。

{{hc|$ grep -i vdpau /var/log/Xorg.0.log|

{{hc|$ grep -i vdpau /var/log/Xorg.0.log|

Line 50:

Line 105:

VDPAU_DRIVER=r300

VDPAU_DRIVER=r300



=== 多显卡显示 ===

+

=
=== 多显卡显示
=
===



对混合显卡,需要设置下面环境变量。参阅 [[PRIME]] wiki 页面。

+

对混合显卡(NVIDIA和AMD),需要设置下面环境变量。

$ export DRI_PRIME=1

$ export DRI_PRIME=1

+

+

更多信息,参阅 [[PRIME]] wiki 页面。

== 开启软件的硬件加速 ==

== 开启软件的硬件加速 ==



* Adobe Flash Player
-
[[Browser plugins#Adobe Flash Player]].

+

*
{{App|
Adobe Flash Player
|见
[[Browser plugins#Adobe Flash Player]].
||{{Pkg|flashplugin}}}}



* MPlayer/mplayer2
-
[[MPlayer#
Enabling_VDPAU
]].

+

*
{{App|[[
MPlayer
]] 或 [http:
/
/www.
mplayer2
.org/ mplayer2]|见
[[MPlayer#
Enabling VDPAU
]].
||
{{Pkg|mplayer}} {{
Aur
|
mplayer2
}}
}}



*
{{Pkg|
gnome-
mplayer}}
,
{{
Pkg
|
smplayer
}} -
开启硬件加速:
''Edit > Preferences > Player'', 设置 Video Output 为 {{ic|vdpau}}.

+

* {{App|gnome
-
mplayer|开启硬件加速:
''Edit > Preferences > Player'', 设置

Video Output 为 {{ic|vdpau}}.
||{{Pkg|gnome-mplayer}}}}



* {{Aur|bomi}} -
默认已经启动

+

*
{{App|[[SMplayer]]| 开启硬件加速: ''Options > Preferences > General > Video'', 设置 Output driver 为 {{ic|vdpau}}.||{{Pkg|smplayer}}}}



*
mpv -
[[Mpv#
Hardware_Decoding
]].

+

* {{App|bomi|硬件加速可以启用: ''Preferences > Video > Hardware acceleration''.|https://bomi-player.github.io|
{{Aur|bomi}}
{{Aur|bomi
-
git}}}}



* VLC
-
[[VLC media player#Hardware acceleration support]].

+

*
{{App|[[Mpv]]|见
[[Mpv#
Hardware Decoding
]].
||{{Pkg|mpv}}}}

+

*
{{App|[[
VLC
media player]]|见
[[VLC media player#Hardware acceleration support]].
||{{Pkg|vlc}}}}

Show more