Debian, radeon and vdpau

Recently I encountered some warning message in terminal while playing video:

Failed to open VDPAU backend libvdpau_r600.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1


I’m use open source vide driver radeon with such videocard:

lspci | grep VGA
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Wrestler [Radeon HD 6310]


So to fix this I downloaded from Arch Linux repos this files:

ls tmp/vdpau/ | grep pkg
ati-dri-10.2.5-1-i686.pkg.tar.xz
llvm-libs-3.4.2-1-i686.pkg.tar.xz


And extracted all libraried to lib directory:

ls tmp/vdpau/lib/
libLLVM-3.4.2.so libvdpau_r600.so libvdpau_r600.so.1.0.0
libLLVM-3.4.so libvdpau_r600.so.1


Create script with something like this:

export VDPAU_DRIVER=r600
export LIBVA_DRIVER_NAME=vdpau
export LD_LIBRARY_PATH="/home/max/tmp/vdpau/lib"


After this you will achieve working vdpau:

Starting playback...
VIDEO: 1280x720 25.000 fps 1739.2 kbps (217.4 kB/s)
VO: [vdpau] 1280x720 => 1280x720 Planar YV12
[vdpau] Got display refresh rate 59.973 Hz.
[vdpau] If that value looks wrong give the -vo vdpau:fps=X suboption manually.


Enjoy!

vdpau

Debian, radeon and vdpau