Video Decode and Presentation API for Unix (VDPAU) is a royalty-free application programming interface (API) as well as its implementation as free and open-source library (libvdpau) distributed under the MIT License. VDPAU is also supported by Nvidia.
1.2 / February 28, 2019
|Written in||C, C++|
The VDPAU interface is to be implemented by device drivers, such as Nvidia GeForce driver, nouveau, amdgpu, to offer end-user software, such as VLC media player or GStreamer, a standardized access to available video decompression acceleration hardware in the form of application-specific integrated circuit (ASIC) blocks on graphics processing units (GPU), such as Nvidia's PureVideo or AMD's Unified Video Decoder and make use of it.
Functional range of the interfaceEdit
Currently, the portions capable of being offloaded by VDPAU onto the GPU are motion compensation (mo comp), inverse discrete cosine transform (iDCT), VLD (variable-length decoding) and deblocking for MPEG-1, MPEG-2, MPEG-4 ASP (MPEG-4 Part 2), H.264/MPEG-4 AVC and VC-1, WMV3/WMV9 encoded videos. Which specific codecs of these that can be offloaded to the GPU depends on the generation version of the GPU hardware.
Device drivers and video controllers implementing VDPAUEdit
S3 Graphics added VDPAU to the Linux drivers of their Chrome 400 video cards. As of version 14.02.17 of its Linux device driver, VDPAU is available with the S3 Chrome 430 GT, S3 Chrome 440 GTX, S3 Chrome 530 GT and the S3 Chrome 540 GTX hardware.
Nvidia hopes other GPU designers will make their products compatible with the open source VDPAU library and provide drivers with VDPAU acceleration by mentioning example names of hardware specific drivers for Intel and ATI: libvdpau_intel.so and libvdpau_ati.so. Intel has stated they are considering VDPAU.
Generic VDPAU driverEdit
As of late 2013, there is an independently developed back-end driver that in turn uses OpenGL (for drawing and scaling), and VA-API if available (for decoding). It has been reported to work on some Intel graphics and Adobe Flash Player.
The accelerated scaling with just OpenGL functionality is needed mostly because of Flash player, which uses un-accelerated scaling if VDPAU is unavailable. Almost all other video software that runs on GNU/Linux supports Xv. It's essential for full-screen video on slower computers without native VDPAU support.
The VDPAU to VA-API translation for HW decoding is useful with recent Intel graphics hardware, as some software supports HW decoding through VDPAU but not VA-API.
Software that supports VDPAUEdit
- Avidemux as of version 2.6
- Kodi (formerly XBMC)
- Adobe Flash 10.2 Stage Video and later versions
- VLC media player 2.1
VDPAU can also be used as a backend for VA-API and OpenMAX IL, which themselves cover a subset of the VDPAU capabilities; so any software that uses the VA-API or OpenMAX IL is also partly capable of using VDPAU (e.g., VLC media player).
Nvidia VDPAU Feature SetsEdit
Nvidia VDPAU Feature Sets are different hardware generations of GPU's supporting different levels of (Nvidia PureVideo) hardware decoding capabilities. For feature sets A, B and C, the maximum video width and height are 2048 pixels, minimum width and height 48 pixels, and all codecs are currently limited to a maximum of 8192 macroblocks (8190 for VC-1/WMV9). Partial acceleration means that VLD (bitstream) decoding is performed on the CPU, with the GPU only performing IDCT, motion compensation and deblocking. Complete acceleration means that the GPU performs all of VLD, IDCT, motion compensation and deblocking.
- Feature Set A
- Supports complete acceleration for H.264 and partial acceleration for MPEG-1, MPEG-2, VC-1/WMV9
- Feature Set B
- Supports complete acceleration for MPEG-1, MPEG-2, VC-1/WMV9 and H.264.
- Note that all Feature Set B hardware cannot decode H.264 for the following widths: 769-784, 849-864, 929-944, 1009-1024, 1793-1808, 1873-1888, 1953-1968, 2033-2048 pixels.
- Feature Set C
- Supports complete acceleration for MPEG-1, MPEG-2, MPEG-4 Part 2 (a.k.a. MPEG-4 ASP), VC-1/WMV9 and H.264.
- Global motion compensation and Data Partitioning are not supported for MPEG-4 Part 2.
- Feature Set D
- Similar to feature set C but added support for decoding H.264 with a resolution of up to 4032 × 4080 and MPEG-1/MPEG-2 with a resolution of up to 4032 × 4048 pixels.
- Feature Set E
- Similar to feature set D but added support for decoding H.264 with a resolution of up to 4096 × 4096 and MPEG-1/MPEG-2 with a resolution of up to 4080 × 4080 pixels. GPUs with VDPAU feature set E support an enhanced error concealment mode which provides more robust error handling when decoding corrupted video streams.
- Feature Set F
- Introduced dedicated HEVC Main (8-bit) and Main 10 (10-bit) video decoding up to 4096 × 2304 pixels resolution.
- Feature Set G
- Hardware support for HEVC Main 12 (12-bit) video decoding but VDPAU does not currently support this profile.
- Feature Set H
- Feature Set H are capable of hardware-accelerated decoding of 8192x8192 (8k resolution) H.265/HEVC video streams.
libvdpau standalone VDPAU libraryEdit
The libvdpau standalone VDPAU library is distributed by Nvidia independently of their proprietary Linux graphics driver in an effort to help the adoption of VDPAU by those outside of Nvidia. This open source library package contains a wrapper library and a debugging library allowing other manufacturers to implement VDPAU in their device drivers.
- Unified Video Decoder
- DirectX Video Acceleration (DXVA) – the VDPAU equivalent API for Microsoft Windows operating-system.
- Video Acceleration API (VA API) – an alternative video acceleration API for Linux/UNIX operating-system.
- X-Video Bitstream Acceleration (XvBA) – an alternative video acceleration API for Linux/UNIX operating-system.
- X-Video Motion Compensation (XvMC) API – alternative and oldest video acceleration API for Linux/UNIX operating-system.
- Distributed Codec Engine (libcde) is a Texas Instruments API for the video codec engine in OMAP based embedded systems
- Video Decode Acceleration Framework is Apple Inc.'s API for hardware-accelerated decoding of H.264 on Mac OS X
- VideoToolbox is an API from Apple Inc. for hardware-accelerated decoding on Apple TV and Mac OS X.
- OpenMAX IL (Open Media Acceleration Integration Layer) - a royalty-free cross-platform media abstraction API from the Khronos Group
- "Announcing libvdpau 0.2". freedesktop.org. 2009-09-17.
- Michael Larabel (2008-11-14). "NVIDIA Driver Brings PureVideo Features To Linux". Phoronix. Retrieved 2009-03-13.
- Michael Larabel (2008-11-14). "NVIDIA VDPAU Benchmarks". Phoronix. Retrieved 2009-03-13.
- "VDPAU: Video Decode and Presentation API for Unix". Nvidia.
- "Video4Linux2: Path to a Standardized Video Codec API" (PDF). Events.linusfoundation.org\accessdate=2016-05-25.
- "NVIDIA Releases Standalone VDPAU Library – Phoronix". Phoronix.
- Larabel, Michael (9 March 2015). "NVIDIA Announces VDPAU 1.0 With HEVC/H.265 Decoding". Phoronix. Retrieved 9 March 2015.
- "PureVideo Support Table" (PDF). Nvidia. Retrieved 2014-05-22.
- "Archived copy". Archived from the original on 2012-07-08. Retrieved 2010-02-28.CS1 maint: Archived copy as title (link)
- "[PATCH] drm/radeon: UVD support for RV710-SI". Lists.freedesktop.org. Retrieved 2016-05-25.
- "AMD Releases Open-Source UVD Video Support – Phoronix". Phoronix. Retrieved 2016-05-25.
- "VDPAU: X11 Window System Integration Layer". Download.nvidia.com.
- "Intel Considering VDPAU Support For X.Org Driver – Phoronix". Phoronix. Retrieved 2016-05-25.
- "GitHub – linux-sunxi/libvdpau-sunxi: Experimental VDPAU for Allwinner sunxi SoCs (WiP)". GitHub. Retrieved 2016-05-25.
- "GitHub – i-rinat/libvdpau-va-gl: VDPAU driver with OpenGL/VAAPI backend". GitHub. Retrieved 2016-05-25.
- "Adobe Flash Player Hardware Acceleration on Intel Graphics Cards". WebUpd8. 5 September 2013. Retrieved 2016-05-25.
- "Archived copy". Archived from the original on June 26, 2009. Retrieved June 26, 2009.CS1 maint: Archived copy as title (link)
- "Fluendo's New Codecs Support VDPAU, VA-API – Phoronix". Phoronix.com. Retrieved 2016-05-25.
- Michael Larabel (2008-11-29). "MythTV Adds Support For NVIDIA VDPAU". Phoronix. Retrieved 2009-03-13.
- "XBMC for Linux VDPAU – NVIDIA GPU video decoding support (now in the mainline SVN)". Xbmc.org. Archived from the original on 2009-02-28. Retrieved 2016-05-25.
- "Kodi – Open Source Home Theater Software". Xbmc.org. Archived from the original on 2009-04-14. Retrieved 2016-05-25.
- "XBMC Receives Mainline Support For VDPAU – Phoronix". Phoronix.
- "XBMC Receives Mainline Support For VDPAU". Phoronix.com. 2009-03-23. Retrieved 2016-05-25.
- Michael Larabel (2008-12-17). "Xine Picks Up Support For NVIDIA's VDPAU". Phoronix. Retrieved 2009-03-13.
- "xine-lib/xine-lib-1.2: changeset 11335:9b68f6efb713". Debian.org. Retrieved 2016-05-25.
- ddennedy (2009-11-30). "VDPAU for MLT 0.4.11 Git version". MLT. Archived from the original on 2010-02-27. Retrieved 2009-11-30.
- "Flash Player 10.2 beta – with VDPAU acceleration! : linux". reddit.
- "mpv Reference Manual". Retrieved 2016-04-09.
- Michael Larabel (2009-02-03). "A NVIDIA VDPAU Back-End For Intel's VA-API". Phoronix. Retrieved 2009-03-13.
- "Appendix G. VDPAU Support". Nvidia. 2016-12-14. Retrieved 2017-01-03.
- "VDPAU For NVIDIA's Maxwell GPU On Linux". Phoronix.com. 2014-03-03. Retrieved 2016-05-25.
- "Appendix G. VDPAU Support". us.download.nvidia.com. Retrieved 2017-09-17.
- http://www.nvidia.com/download/driverResults.aspx/104284/en-us Nvidia LINUX X64 (AMD64/EM64T) DISPLAY DRIVER Version: 367.27
- "[ANNOUNCE] libvdpau 0.2". Lists.freedesktop/org. Retrieved 2016-05-25.
- "NVIDIA Proposes VDPAU For DRI2 Patches – Phoronix". Phoronix. Retrieved 2016-05-25.
- "[PULL] Add VDPAU drivers to the server's DRI2 implementation". xorg. Retrieved 2016-05-25.
- "VideoToolbox - Apple Developer Documentation". developer.apple.com. Retrieved 2018-08-05.