You are not logged in.
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
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
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
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
% 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
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