You are not logged in.

#1 2013-11-28 02:25:22

mixer
Member
Registered: 2013-08-16
Posts: 47

[SOLVED] Trying to get VA-API working

I would like to get hardware accelerated video decoding to work with VLC or MPlayer.  My AMD Radeon card:

$ lspci | grep VGA
02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde XT [Radeon HD 7770 GHz Edition]

According to this table it has hardware accelerated video decoding support.

I have installed: xf86-video-ati, libva-vdpau-driver,  ati-dri.

When I run vainfo I get:

libva info: VA-API version 0.34.0
libva info: va_getDriverName() returns -1
libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
vaInitialize failed with error code -1 (unknown libva error),exit

VLC gives me something similar:

[0x7f38a4c04e18] vdpau generic error: device creation failure: error 1
libva info: VA-API version 0.34.0
libva info: va_getDriverName() returns -1
libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
[0x7f38a4c04e18] vaapi generic error: Failed to initialize the VAAPI device
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory

I am missing a driver, apparently.  I'm not sure what that is.  Ideas?

Last edited by mixer (2013-11-29 15:19:05)

Offline

#2 2013-11-28 04:13:46

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [SOLVED] Trying to get VA-API working

Radeon cards are using vdpau for hardware acceleration. I'm not sure of the status of the 7770 or if you need the stuff from git though. I'm running the git stack through the unofficial [mesa-git] repository including xf86-video-ati-git. It's from lordheavy, so it's a trusted repo.

Offline

#3 2013-11-28 04:28:35

mixer
Member
Registered: 2013-08-16
Posts: 47

Re: [SOLVED] Trying to get VA-API working

Thanks for the reply.

OK, I followed this instead:  https://wiki.archlinux.org/index.php/VDPAU

I installed vdpauinfo, and it gives me:

display: :0   screen: 0
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
Error creating VDPAU device: 1

Offline

#4 2013-11-28 10:55:57

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,842

Re: [SOLVED] Trying to get VA-API working

You may have to set an environment var to make vainfo find the correct driver.
try running  VDPAU_DRIVER=radeonsi vainfo


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2013-11-28 13:51:35

mixer
Member
Registered: 2013-08-16
Posts: 47

Re: [SOLVED] Trying to get VA-API working

% VDPAU_DRIVER=radeonsi vdpauinfo 
display: :0   screen: 0
Error creating VDPAU device: 23

% VDPAU_DRIVER=radeonsi vainfo 
libva info: VA-API version 0.34.0
libva info: va_getDriverName() returns -1
libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
vaInitialize failed with error code -1 (unknown libva error),exit

I tried all the drivers in /usr/lib/vdpau.  The only output I get is from the driver softpipe.

% VDPAU_DRIVER=softpipe vdpauinfo
display: :0   screen: 0
API version: 1
Information string: G3DVL VDPAU Driver Shared Library version 1.0

Video surface:

name   width height types
-------------------------------------------
420    16384 16384  NV12 YV12 
422    16384 16384  NV12 YV12 UYVY YUYV 
444    16384 16384  NV12 YV12 Y8U8V8A8 V8U8Y8A8 

Decoder capabilities:

name               level macbs width height
-------------------------------------------
MPEG1                16 1048576 16384 16384
MPEG2_SIMPLE         16 1048576 16384 16384
MPEG2_MAIN           16 1048576 16384 16384

Output surface:

name              width height nat types
----------------------------------------------------
B8G8R8A8         16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 
R8G8B8A8         16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 
R10G10B10A2      16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 
B10G10R10A2      16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 

Bitmap surface:

name              width height
------------------------------
B8G8R8A8         16384 16384
R8G8B8A8         16384 16384
R10G10B10A2      16384 16384
B10G10R10A2      16384 16384
A8               16384 16384

Video mixer:

feature name                    sup
------------------------------------
DEINTERLACE_TEMPORAL             -
DEINTERLACE_TEMPORAL_SPATIAL     -
INVERSE_TELECINE                 -
NOISE_REDUCTION                  y
SHARPNESS                        y
LUMA_KEY                         -
HIGH QUALITY SCALING - L1        -
HIGH QUALITY SCALING - L2        -
HIGH QUALITY SCALING - L3        -
HIGH QUALITY SCALING - L4        -
HIGH QUALITY SCALING - L5        -
HIGH QUALITY SCALING - L6        -
HIGH QUALITY SCALING - L7        -
HIGH QUALITY SCALING - L8        -
HIGH QUALITY SCALING - L9        -

parameter name                  sup      min      max
-----------------------------------------------------
VIDEO_SURFACE_WIDTH              y        48    16384
VIDEO_SURFACE_HEIGHT             y        48    16384
CHROMA_TYPE                      y  
LAYERS                           y         0        4

attribute name                  sup      min      max
-----------------------------------------------------
BACKGROUND_COLOR                 y  
CSC_MATRIX                       y  
NOISE_REDUCTION_LEVEL            y      0.00     1.00
SHARPNESS_LEVEL                  y     -1.00     1.00
LUMA_KEY_MIN_LUMA                y  
LUMA_KEY_MAX_LUMA                y  

Last edited by mixer (2013-11-28 13:53:42)

Offline

#6 2013-11-29 04:06:42

mixer
Member
Registered: 2013-08-16
Posts: 47

Re: [SOLVED] Trying to get VA-API working

OK, Solved.

I had a custom xorg.conf.d/20-radeon.conf config file that was using AccelMethod of EXA instead of Glamor.

Last edited by mixer (2013-11-29 15:21:56)

Offline

Board footer

Powered by FluxBB