The libvdpau-va-gl package contains a library which implements the VDPAU library. Libvdpau_va_gl uses OpenGL under the hood to accelerate drawing and scaling and the VA-API (if available) to accelerate video decoding. For now VA-API is available on some Intel chips, and on some AMD video adapters with the help of the libvdpau driver.
Install libvdpau-va-gl by running the following commands:
mkdir build &&
cd build &&
cmake -D CMAKE_BUILD_TYPE=Release \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_POLICY_VERSION_MINIMUM=3.5 \
-W no-dev .. &&
make
Now, as the root user:
make install
Install lib32-libvdpau-va-gl by running the following commands:
rm -rf * &&
CC="gcc -m32" CXX="g++ -m32" \
PKG_CONFIG_PATH=/usr/lib32/pkgconfig \
cmake -D CMAKE_BUILD_TYPE=Release \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_POLICY_VERSION_MINIMUM=3.5 \
-W no-dev .. &&
make
Now, as the root user:
make DESTDIR=$PWD/DESTDIR install && cp -vr DESTDIR/usr/lib/* /usr/lib32 && rm -rf DESTDIR && ldconfig
For a full list of options and values, make sure you are in a build directory, then run cmake -LAH ...
To allow libvdpau to find libvdpau-va-gl, set an environment
variable as the root user:
export VDPAU_DRIVER=va_gl && echo "export VDPAU_DRIVER=va_gl" >> /etc/profile.d/xorg.sh