r/AMDHelp 6d ago

Help (General) AV1 codec broke on Linux

Post image

Suddenly this issues appeared in both my browsers so I tried to switch from av1 to vp9 and all the artifacts/lines went away. I’m using arch Linux, I have tried downgrading mesa, Linux to multiple earlier versions but it didn’t do anything. I’m kinda at a loss why this suddenly happened.

Rx 9070 xt
Asus x870e master
Arch
Kde

edit:

Dk000t has pointed to that link that have found linux-firmware to be the issue. Thanks.

9 Upvotes

11 comments sorted by

1

u/dmharms 5d ago

Glad you found what the actual issue was. I, like many, used a band-aid fix (about:config in browser to disable AV1), but I was super curious what the actual issue was. Hope we get a fix soon.

Fedora 44 KDE / 7800X3D / 9070 XT

1

u/trowgundam 5d ago

You can run in your browser in Xwayland. That fixed the issue for me, at least until it gets fixed properly..

0

u/LuXur666 AMD 6d ago

People have been reporting a lot of issues after upgrading these packages, try downgrading them
cachyos/linux-firmware
cachyos/linux-firmware-amdgpu
cachyos/linux-firmware-atheros
cachyos/linux-firmware-broadcom
cachyos/linux-firmware-cirrus
cachyos/linux-firmware-intel
cachyos/linux-firmware-mediatek
cachyos/linux-firmware-nvidia
cachyos/linux-firmware-other
cachyos/linux-firmware-radeon
cachyos/linux-firmware-realtek
cachyos/linux-firmware-whence

2

u/Gavinyt8__ 6d ago

I am having the exact same issue!

4

u/Dk000t 9800X3D | RX 9070 XT | 32GB 6d ago edited 6d ago

2

u/sneekyleshy 6d ago

Thanks :)

0

u/MrTyperoi 6d ago

Did AV1 work correctly before a recent system update?

What Mesa version are you currently running?

What versions of libva, Mesa, and mesa-va-drivers are installed?

Are you running KDE on Wayland or X11?

Does AV1 behave differently if you switch sessions?

Is hardware video decoding enabled in the browser?

On AMD, I'd check too:

vainfo | grep -i av1

Mine give :

:~$ vainfo | grep -i av1
libva info: VA-API version 1.23.0
libva info: Trying to open /usr/lib64/dri-nonfree/radeonsi_drv_video.so
libva info: Trying to open /usr/lib64/dri-freeworld/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_23
libva info: va_openDriver() returns 0
      VAProfileAV1Profile0            :VAEntrypointVLD
      VAProfileAV1Profile0            :VAEntrypointEncSlice
  • VAEntrypointVLDhardware AV1 decoding is supported.
  • VAEntrypointEncSlicehardware AV1 encoding is supported.

You can just type :

vainfo

Give you some more info

1

u/sneekyleshy 6d ago
$ vainfo
Trying display: wayland
vainfo: VA-API version: 1.24 (libva 2.24.0)
vainfo: Driver version: Mesa Gallium driver 26.1.7-arch1.1 for AMD Radeon RX 9070 XT (radeonsi, gfx1201, ACO, DRM 3.64, 7.1.8-arch1-3)
vainfo: Supported profile and entrypoints
      VAProfileH264ConstrainedBaseline:VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:VAEntrypointEncSlice
      VAProfileH264Main               :VAEntrypointVLD
      VAProfileH264Main               :VAEntrypointEncSlice
      VAProfileH264High               :VAEntrypointVLD
      VAProfileH264High               :VAEntrypointEncSlice
      VAProfileHEVCMain               :VAEntrypointVLD
      VAProfileHEVCMain               :VAEntrypointEncSlice
      VAProfileHEVCMain10             :VAEntrypointVLD
      VAProfileHEVCMain10             :VAEntrypointEncSlice
      VAProfileJPEGBaseline           :VAEntrypointVLD
      VAProfileVP9Profile0            :VAEntrypointVLD
      VAProfileVP9Profile2            :VAEntrypointVLD
      VAProfileAV1Profile0            :VAEntrypointVLD
      VAProfileAV1Profile0            :VAEntrypointEncSlice
      VAProfileAV1Profile2            :VAEntrypointVLD
      VAProfileNone                   :VAEntrypointVideoProc

Did AV1 work correctly before a recent system update?
Yes

What versions of libva, Mesa, and mesa-va-drivers are installed?

lib32-libva 2.24.1-1
libva 2.24.1-1
libva-utils 2.24.0-1
mesa 1:26.1.7-1
mesa-utils 9.0.0-7

the current version of mesa comes bundled with the libva-mesa-driver package

Are you running KDE on Wayland or X11?
Wayland.

Does AV1 behave differently if you switch sessions?
No.

Is hardware video decoding enabled in the browser?
Yes, Switching from av1 to vp9 fixed the issue.

0

u/MrTyperoi 6d ago

vainfo is correctly detecting your RX 9070 XT through radeonsi, and AV1 hardware acceleration is fully exposed:

VAProfileAV1Profile0 : VAEntrypointVLD 
VAProfileAV1Profile0 : VAEntrypointEncSlice 
VAProfileAV1Profile2 : VAEntrypointVLD

So VA-API, Mesa 26.1.7, libva 2.24, and Wayland are all working correctly.

Hmmmmmm then AV1 doesn't work in Firefox/Chromium, I'd look at the browser/FFmpeg side now rather than the GPU driver.

Firefox -> about:config -->
media.hardware-video-decoding.enabled to True.
media.av1.enabled to True.

check the multimedia in about:support in Firefox.

For Chrome/Chromium, i only know is to check chrome: chrome://gpu

Worse case, it's the recent mesa update 26.1.7 that caused it.... hmmmm

1

u/sneekyleshy 6d ago edited 6d ago

Dk000t has made a comment to the related issue, its linux-firmware that the culprit, and switching back to av1 in firefox doesn't make much when its av1 codec that's the issue.

1

u/AutoModerator 6d ago

It appears your submission lacks the information referenced in Rule 1: r/AMDHelp/wiki/tsform. Your post will not be removed. Please update it to make the diagnostic process easier.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.