VAAPI

This article describes the setup of VAAPI (Video Acceleration API).

Installation
Portage knows the global USE flag vaapi for enabling support for VAAPI in other packages. Enabling this USE flag will pull in automatically:

The USE flags of libva are:

After setting this you want to update your system so the changes take effect:

Configuration
You may need to tweak the config files of the programs, you can make use of VAAPI.

Usage
vainfo shows if VAAPI is supported.

Software
"Intel hardware-accelerated media decoding and encoding on Linux" documents the current Linux packages with vaapi support. http://intellinuxgraphics.org/h264.html

mplayer
Add "=media-video/mplayer-1* # For Intel i7 HD4000 vaapi support with libav driver" to your "/etc/portage/package.keywords" and emerge.

emerge media-video/mplayer


 * NOTE: There is no "vaapi" USE Flag! Emerging mplayer-1.1 should automatically pull in "x11-libs/libva" and "x11-libs/libva-intel-driver" packages for vaapi support.