Hi, flatpak support for newer hardware is currently broken resulting in non hardware accelerated videos which draws battery on a notebook and has issues with 4k videos. I am plagued by this issue since I moved from an older intel CPU to a 13th Gen Intel.
The logs show this:
Aug 29, 2024 19:51:07.892 [140701004203712] DEBUG - [MPVEngine/mpv] libmpv_render: Loading hwdec driver 'vaapi-egl'
Aug 29, 2024 19:51:07.892 [140701004203712] DEBUG - [MPVEngine/mpv] libmpv_render/vaapi-egl: using VAAPI EGL interop
Aug 29, 2024 19:51:07.892 [140701004203712] DEBUG - [MPVEngine/mpv] libmpv_render/vaapi-egl: Trying to open a x11 VA display...
Aug 29, 2024 19:51:07.892 [140701004203712] DEBUG - [MPVEngine/mpv] libmpv_render/vaapi-egl: Trying to open a drm VA display...
Aug 29, 2024 19:51:07.892 [140701004203712] DEBUG - [MPVEngine/mpv] libmpv_render/vaapi-egl: Could not create a VA display.
Aug 29, 2024 19:51:07.892 [140701004203712] DEBUG - [MPVEngine/mpv] libmpv_render: Loading failed.
This is most likely a hardware support related issue. I have a 13th gen intel and neither flatpak nor snap are able to use it. The complete same disk image works fine on my 7th generation intel integrated GPU. VLC and mpv also work fine.
Well, that might be true, but the hardware is about a year old now, so it is not THAT new any more. Furthermore I am also using the snap version of VLC and hardware acceleration is working fine there.
This is not really true, both support hardware acceleration and it works just fine for other applications. As for using docker or deb packages, I think your are talking about the server side. To my knowledge there are no deb packages for the client side.
Installed 1.106.0 this morning and HW acceleration still not working on 8th gen intel. Can we just get a native .deb package so we can troubleshoot without the sandboxing. MPV works just fine playing back my 4K movies but Plex on the same machine brings the system to it’s knees.
I am seeing the same thing. Additionally, I see more cpu utilization in flatpak by comparison to the snap, but not so much to indicate that HW acceleration is functional in one but not the other.
Ok, I found the issue why hardware decoding is not working with flatpaks. The culprit is that the startup shell script in the flatpak sets the LIBVA_DRIVERS_PATH to something which ONLY exists in a snap. As a result the drivers are not being found.
To fix this issue you can do the following.
Install the flatpak for your user and not system, this makes it easier to change the files
Open “~/.local/share/flatpak/app/tv.plex.PlexDesktop/current/active/files/bin/Plex” with an editor and comment line 40 which sets the LIBVA_DRIVERS_PATH
If you then start the plex flatpak, hardware decoding will work again. Please note, this change needs to be done again once the application is updated.
I do hope that someone from plex reads this and makes the change in the file so editing it manually is not required.
I guess the most straight forward fix is to only set it, if the snap variable is set in the first place, but deleting the line in the flatpak was the quick way to test it