Difference between revisions of "VDPAU"

From ArchWiki
Jump to: navigation, search
m (xvba-video-open has been replaced by libva-xvba-driver, see https://mailman.archlinux.org/pipermail/aur-general/2013-September/025505.html)
(add a link to Simplified Chinese translation.)
(9 intermediate revisions by 4 users not shown)
Line 2: Line 2:
 
[[Category:X Server]]
 
[[Category:X Server]]
 
[[ja:VDPAU]]
 
[[ja:VDPAU]]
 +
[[zh-CN:VDPAU]]
 
{{Article summary start}}
 
{{Article summary start}}
 
{{Article summary text|Explains VDPAU support in various hardware and software components}}
 
{{Article summary text|Explains VDPAU support in various hardware and software components}}
Line 17: Line 18:
 
*[[ATI|AMD]] Radeon 9500 and newer GPUs are supported by the {{pkg|ati-dri}} package, available in the [[official repositories]].
 
*[[ATI|AMD]] Radeon 9500 and newer GPUs are supported by the {{pkg|ati-dri}} package, available in the [[official repositories]].
  
*[[Intel Graphics|Intel]] GMA 4500 series and newer GPUs are supported by the {{AUR|libvdpau-va-gl}} package (available in the [[AUR]]) together with the {{pkg|libva-intel-driver}}.
+
*[[Intel Graphics|Intel]] GMA 4500 series and newer GPUs are supported by the {{pkg|libvdpau-va-gl}} package together with the {{pkg|libva-intel-driver}}.
  
*[[Nouveau|NVIDIA]] GeForce 400 series and newer GPUs are supported by the {{pkg|nouveau-dri}} package, available in the [[official repositories]]. It uses the {{AUR|nouveau-fw}} package, which contains the required firmware to operate that is presently extracted from the NVIDIA binary driver.
+
*[[Nouveau|NVIDIA]] GeForce 8 series and newer GPUs are supported by the {{pkg|nouveau-dri}} package, available in the [[official repositories]]. It uses the {{AUR|nouveau-fw}} package, which contains the required firmware to operate that is presently extracted from the NVIDIA binary driver.
  
 
'''Proprietary drivers:'''
 
'''Proprietary drivers:'''
  
*[[AMD Catalyst|AMD]] Radeon HD 4000 series and newer GPUs are supported by the {{AUR|libvdpau-va-gl}} package (available in the [[AUR]]) together with the {{AUR|libva-xvba-driver}} package. It uses the {{AUR|catalyst-utils}} driver for Radeon HD 5000 series and newer, and {{AUR|catalyst-legacy-utils}} for Radeon HD 4000 series.
+
*[[AMD Catalyst|AMD]] Radeon HD 4000 series and newer GPUs are supported by the {{pkg|libvdpau-va-gl}} package (available in the [[official repositories]]) together with the {{AUR|libva-xvba-driver}} package. It uses the {{AUR|catalyst-utils}} driver for Radeon HD 5000 series and newer, and {{AUR|catalyst-legacy-utils}} for Radeon HD 4000 series.
  
 
*[[NVIDIA]] GeForce 8 series and newer GPUs are supported by the {{pkg|nvidia-utils}} package, available in the [[official repositories]].
 
*[[NVIDIA]] GeForce 8 series and newer GPUs are supported by the {{pkg|nvidia-utils}} package, available in the [[official repositories]].
Line 31: Line 32:
 
!  
 
!  
 
! {{pkg|ati-dri}}
 
! {{pkg|ati-dri}}
! {{AUR|libvdpau-va-gl}} with {{pkg|libva-intel-driver}}
+
! {{pkg|libvdpau-va-gl}} with {{pkg|libva-intel-driver}}
 
! {{pkg|nouveau-dri}}
 
! {{pkg|nouveau-dri}}
! {{AUR|libvdpau-va-gl}} with {{AUR|libva-xvba-driver}}
+
! {{pkg|libvdpau-va-gl}} with {{AUR|libva-xvba-driver}}
 
! {{pkg|nvidia-utils}}
 
! {{pkg|nvidia-utils}}
 
|-
 
|-
Line 39: Line 40:
 
| AMD Radeon 9500 and newer
 
| AMD Radeon 9500 and newer
 
| Intel GMA 4500 and newer
 
| Intel GMA 4500 and newer
| Nvidia GeForce 400 and newer
+
| Nvidia GeForce 8 and newer
 
| AMD Radeon HD 4000 and newer
 
| AMD Radeon HD 4000 and newer
 
| Nvidia GeForce 8 and newer
 
| Nvidia GeForce 8 and newer
Line 46: Line 47:
 
| AMD Radeon HD 6000 and newer
 
| AMD Radeon HD 6000 and newer
 
| -
 
| -
| Nvidia GeForce 400 and newer
+
| Nvidia GeForce 200 and newer
 
| AMD Radeon HD 6000 and newer
 
| AMD Radeon HD 6000 and newer
 
| Nvidia GeForce 200 and newer
 
| Nvidia GeForce 200 and newer
Line 53: Line 54:
 
| AMD Radeon HD 4000 and newer
 
| AMD Radeon HD 4000 and newer
 
| Intel GMA 4500<sup>1</sup>, Ironlake Graphics and newer
 
| Intel GMA 4500<sup>1</sup>, Ironlake Graphics and newer
| Nvidia GeForce 400 and newer
+
| Nvidia GeForce 8 and newer
 
| AMD Radeon HD 4000 and newer
 
| AMD Radeon HD 4000 and newer
 
| Nvidia GeForce 8 and newer
 
| Nvidia GeForce 8 and newer
Line 60: Line 61:
 
| AMD Radeon HD 4000 and newer
 
| AMD Radeon HD 4000 and newer
 
| Intel Sandy Bridge Graphics and newer
 
| Intel Sandy Bridge Graphics and newer
| Nvidia GeForce 400 and newer
+
| Nvidia GeForce 8200, 8300, 8400, 9300, 200 and newer
 
| AMD Radeon HD 4000 and newer
 
| AMD Radeon HD 4000 and newer
 
| Nvidia GeForce 8 and newer
 
| Nvidia GeForce 8 and newer
 
|}
 
|}
  
<sup>1</sup>Supported by the libva-driver-intel-g45-h264 package. See [[Intel_Graphics#H.264_decoding_on_GMA_4500|H.264 decoding on GMA 4500]] for instructions and caveats.
+
<sup>1</sup>Supported by the {{AUR|libva-driver-intel-g45-h264}} package, which is available in the AUR. See [[Intel_Graphics#H.264_decoding_on_GMA_4500|H.264 decoding on GMA 4500]] for instructions and caveats.
  
 
===Configuration===
 
===Configuration===
  
The {{AUR|libvdpau-va-gl}} driver (for Intel Graphics or AMD Catalyst) needs to be enabled manually. To enable it, create the following file:
+
The {{pkg|libvdpau-va-gl}} driver (for Intel Graphics or AMD Catalyst) needs to be enabled manually. To enable it, create the following file:
 
{{hc|/etc/profile.d/vdpau_vaapi.sh|
 
{{hc|/etc/profile.d/vdpau_vaapi.sh|
 
#!/bin/sh
 
#!/bin/sh
Line 83: Line 84:
 
{{bc|$ vdpauinfo}}
 
{{bc|$ vdpauinfo}}
  
==Supported software==
+
== Supported software ==
=== [[Browser Plugins#Adobe Flash Player|Adobe Flash Player]] ===
+
 
In order to enable hardware based video decoding, add the following line to the {{ic|/etc/adobe/mms.cfg}} file:
+
=== Adobe Flash Player ===
 +
 
 +
In order to enable hardware based video decoding in [[Browser Plugins#Adobe Flash Player|Adobe Flash Player]], add the following line to the {{ic|/etc/adobe/mms.cfg}} file:
 
  EnableLinuxHWVideoDecode=1
 
  EnableLinuxHWVideoDecode=1
  
=== [[MPlayer]] ===
+
=== MPlayer ===
Install {{pkg|mplayer}} or {{AUR|mplayer2}} package, available in the [[official repositories]].
+
 
 +
Install [[MPlayer]], available in the [[official repositories]].
 
{{bc|$ mplayer -vo vdpau, -vc ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau,ffh264vdpau,ffodivxvdpau, ''foobar.mpeg''}}
 
{{bc|$ mplayer -vo vdpau, -vc ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau,ffh264vdpau,ffodivxvdpau, ''foobar.mpeg''}}
 
{{Warning|The {{ic|ffodivxvdpau}} codec is only supported by the most recent series of NVIDIA hardware. Consider omitting it based on your specific hardware.}}
 
{{Warning|The {{ic|ffodivxvdpau}} codec is only supported by the most recent series of NVIDIA hardware. Consider omitting it based on your specific hardware.}}
*'''-vo''' - Select vdpau video output driver
+
*{{ic|-vo}} - Select vdpau video output driver
*'''-vc''' - Select vdpau video codecs
+
*{{ic|-vc}} - Select vdpau video codecs
  
 
MPlayer based players:
 
MPlayer based players:
* {{pkg|gnome-mplayer}}: to enable hardware acceleration: {{ic|Edit -> Preferences -> Player}}, then set Video Output to "''vdpau''".
+
* {{Pkg|gnome-mplayer}}: to enable hardware acceleration: ''Edit > Preferences > Player'', then set Video Output to {{ic|vdpau}}.
* {{pkg|smplayer}}: to enable hardware acceleration: {{ic|Options -> Preferences -> General -> Video}}, then set Output driver to "''vdpau''".
+
* {{Pkg|smplayer}}: to enable hardware acceleration: ''Options > Preferences > General > Video'', then set Output driver to {{ic|vdpau}}.
 +
 
 +
=== VLC media player ===
  
=== [[VLC media player]] ===
+
Install [[VLC]] package, available in the official repositories.
Install {{pkg|vlc}} package, available in the [[official repositories]].
+
  
To enable hardware acceleration: {{ic|Tools -> Preferences -> Input & Codecs}}, then set ''Hardware-accelerated decoding'' to "''Video Decode and Presentation API for Unix (VDPAU)''".
+
To enable hardware acceleration: ''Tools > Preferences > Input & Codecs'', then set ''Hardware-accelerated decoding'' to {{ic|Video Decode and Presentation API for Unix (VDPAU)}}.

Revision as of 11:00, 27 January 2014

Template:Article summary start Template:Article summary text Template:Article summary heading Template:Article summary wiki Template:Article summary wiki Template:Article summary end

Video Decode and Presentation API for Unix is an open source library and API to offload portions of the video decoding process and video post-processing to the GPU video-hardware.

Supported hardware

Open source drivers:

  • NVIDIA GeForce 8 series and newer GPUs are supported by the nouveau-dri package, available in the official repositories. It uses the nouveau-fwAUR package, which contains the required firmware to operate that is presently extracted from the NVIDIA binary driver.

Proprietary drivers:

Supported formats

ati-dri libvdpau-va-gl with libva-intel-driver nouveau-dri libvdpau-va-gl with libva-xvba-driverAUR nvidia-utils
MPEG2 decoding AMD Radeon 9500 and newer Intel GMA 4500 and newer Nvidia GeForce 8 and newer AMD Radeon HD 4000 and newer Nvidia GeForce 8 and newer
MPEG4 decoding AMD Radeon HD 6000 and newer - Nvidia GeForce 200 and newer AMD Radeon HD 6000 and newer Nvidia GeForce 200 and newer
H264 decoding AMD Radeon HD 4000 and newer Intel GMA 45001, Ironlake Graphics and newer Nvidia GeForce 8 and newer AMD Radeon HD 4000 and newer Nvidia GeForce 8 and newer
VC1 decoding AMD Radeon HD 4000 and newer Intel Sandy Bridge Graphics and newer Nvidia GeForce 8200, 8300, 8400, 9300, 200 and newer AMD Radeon HD 4000 and newer Nvidia GeForce 8 and newer

1Supported by the libva-driver-intel-g45-h264AUR package, which is available in the AUR. See H.264 decoding on GMA 4500 for instructions and caveats.

Configuration

The libvdpau-va-gl driver (for Intel Graphics or AMD Catalyst) needs to be enabled manually. To enable it, create the following file:

/etc/profile.d/vdpau_vaapi.sh
#!/bin/sh
export VDPAU_DRIVER=va_gl

make it executable:

# chmod +x /etc/profile.d/vdpau_vaapi.sh

and reboot or relogin.

In order to check what features are supported by your GPU, run the following command, which provided by the vdpauinfoAUR package:

$ vdpauinfo

Supported software

Adobe Flash Player

In order to enable hardware based video decoding in Adobe Flash Player, add the following line to the /etc/adobe/mms.cfg file:

EnableLinuxHWVideoDecode=1

MPlayer

Install MPlayer, available in the official repositories.

$ mplayer -vo vdpau, -vc ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau,ffh264vdpau,ffodivxvdpau, foobar.mpeg
Warning: The ffodivxvdpau codec is only supported by the most recent series of NVIDIA hardware. Consider omitting it based on your specific hardware.
  • -vo - Select vdpau video output driver
  • -vc - Select vdpau video codecs

MPlayer based players:

  • gnome-mplayer: to enable hardware acceleration: Edit > Preferences > Player, then set Video Output to vdpau.
  • smplayer: to enable hardware acceleration: Options > Preferences > General > Video, then set Output driver to vdpau.

VLC media player

Install VLC package, available in the official repositories.

To enable hardware acceleration: Tools > Preferences > Input & Codecs, then set Hardware-accelerated decoding to Video Decode and Presentation API for Unix (VDPAU).