You are not logged in.

#1 2021-06-28 17:05:49

anabasis
Member
Registered: 2020-06-09
Posts: 22

[Solved] ATI - no video acceleration OpenGL

hello,
i think that my video acceleration doesn't work: mpv and vlc works only with X11, if i set GL it can't show video (only audio).

$ lspci|grep VGA
02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] RV370 [Radeon X300/X550/X1050 Series]
$ vlc video.avi 
VLC media player 3.0.14 Vetinari (revision 3.0.13-8-g41878ff4f2)
[8eb82520] gl gl: Initialized libplacebo v3.120.3 (API v120)
[8eb82520] glconv_vaapi_x11 gl error: vaInitialize: unknown libva error
[8eb82520] glconv_vaapi_drm gl error: vaInitialize: unknown libva error
[8eb82520] glconv_vaapi_drm gl error: vaInitialize: unknown libva error
[8ce2dcc0] gl gl: Initialized libplacebo v3.120.3 (API v120)
[93a32620] avcodec decoder: Using G3DVL VDPAU Driver Shared Library version 1.0 for hardware decoding
[mpeg4 @ 0x92b72100] Failed setup for format vdpau: hwaccel initialisation returned error.
[93a32620] avcodec decoder error: existing hardware acceleration cannot be reused
[8ce52b00] gl gl: Initialized libplacebo v3.120.3 (API v120)
[8ce52b00] glconv_vaapi_x11 gl error: vaInitialize: unknown libva error
[8ce52b00] glconv_vaapi_drm gl error: vaInitialize: unknown libva error
[8ce52b00] glconv_vaapi_drm gl error: vaInitialize: unknown libva error
[8d0e02f0] gl gl: Initialized libplacebo v3.120.3 (API v120)
glxinfo |grep direct
direct rendering: Yes
    GL_EXT_copy_texture, GL_EXT_direct_state_access, 

glxgears show black screen

$ vainfo
vaInitialize failed with error code -1 (unknown libva error),exit
$ 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     2048  2048  NV12 YV12 
422     2048  2048  
444     2048  2048  Y8U8V8A8 V8U8Y8A8 
420_16  2048  2048  
422_16  2048  2048  
444_16  2048  2048  

Decoder capabilities:

name                        level macbs width height
----------------------------------------------------
MPEG1                           0 16384  2048  2048
MPEG2_SIMPLE                    3 16384  2048  2048
MPEG2_MAIN                      3 16384  2048  2048
H264_BASELINE                  --- not supported ---
H264_MAIN                      --- not supported ---
H264_HIGH                      --- not supported ---
VC1_SIMPLE                     --- not supported ---
VC1_MAIN                       --- not supported ---
VC1_ADVANCED                   --- not supported ---
MPEG4_PART2_SP                 --- not supported ---
MPEG4_PART2_ASP                --- not supported ---
DIVX4_QMOBILE                  --- not supported ---
DIVX4_MOBILE                   --- not supported ---
DIVX4_HOME_THEATER             --- not supported ---
DIVX4_HD_1080P                 --- not supported ---
DIVX5_QMOBILE                  --- not supported ---
DIVX5_MOBILE                   --- not supported ---
DIVX5_HOME_THEATER             --- not supported ---
DIVX5_HD_1080P                 --- not supported ---
H264_CONSTRAINED_BASELINE      --- not supported ---
H264_EXTENDED                  --- not supported ---
H264_PROGRESSIVE_HIGH          --- not supported ---
H264_CONSTRAINED_HIGH          --- not supported ---
H264_HIGH_444_PREDICTIVE       --- not supported ---
VP9_PROFILE_0                  --- not supported ---
VP9_PROFILE_1                  --- not supported ---
VP9_PROFILE_2                  --- not supported ---
VP9_PROFILE_3                  --- not supported ---
HEVC_MAIN                      --- not supported ---
HEVC_MAIN_10                   --- not supported ---
HEVC_MAIN_STILL                --- not supported ---
HEVC_MAIN_12                   --- not supported ---
HEVC_MAIN_444                  --- not supported ---
HEVC_MAIN_444_10               --- not supported ---
HEVC_MAIN_444_12               --- not supported ---

Output surface:

name              width height nat types
----------------------------------------------------
B8G8R8A8          2048  2048    y  NV12 YV12 Y8U8V8A8 V8U8Y8A8 P010 P016 A4I4 I4A4 A8I8 I8A8 
R8G8B8A8          2048  2048    y  NV12 YV12 Y8U8V8A8 V8U8Y8A8 P010 P016 A4I4 I4A4 A8I8 I8A8 

Bitmap surface:

name              width height
------------------------------
B8G8R8A8          2048  2048
R8G8B8A8          2048  2048
A8                2048  2048

Video mixer:

feature name                    sup
------------------------------------
DEINTERLACE_TEMPORAL             y
DEINTERLACE_TEMPORAL_SPATIAL     -
INVERSE_TELECINE                 -
NOISE_REDUCTION                  y
SHARPNESS                        y
LUMA_KEY                         y
HIGH QUALITY SCALING - L1        y
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     2048
VIDEO_SURFACE_HEIGHT             y        48     2048
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  
$ pacman -Q|grep mesa
mesa 21.1.1-1.1
mesa-demos 8.4.0-4.0
mesa-vdpau 21.1.1-1.1
$ pacman -Q|grep vdpau
libvdpau 1.4-1.0
mesa-vdpau 21.1.1-1.1
vdpauinfo 1.4-1.0
$ lsmod
Module                  Size  Used by
vfat                   20480  1
fat                    69632  1 vfat
uas                    24576  0
usb_storage            61440  2 uas
cfg80211              729088  0
rfkill                 24576  2 cfg80211
8021q                  28672  0
garp                   16384  1 8021q
mrp                    20480  1 8021q
stp                    16384  1 garp
llc                    16384  2 garp,stp
snd_hda_codec_analog    16384  1
snd_hda_codec_generic    73728  1 snd_hda_codec_analog
ledtrig_audio          16384  1 snd_hda_codec_generic
snd_hda_intel          40960  3
snd_intel_dspcfg       28672  1 snd_hda_intel
soundwire_intel        40960  1 snd_intel_dspcfg
soundwire_generic_allocation    16384  1 soundwire_intel
soundwire_cadence      32768  1 soundwire_intel
snd_hda_codec         126976  3 snd_hda_intel,snd_hda_codec_analog,snd_hda_codec_generic
snd_hda_core           81920  4 snd_hda_intel,snd_hda_codec,snd_hda_codec_analog,snd_hda_codec_generic
snd_hwdep              16384  1 snd_hda_codec
saa7134_alsa           24576  1
snd_soc_core          249856  1 soundwire_intel
snd_compress           24576  1 snd_soc_core
tda9887                16384  1
mousedev               20480  0
tda8290                24576  0
ac97_bus               16384  1 snd_soc_core
snd_pcm_dmaengine      16384  1 snd_soc_core
snd_pcm               114688  8 snd_compress,snd_hda_intel,saa7134_alsa,snd_hda_codec,soundwire_intel,snd_pcm_dmaengine,snd_hda_core,snd_soc_core
tuner                  28672  1
saa7134               167936  1 saa7134_alsa
snd_timer              36864  1 snd_pcm
snd                    77824  18 snd_compress,snd_hda_intel,saa7134_alsa,snd_hwdep,snd_hda_codec,snd_hda_codec_analog,snd_timer,snd_hda_codec_generic,snd_soc_core,snd_pcm
tveeprom               24576  1 saa7134
soundcore              16384  1 snd
videobuf2_dma_sg       16384  1 saa7134
videobuf2_memops       20480  1 videobuf2_dma_sg
videobuf2_v4l2         28672  1 saa7134
ppdev                  24576  0
coretemp               20480  0
videobuf2_common       53248  2 saa7134,videobuf2_v4l2
kvm_intel             299008  0
videodev              212992  4 tuner,saa7134,videobuf2_common,videobuf2_v4l2
kvm                   696320  1 kvm_intel
mc                     53248  5 tuner,saa7134,videobuf2_common,videodev,videobuf2_v4l2
irqbypass              16384  1 kvm
pcspkr                 16384  0
via_rhine              32768  0
mii                    16384  1 via_rhine
i2c_viapro             20480  0
parport_pc             45056  0
asus_atk0110           24576  0
parport                57344  2 parport_pc,ppdev
mac_hid                16384  0
via_agp                16384  1
acpi_cpufreq           24576  1
fuse                  110592  3
ip_tables              24576  0
x_tables               36864  1 ip_tables
ext4                  716800  2
crc32c_generic         16384  3
crc16                  16384  1 ext4
mbcache                16384  1 ext4
jbd2                  114688  1 ext4
sr_mod                 24576  0
cdrom                  61440  1 sr_mod
ata_generic            16384  0
pata_acpi              16384  0
serio_raw              20480  0
atkbd                  28672  0
libps2                 20480  1 atkbd
sata_via               20480  0
pata_via               16384  3
pata_jmicron           16384  0
floppy                 65536  0
i8042                  28672  0
serio                  24576  4 serio_raw,atkbd,i8042
usbhid                 53248  0
radeon               1376256  2
i2c_algo_bit           16384  1 radeon
drm_kms_helper        208896  1 radeon
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
fb_sys_fops            16384  1 drm_kms_helper
cec                    45056  1 drm_kms_helper
ttm                    86016  1 radeon
drm                   442368  5 radeon,ttm,drm_kms_helper
agpgart                40960  3 via_agp,ttm,drm

How can i solve?

Last edited by anabasis (2021-07-02 10:24:08)

Offline

#2 2021-06-29 08:43:21

mistersmee
Member
From: India
Registered: 2020-12-24
Posts: 65

Re: [Solved] ATI - no video acceleration OpenGL

As of now, there is no way to get hardware video acceleration on these older ATI GPUs. I have the same problem, mine is a Mobility Radeon X1300 (RV515).

The proprietary driver that enabled hardware acceleration on these GPUs was called AMD Catalyst, formerly fglrx. This was abandoned long ago by AMD. A while ago, it was still possible to install this driver on Arch and get it working, but it involved using older versions of the kernel, of X.org, and more headaches like that. And the performance benefit did not outweigh the effort to maintain it and to install it, so it was abandoned.

To get an idea of the performance "benefit", my card supports H.264 hardware accelerated video decoding, but only on resolutions at or lower than 480p. To get such a low return, I'd have to run older and less secure versions of the kernel, and X.org. Not really worth it, IMO.

Last edited by mistersmee (2021-06-29 08:43:57)

Offline

#3 2021-06-29 08:47:22

mistersmee
Member
From: India
Registered: 2020-12-24
Posts: 65

Re: [Solved] ATI - no video acceleration OpenGL

Offline

#4 2021-06-29 10:27:11

anabasis
Member
Registered: 2020-06-09
Posts: 22

Re: [Solved] ATI - no video acceleration OpenGL

mistersmee wrote:

As of now, there is no way to get hardware video acceleration on these older ATI GPUs. I have the same problem, mine is a Mobility Radeon X1300 (RV515).

Thanks for info!

I never installed catalyst, i always used xf86-video-ati. Until a year ago video acceleration worked good, and i also played retrogames with retroarch. Now in unplayable.

I have tried to downgrade kernel (4x) but i get a kernel panic.

Last edited by anabasis (2021-06-29 10:28:08)

Offline

#5 2021-07-02 10:23:38

anabasis
Member
Registered: 2020-06-09
Posts: 22

Re: [Solved] ATI - no video acceleration OpenGL

than i SOLVED downgrading xf86-video-ati:

sudo pacman -U https://archive.archlinux32.org/packages/x/xf86-video-ati/xf86-video-ati-1:19.1.0-1.1-pentium4.pkg.tar.zst

Now hardware acceleration works good.

Last edited by anabasis (2021-07-02 10:25:13)

Offline

Board footer

Powered by FluxBB