VAAPI (Video Acceleration API) provides access to graphics hardware (GPU) acceleration for video processing.
|intel||Intel GMA X4500HD and newer||See https://01.org/linuxgraphics/community/vaapi|
|VDPAU||All supported graphics cards|
Portage knows the global USE flag vaapi for enabling support for VAAPI in other packages. Enabling this USE flag will pull in x11-libs/libva automatically:
The USE flags of libva are:
|opengl||Yes||Adds support for OpenGL (3D graphics)|
|vdpau||No||Enable the Video Decode and Presentation API for Unix acceleration interface|
|dummy||No||VIDEO_CARDS USE flag: dummy driver|
|intel||No||VIDEO_CARDS USE flag:see Intel|
|fglrx||No||VIDEO_CARDS USE flag:see fglrx|
|nvidia||No||VIDEO_CARDS USE flag:see nvidia-drivers|
After setting this you want to update your system so the changes take effect:
You may need to tweak the config files of the programs, you can make use of VAAPI.
vainfo shows if VAAPI is supported.
Vlc supports Vaapi natively. Activate the appropriate codecs through the Preferences Menu (VA API Acceleration).
Mpv also supports the vaapi acceleration through the commandline option --hwdec=vaapi
As of now, main branch Mplayer doesn't support vaapi. There is a development branch though that brings vaapi support. the branch is hwaccel-vaapi, available at gitorious. https://gitorious.org/vaapi/mplayer/source/1923fa10ed77bbf8408f2ce312d85a97dab1f0f3:
It doesn't seem there is a proper ebuild providing mplayer-vaapi, even on the overlays
You can use the following commands to get a vaapi enabled mplayer
You will get yourself an executable, that you can install with the not recommanded following procedure :
Instead, configure a player like smplayer to use your special executable (Preferences/Mplayer executable), then video driver (User defined/vaapi)