Video Acceleration API
|Initial release||September 13, 2007|
2.0.0 / October 21, 2017
|Operating system||Linux, Android, BSD|
The VA API interface is to be implemented by device drivers to offer end-user software, such as VLC media player or GStreamer, access to available video acceleration hardware, such as PureVideo (through the libva-vdpau driver, which implements VA API in terms of VDPAU) or Unified Video Decoder.
The API enables and provides access to hardware-accelerated video processing, using hardware such as graphics processing units (GPU) to accelerate video encoding and decoding by offloading processing from the central processing unit (CPU).
VA API video decode/encode interface is platform and window system independent but is primarily targeted at Direct Rendering Infrastructure (DRI) in X Window System on Unix-like operating systems (including Linux, FreeBSD, Solaris), and Android, however it can potentially also be used with direct framebuffer and graphics sub-systems for video output. Accelerated processing includes support for video decoding, video encoding, subpicture blending, and rendering.
The VA API specification was originally designed by Intel for its GMA (Graphics Media Accelerator) series of GPU hardware with the specific purpose of eventually replacing the XvMC standard as the default Unix multi-platform equivalent of Microsoft Windows DirectX Video Acceleration (DxVA) API, but today the API is no longer limited to Intel-specific hardware or GPUs. Other hardware and manufacturers can freely use this open standard API for hardware accelerated video processing with their own hardware without paying a royalty fee.
The main motivation for VA API is to enable hardware-accelerated video decode at various entry-points (VLD, IDCT, motion compensation, deblocking) for the prevailing coding standards today (MPEG-2, MPEG-4 ASP/H.263, MPEG-4 AVC/H.264, H.265/HEVC, and VC-1/WMV3). Extending XvMC was considered, but due to its original design for MPEG-2 MotionComp only, it made more sense to design an interface from scratch that can fully expose the video decode capabilities in today's GPUs.
Supported hardware and drivers
This section needs to be updated.(October 2017)
As of January 17, 2012 VA API is natively supported by:
- The free and open source drivers of Broadcom Crystal HD (example of a non-GPU based hardware)
- The free and open source drivers of the integrated graphics known as "Intel HD Graphics" (Intel HD Graphics 2000/2500/3000/4000) inside Intel Core i3 / i5 / i7 Processor Family (Nehalem, Sandy Bridge, Ivy Bridge microarchitecture based) processor family.
- The free and open source drivers of the Intel G45 chipset (with Intel GMA X4500HD integrated graphics), and later
- The closed source proprietary drivers for Intel's Poulsbo chipset with Imagination Technologies's PowerVR-based GMA 500 integrated graphics
- The closed source proprietary drivers for Atom E6xx and Penwell based SoCs are also supported via its Media Infrastructure Accelerator (MI-X).
- The closed source proprietary drivers Intel Medfield SoCs with Imagination Technologies's PowerVR (VXD375/385 and VXE250/285) based integrated graphics.
- The closed source proprietary drivers of S3 Graphics's Chrome 400 and later series are also supported.
- In November 2009, VA-API also gained a new proprietary backend named "xvba-video" which allows VA-API powered applications to take advantage of AMD Radeon's proprietary fglrx drivers for its chipsets with UVD2 support via the XvBA library (X-Video Bitstream Acceleration API designed by AMD), for closed source proprietary driver only.
- Additionally, VDPAU (Video Decode and Presentation API for Unix), a competing API designed by NVIDIA, can potentially also be used as a backend for the VA API. If this is supported, any software that supports VA API then also indirectly supports a subset of VDPAU.
Supported video codecs
VA API currently supports these video codecs in the official mainline version, but note that exactly which video codecs are supported depends on the hardware and the driver's capabilities.
- MPEG-2 decode acceleration Main Profile
- VC-1 / WMV3 decode acceleration Advanced Profile
- MPEG-4 Part 2 (H.263) (a.k.a. MPEG-4 SP / MPEG-4 ASP, more commonly known as Xvid) decode acceleration
- H.264 AVC encode acceleration Main Profile
- H.264 AVC decode acceleration High Profile
- H.264 / AVC Hardware Variable Length Decoding (VLD) - CABAC
- H.264 / AVC Hardware Variable Length Decoding (VLD) - CAVLC
- H.264 / AVC Hardware Inverse Transform (IT)
- H.264 / AVC Hardware Motion Compensation (HWMC)
- H.264 / AVC Hardware In-Loop Deblocking (ILDB)
- H.265/HEVC encode acceleration
- H.265/HEVC decode acceleration
- VP9 8-bit encode acceleration
- VP9 8-bit and 10-bit decode acceleration
Processes that can be accelerated with VA API
Video decoding and post-processing processes that can be offloaded and accelerated if both the device drivers and GPU hardware supports them:
- Motion compensation (mocomp)
- Inverse discrete cosine transform (iDCT)
- In-loop deblocking filter
- Intra-frame prediction
- Variable-Length Decoding (VLD), more commonly known as slice-level acceleration
- Bitstream processing (CAVLC/CABAC)
The current interface is window system independent, so that it can potentially be used with graphics sub-systems other than the DRI (Direct Rendering Infrastructure) in X Window System, such as direct with framebuffer, and it can work with third-party DRM (Direct Rendering Manager) libraries. In a nutshell, it is a scheme to pass various types of data buffers from the application to the GPU for decoding or encoding a compressed bit-stream.
Software supporting VA API
- Clutter (toolkit)
- Emby media server (starting from release 3.0.6400) 
- Helix media player (Linux)
- ffmpeg, a command line tool from the FFmpeg project, supports VA-API encoding through CLI with version starting from 3.1 and also libavcodec (also part of the FFmpeg project) does contain code that other applications use to support hardware accelerated decoding, including VA API.
- Fluendo 
- Gnash Flash / SWF player
- GStreamer through gstreamer-vaapi
- Kodi (formerly XBMC Media Center) (Linux)
- Kodibuntu (formerly XBMC Live) (Linux Live CD/USB operating-system)
- MPlayer (v1 with patches) and its fork mpv (native)
- MythTV (starting from release 0.25)
- VLC media player (starting from release 1.1.0)
- Bluecherry DVR client (starting from release 2.2.6)
- Xine (via "xine-lib-vaapi" library) since Version 1.2.3 
- VDPAU (Video Decode and Presentation API for Unix)
- X-Video Bitstream Acceleration (XvBA)
- X-Video Motion Compensation (XvMC)
- DirectX Video Acceleration (DxVA) — Microsoft Windows API analogue
- Distributed Codec Engine (libdce) — Texas Instruments API for the video codec engine in OMAP based embedded systems
- OpenMAX — a royalty-free cross-platform media abstraction API from the Khronos Group
- Nvidia PureVideo — the bit-stream technology from NVIDIA used in their graphics chips to accelerate video decoding on hardware GPU
- Unified Video Decoder (UVD) — the bit-stream technology from ATI used in their graphics chips to accelerate video decoding on hardware GPU
- https://www.phoronix.com/scan.php?page=news_item&px=MTA0NDI VA-API Video Acceleration On Intel Medfield
- https://events.linuxfoundation.org/images/stories/pdf/lceu2012_debski.pdf Video4Linux2 - Path to a Standardized Video Codec API
- Nathan Willis (2009-07-01). "VA API slowly, but surely, making progress". lwn.net.
- MPlayer, FFmpeg Gain VA-API Support
- freedesktop.org - Software/vaapi, About
- http://gitorious.org/crystalhd-video CrystalHD backend for VA-API (libva)
- "Archived copy". Archived from the original on June 20, 2012. Retrieved November 12, 2012. Intel hardware-accelerated media decoding and encoding on Linux
- Intel's Poulsbo Driver A Bloody Mess?
- S3 Graphics Releases Linux Driver With OpenGL 3.0, VA API
- Michael Larabel (2009-02-03). "A NVIDIA VDPAU Back-End For Intel's VA-API". Phoronix. Retrieved 2009-03-13.
- Mailing list entry that describes uses of VA-API
- https://community.helixcommunity.org/Licenses/realplayer_for_mid_faq.html RealPlayer for MID & Intel/Linux FAQ
- Fluendo's New Codecs Support VDPAU, VA-API
- .264 VA-API GPU Video Acceleration For Flash
- "gstreamer-vaapi git".
- XBMC Gets Working Intel VA-API Support
- mplayer branch soon to be merged mainline
- MythTV 0.25 release notes
- VLC 1.1.0 release notes
- release notes