You are not logged in.

#1 2023-10-04 11:30:19

myxi
Member
Registered: 2023-09-27
Posts: 6

VA-API Can't Detect Supported Encoders on My Arch Linux

-- LOGS -- Arch Linux --

vainfo

Trying display: wayland
Trying display: x11
vainfo: VA-API version: 1.20 (libva 2.20.0)
vainfo: Driver version: Mesa Gallium driver 23.2.1-arch1.1 for KABINI (, LLVM 16.0.6, DRM 2.50, 6.5.5-arch1-1)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :    VAEntrypointVLD
      VAProfileMPEG2Main              :    VAEntrypointVLD
      VAProfileVC1Simple              :    VAEntrypointVLD
      VAProfileVC1Main                :    VAEntrypointVLD
      VAProfileVC1Advanced            :    VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:    VAEntrypointVLD
      VAProfileH264Main               :    VAEntrypointVLD
      VAProfileH264High               :    VAEntrypointVLD
      VAProfileNone                   :    VAEntrypointVideoProc
glxinfo -B

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: AMD (0x1002)
    Device: KABINI (, LLVM 16.0.6, DRM 2.50, 6.5.5-arch1-1) (0x9851)
    Version: 23.2.1
    Accelerated: yes
    Video memory: 512MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.5
    Max compat profile version: 4.5
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
    VBO free memory - total: 299 MB, largest block: 299 MB
    VBO free aux. memory - total: 2003 MB, largest block: 2003 MB
    Texture free memory - total: 299 MB, largest block: 299 MB
    Texture free aux. memory - total: 2003 MB, largest block: 2003 MB
    Renderbuffer free memory - total: 299 MB, largest block: 299 MB
    Renderbuffer free aux. memory - total: 2003 MB, largest block: 2003 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 512 MB
    Total available memory: 2555 MB
    Currently available dedicated video memory: 299 MB
OpenGL vendor string: AMD
OpenGL renderer string: KABINI (, LLVM 16.0.6, DRM 2.50, 6.5.5-arch1-1)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 23.2.1-arch1.1
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.5 (Compatibility Profile) Mesa 23.2.1-arch1.1
OpenGL shading language version string: 4.50
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 23.2.1-arch1.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
lspci -k

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h (Models 30h-3fh) Processor Root Complex
	Subsystem: Hewlett-Packard Company Family 16h (Models 30h-3fh) Processor Root Complex
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Mullins [Radeon R4/R5 Graphics] (rev 40)
	Subsystem: Hewlett-Packard Company Mullins [Radeon R4/R5 Graphics]
	Kernel driver in use: radeon
	Kernel modules: radeon, amdgpu
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Kabini HDMI/DP Audio
	Subsystem: Hewlett-Packard Company Kabini HDMI/DP Audio
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h (Models 30h-3fh) Host Bridge
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1
	Subsystem: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1
	Kernel driver in use: pcieport
00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1
	Subsystem: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1
	Kernel driver in use: pcieport
00:08.0 Encryption controller: Advanced Micro Devices, Inc. [AMD] Kabini/Mullins PSP-Platform Security Processor
	Subsystem: Advanced Micro Devices, Inc. [AMD] Kabini/Mullins PSP-Platform Security Processor
	Kernel driver in use: ccp
	Kernel modules: ccp
00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 11)
	Subsystem: Hewlett-Packard Company FCH USB XHCI Controller
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 39)
	Subsystem: Hewlett-Packard Company FCH SATA Controller [AHCI mode]
	Kernel driver in use: ahci
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 39)
	Subsystem: Hewlett-Packard Company FCH USB EHCI Controller
	Kernel driver in use: ehci-pci
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 39)
	Subsystem: Hewlett-Packard Company FCH USB EHCI Controller
	Kernel driver in use: ehci-pci
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 42)
	Subsystem: Hewlett-Packard Company FCH SMBus Controller
	Kernel driver in use: piix4_smbus
	Kernel modules: i2c_piix4, sp5100_tco
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 02)
	Subsystem: Hewlett-Packard Company FCH Azalia Controller
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11)
	Subsystem: Hewlett-Packard Company FCH LPC Bridge
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h (Models 30h-3fh) Processor Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h (Models 30h-3fh) Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h (Models 30h-3fh) Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h (Models 30h-3fh) Processor Function 3
	Kernel driver in use: k10temp
	Kernel modules: k10temp
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h (Models 30h-3fh) Processor Function 4
	Kernel driver in use: fam15h_power
	Kernel modules: fam15h_power
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h (Models 30h-3fh) Processor Function 5
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
	DeviceName: Hanksville Gbe Lan Connection
	Subsystem: Hewlett-Packard Company RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
	Kernel driver in use: r8169
	Kernel modules: r8169
05:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter
	Subsystem: Hewlett-Packard Company RTL8723BE PCIe Wireless Network Adapter
	Kernel driver in use: rtl8723be
	Kernel modules: rtl8723be

-- LOGS -- Arch Linux --

-- LOGS -- Xubuntu Linux 22.04 --

vainfo

vainfo: VA-API version: 1.14 (libva 2.12.0)
vainfo: Driver version: Mesa Gallium driver 23.0.4-0ubuntu1~22.04.1 for KABINI (, LLVM 15.0.7, DRM 2.50, 6.2.0-26-generic)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :    VAEntrypointVLD
      VAProfileMPEG2Main              :    VAEntrypointVLD
      VAProfileVC1Simple              :    VAEntrypointVLD
      VAProfileVC1Main                :    VAEntrypointVLD
      VAProfileVC1Advanced            :    VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:    VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:    VAEntrypointEncSlice
      VAProfileH264Main               :    VAEntrypointVLD
      VAProfileH264Main               :    VAEntrypointEncSlice
      VAProfileH264High               :    VAEntrypointVLD
      VAProfileH264High               :    VAEntrypointEncSlice
      VAProfileNone                   :    VAEntrypointVideoProc
glxinfo -B

name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: AMD (0x1002)
    Device: KABINI (, LLVM 15.0.7, DRM 2.50, 6.2.0-26-generic) (0x9851)
    Version: 23.0.4
    Accelerated: yes
    Video memory: 512MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.5
    Max compat profile version: 4.5
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
    VBO free memory - total: 270 MB, largest block: 270 MB
    VBO free aux. memory - total: 2009 MB, largest block: 2009 MB
    Texture free memory - total: 270 MB, largest block: 270 MB
    Texture free aux. memory - total: 2009 MB, largest block: 2009 MB
    Renderbuffer free memory - total: 270 MB, largest block: 270 MB
    Renderbuffer free aux. memory - total: 2009 MB, largest block: 2009 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 512 MB
    Total available memory: 2555 MB
    Currently available dedicated video memory: 270 MB
OpenGL vendor string: AMD
OpenGL renderer string: KABINI (, LLVM 15.0.7, DRM 2.50, 6.2.0-26-generic)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 23.0.4-0ubuntu1~22.04.1
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.5 (Compatibility Profile) Mesa 23.0.4-0ubuntu1~22.04.1
OpenGL shading language version string: 4.50
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 23.0.4-0ubuntu1~22.04.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
lspci -k

0:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h (Models 30h-3fh) Processor Root Complex
	Subsystem: Hewlett-Packard Company Family 16h (Models 30h-3fh) Processor Root Complex
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Mullins [Radeon R4/R5 Graphics] (rev 40)
	Subsystem: Hewlett-Packard Company Mullins [Radeon R4/R5 Graphics]
	Kernel driver in use: radeon
	Kernel modules: radeon, amdgpu
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Kabini HDMI/DP Audio
	Subsystem: Hewlett-Packard Company Kabini HDMI/DP Audio
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h (Models 30h-3fh) Host Bridge
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1
	Subsystem: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1
	Kernel driver in use: pcieport
00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1
	Subsystem: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1
	Kernel driver in use: pcieport
00:08.0 Encryption controller: Advanced Micro Devices, Inc. [AMD] Kabini/Mullins PSP-Platform Security Processor
	Subsystem: Advanced Micro Devices, Inc. [AMD] Kabini/Mullins PSP-Platform Security Processor
	Kernel driver in use: ccp
	Kernel modules: ccp
00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 11)
	Subsystem: Hewlett-Packard Company FCH USB XHCI Controller
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 39)
	Subsystem: Hewlett-Packard Company FCH SATA Controller [AHCI mode]
	Kernel driver in use: ahci
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 39)
	Subsystem: Hewlett-Packard Company FCH USB EHCI Controller
	Kernel driver in use: ehci-pci
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 39)
	Subsystem: Hewlett-Packard Company FCH USB EHCI Controller
	Kernel driver in use: ehci-pci
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 42)
	Subsystem: Hewlett-Packard Company FCH SMBus Controller
	Kernel driver in use: piix4_smbus
	Kernel modules: i2c_piix4, sp5100_tco
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 02)
	Subsystem: Hewlett-Packard Company FCH Azalia Controller
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11)
	Subsystem: Hewlett-Packard Company FCH LPC Bridge
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h (Models 30h-3fh) Processor Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h (Models 30h-3fh) Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h (Models 30h-3fh) Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h (Models 30h-3fh) Processor Function 3
	Kernel driver in use: k10temp
	Kernel modules: k10temp
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h (Models 30h-3fh) Processor Function 4
	Kernel driver in use: fam15h_power
	Kernel modules: fam15h_power
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h (Models 30h-3fh) Processor Function 5
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
	DeviceName: Hanksville Gbe Lan Connection
	Subsystem: Hewlett-Packard Company RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
	Kernel driver in use: r8169
	Kernel modules: r8169
05:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter
	Subsystem: Hewlett-Packard Company RTL8723BE PCIe Wireless Network Adapter
	Kernel driver in use: rtl8723be
	Kernel modules: rtl8723be

-- LOGS -- Xubuntu Linux 22.04 --

I tried installing OBS in a Xubuntu live session and VA-API was working fine there out-of-the-box. You can also see why with the logs above: because VA-API of my Arch Linux can't detect my APU's encoding capabilities, but Xubuntu's does. Do I have to downgrade my kernel or something? Why is the result different? Can I fix this?

Offline

#2 2023-10-05 08:55:34

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,091

Re: VA-API Can't Detect Supported Encoders on My Arch Linux

Many possible causes. can you post xorg logs from both ?

I'm puzzled by the mention of Kabini and Mullins as those come from different microarchitecture (Jaguar and Puma)
Your gpu is shown as having 1002:9851 which does correspond to Mullins [Radeon R4/R5 Graphics] .

What device type & model is this ?


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

#3 2023-10-07 13:22:33

myxi
Member
Registered: 2023-09-27
Posts: 6

Re: VA-API Can't Detect Supported Encoders on My Arch Linux

https://pastebin.com/JsFgwjiS
https://pastebin.com/m09znhSp
Logs from Arch Linux.

https://pastebin.com/izyMfbQK
Logs from Xubuntu. Previously and now, both times I have used a live media session of Xubuntu to provide the information gathered from Xubuntu 22.04.

> What device type & model is this ?
It is a laptop,

    Architecture: x86-64
 Hardware Vendor: HP
  Hardware Model: HP 245 G5 Notebook PC
Firmware Version: F.21
   Firmware Date: Tue 2016-11-01
    Firmware Age: 6y 11month 5d

Last edited by myxi (2023-10-07 13:23:53)

Offline

#4 2023-10-07 17:49:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,031

Re: VA-API Can't Detect Supported Encoders on My Arch Linux

Is this a regression?
Did you try to downgrade mesa to 23.1.8-1 ?

Online

#5 2023-10-08 07:27:59

myxi
Member
Registered: 2023-09-27
Posts: 6

Re: VA-API Can't Detect Supported Encoders on My Arch Linux

I am not sure if it is a regression. I have another thing to share. Before I upgraded my Arch Linux recently, `vainfo` was pretty much empty, no decoders at all; only thing that was there was `VAProfileNone`. Then I upgraded my system and saw that now it at least supports the decoders. From this I got the idea to see if Ubuntu does anything different on it.

I have not tried to downgrade anything yet. Should I? I thought downgrading Mesa can be troublesome so I didn't, plus it didn't really give a good result with the Mesa version that was before the system upgrade, so I was clueless about which version to try.

Last edited by myxi (2023-10-08 07:31:35)

Offline

#6 2023-10-08 10:44:10

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,031

Re: VA-API Can't Detect Supported Encoders on My Arch Linux

I have not tried to downgrade anything yet. Should I?

Before I upgraded my Arch Linux recently, `vainfo` was pretty much empty

Inspect your pacman log what was updated from which version, 23.2.x has shown up multiple times now and mesa and libva-mesa-driver have very recently also seen a rebuild, https://gitlab.archlinux.org/archlinux/ … dc2fd8efaa

Online

#7 2023-10-08 11:50:04

myxi
Member
Registered: 2023-09-27
Posts: 6

Re: VA-API Can't Detect Supported Encoders on My Arch Linux

[2023-10-04T12:09:38+0530] [ALPM] upgraded mesa (1:23.1.8-1 -> 1:23.2.1-1)
[2023-10-04T12:13:36+0530] [ALPM] upgraded mesa-utils (9.0.0-2 -> 9.0.0-3)
[2023-10-04T12:14:06+0530] [ALPM] upgraded libva-mesa-driver (1:23.1.8-1 -> 1:23.2.1-1)
[2023-10-04T12:14:26+0530] [ALPM] upgraded linux (6.5.4.arch2-1 -> 6.5.5.arch1-1)
[2023-10-04T12:15:32+0530] [ALPM] upgraded linux-headers (6.5.4.arch2-1 -> 6.5.5.arch1-1)
[2023-10-04T12:15:43+0530] [ALPM] upgraded mesa-vdpau (1:23.1.8-1 -> 1:23.2.1-1)

A list of relevant packages that were upgraded in the last system upgrade.

Full list of package upgrades during and after the last system upgrade: https://pastebin.com/iyfwiJnS

Offline

#8 2023-10-08 12:58:33

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,031

Re: VA-API Can't Detect Supported Encoders on My Arch Linux

Otoh, if you had no VAAPI w/ 23.1.8-1 at all and unless there was some other problem, downgrading won't improve the situation.
Otoh it's a 10 year old chip, so we're not exactly waiting for it to be supported.

I'd have suggested to try amdgpu instead of radeon, but there's a similar thread on a SI chip that already does use amdgpu:
https://bbs.archlinux.org/viewtopic.php?id=273065

Your pacman log is 403 - on a very lame limb and b/c it's in the other thread: get rid of xf86-video-amdgpu ?

Online

#9 2024-02-16 18:43:49

Aman33
Member
Registered: 2024-01-19
Posts: 14

Re: VA-API Can't Detect Supported Encoders on My Arch Linux

i was having this problem too but after i switched to amdgpu driver its not happening anymore but when i try to screen record the performance is terrible cant even get 30fps with scaled resolution i think i should switch to radeon driver dont know what to do, heres my hw list https://pastebin.com/JkQXm3SD . i have the same apu with a 10year old trash gpu

Offline

#10 2024-02-16 19:05:00

myxi
Member
Registered: 2023-09-27
Posts: 6

Re: VA-API Can't Detect Supported Encoders on My Arch Linux

Aman33 wrote:

i was having this problem too but after i switched to amdgpu driver its not happening anymore but when i try to screen record the performance is terrible cant even get 30fps with scaled resolution i think i should switch to radeon driver dont know what to do, heres my hw list https://pastebin.com/JkQXm3SD . i have the same apu with a 10year old trash gpu

Hello Aman, I don't have a solution to this, but I will provide you with the kind of experiences I've had since my last reply here.

So, because Arch Linux refused to work properly on my machine, I switched to OpenSUSE TW and noticed the same issues. Then I switched drivers and managed to get VA-API to detect my GPU's capabilities. However, just like you, I experienced a mediocre performance.

I then installed Ubuntu 22.04 and Ubuntu 23.10. The former could detect the encoders even with the Radeon driver; however, Ubuntu 23.10 couldn't. 22.04 had better GPU performance overall, but it still wasn't at its peak. The only OS that managed to reach that, is Windows 10.

However, lack of peak performance isn't why I migrated to Windows 10; it was that *all* these distributions, despite my tweaking with several configurations and several command-line flags, refused to decode H264 videos on both Gecko and Chromium browser engines. Some distributions can do that when done with VLC locally, but browsers? Never. Windows 10 can do it without any tweaking.

This laptop simply isn't meant for Linux if you want peak performance from your hardware. If you don't have serious needs for Linux, WSL1 and Windows 10 can be a decent setup.

Last edited by myxi (2024-02-16 19:05:41)

Offline

Board footer

Powered by FluxBB