Difference between revisions of "VA-API"

From ArchWiki
Jump to: navigation, search
m (added ja)
(Supported software: add VLC and totem)
Line 65: Line 65:
  
 
==Supported software==
 
==Supported software==
 +
=== [[GStreamer]] ===
 +
Install {{pkg|gst-vaapi}} package, available in the [[official repositories]].
 +
{{bc|$ gst-launch-1.0 playbin uri=file://''/path/to/foobar.mpeg''}}
 +
VA-API is used automatically, if supported format found.
 +
 +
GStreamer based players:
 +
* {{pkg|totem}}: no configuration needed.
 +
 
=== [[MPlayer]] ===
 
=== [[MPlayer]] ===
 
Install {{pkg|mplayer-vaapi}} package, available in the [[official repositories]].
 
Install {{pkg|mplayer-vaapi}} package, available in the [[official repositories]].
Line 73: Line 81:
  
 
{{Note|You can also use {{pkg|mplayer2}} with VDPAU backend. See [[MPlayer#Enabling_VDPAU]] for more information.}}
 
{{Note|You can also use {{pkg|mplayer2}} with VDPAU backend. See [[MPlayer#Enabling_VDPAU]] for more information.}}
 
  
 
MPlayer based players:
 
MPlayer based players:
Line 79: Line 86:
 
* {{pkg|smplayer}}: open preferences and set the video driver to "vaapi", and deselect "Enable screenshots".
 
* {{pkg|smplayer}}: open preferences and set the video driver to "vaapi", and deselect "Enable screenshots".
  
=== [[GStreamer]] ===
+
=== [[VLC media player]] ===
Install {{AUR|gstreamer-vaapi-git}} package, available in the [[Arch User Repository]].
+
Install {{pkg|vlc}} package, available in the [[official repositories]].
{{bc|$ gst-launch-0.10 playbin2 uri=file://''/path/to/foobar.mpeg''}}
+
 
VA-API is used automatically, if supported format found.
+
To enable hardware acceleration: {{ic|Tools -> Preferences -> Input & Codecs}}, then check "''Use GPU accelerated decoding''".

Revision as of 18:59, 6 August 2013

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 Acceleration API is a specification and open source library to provide hardware accelerated video decode/encode.

Supported hardware

Supported formats

libva-vdpau-driver libva-intel-driver xvba-video-openAUR
MPEG2 decoding Nvidia GeForce 8 and newer, AMD Radeon 9500 and newer Intel GMA 4500 and newer AMD Radeon HD 4000 and newer
MPEG4 decoding Nvidia GeForce 200 and newer - AMD Radeon HD 6000 and newer
H264 decoding Nvidia GeForce 8 and newer Intel GMA 45001, Ironlake Graphics and newer AMD Radeon HD 4000 and newer
VC1 decoding Nvidia GeForce 8 and newer Intel Sandy Bridge Graphics and newer AMD Radeon HD 4000 and newer
MPEG2 encoding - Intel Sandy Bridge Graphics and newer -
H264 encoding - Intel Sandy Bridge Graphics and newer -

1Supported by the libva-driver-intel-g45-h264 package. See H.264 decoding on GMA 4500 for instructions and caveats.

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

$ vainfo

VAEntrypointVLD means that your card is capable to decode this format, VAEntrypointEncSlice means that you can encode to this format.

Supported software

GStreamer

Install gst-vaapi package, available in the official repositories.

$ gst-launch-1.0 playbin uri=file:///path/to/foobar.mpeg

VA-API is used automatically, if supported format found.

GStreamer based players:

  • totem: no configuration needed.

MPlayer

Install mplayer-vaapi package, available in the official repositories.

$ mplayer -vo vaapi  -va vaapi -fs foobar.mpeg
  • -vo - Select vaapi video output driver
  • -va - Select vaapi video decoder driver
  • -fs - Fullscreen playback (optional)
Note: You can also use mplayer2 with VDPAU backend. See MPlayer#Enabling_VDPAU for more information.

MPlayer based players:

  • gnome-mplayer: open preferences and set the video output to "vaapi".
  • smplayer: open preferences and set the video driver to "vaapi", and deselect "Enable screenshots".

VLC media player

Install vlc package, available in the official repositories.

To enable hardware acceleration: Tools -> Preferences -> Input & Codecs, then check "Use GPU accelerated decoding".