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.
Development versions of GLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.
Libvdpau-va-gl Driver Download (HTTP): https://github.com/i-rinat/libvdpau-va-gl/archive/v0.4.2/libvdpau-va-gl-0.4.2.tar.gz
Install libvdpau-va-gl by running the following commands:
mkdir build && cd build && cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=$XORG_PREFIX .. && make
To test the results, issue: make check. The tests must be run from an Xorg environment.
Now, as the root
user:
make install
First clean the build directory:
rm -rf *
Install lib32-libvdpau-va-gl by running the following commands:
CC="gcc -m32" CXX="g++ -m32" \ PKG_CONFIG_PATH=$XORG_PREFIX/lib32/pkgconfig \ cmake -D CMAKE_BUILD_TYPE=Release \ -D CMAKE_INSTALL_PREFIX=$XORG_PREFIX \ -D CMAKE_INSTALL_LIBDIR=lib32 \ .. && make
Now, as the root
user:
make DESTDIR=$PWD/DESTDIR install cp -vr DESTDIR/$XORG_PREFIX/lib32/* $XORG_PREFIX/lib32 rm -rf DESTDIR ldconfig
To allow libvdpau to find libvdpau-va-gl, set an environment variable:
echo "export VDPAU_DRIVER=va_gl" >> ~/xorg.sh