-
-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hardware video decoding is broken in flatpak Firefox (Intel GPU) #1409
Comments
Are you using fedora's FF Flatpak or the one from mozilla? https://src.fedoraproject.org/flatpaks/firefox Here is the FF from Mozilla. I wonder if you might get better luck w/ the Mozilla one? |
I switched from the Flathub version to the Fedora one. Making my host libraries available in the flatpak and playing around a bit with The Fedora version is worse than the Flathub one, because the software decoder can only play YouTube videos at ~1fps. So I switched back to the Flathub version (that I had originally), this way the software decoding works. |
Yeah this issue has nothing to do with the Fedora flatpak, is that screenshot from a ublue system? I haven't been able to reproduce on my intel systems, the hwaccel is working on all of them ootb, so maybe it's something else. |
@tamasd I suggest to update your Firefox, this seemed to be broader issue that was fixed in version 127.0.2. I have this version from Flatpak, don't see any issues. |
I checked with 127.0.2, unfortunately I have the same error :( I think this will be resolved temporarly when the new freedesktop flatpak platform will be released (in a month or so) and a new firefox version will be released using that. However, it might come back when a new Fedora will be released, because the rpm fusion intel driver package is built against Fedora's libraries and not the standard platform. |
Should we give this a tag "unable to confirm*" and close? What do we need to confirm root cause? |
I have Firefox 128.0.3 now, the situation is not changed. Can I get a confirmation from someone who has Intel iGPU and the Flatpak Firefox that on the |
Reopening since this is still affecting people. |
This comment has been minimized.
This comment has been minimized.
@tamasd First, thank you for your issue and for the detailed troubleshooting, that's very helpful! TL;DR - I believe things should be working well now, at least on intel. Here's what I'm seeing on a recent bluefin image ( ghcr.io/ublue-os/bluefin-dx-nvidia:stable Version: 40.20241101.0 )... So Fedora 40 on a hybrid intel+nvidia laptop running flatpak mozilla firefox version 132. I have all default settings for Firefox in Flatseal, nothing custom. I tried to set old "forced" config options to defaults in Within a
On host using flatpak binary:
Nvidia vaapi does fail, but I haven't dug in to that as I don't want to use it and it does show as supported in host. |
I have Firefox 132.0 and the system is on the @bsherman what are your flatpak info and overrides? Mine are: $ flatpak info org.mozilla.firefox
Firefox - Fast, Private & Safe Web Browser
ID: org.mozilla.firefox
Ref: app/org.mozilla.firefox/x86_64/stable
Arch: x86_64
Branch: stable
Version: 132.0
License: MPL-2.0
Origin: flathub
Collection: org.flathub.Stable
Installation: system
Installed: 267,6 MB
Runtime: org.freedesktop.Platform/x86_64/23.08
Sdk: org.freedesktop.Sdk/x86_64/23.08
Commit: eddd807e2511ac9589811461dca1a8e9e119958730fafc21425dae23cac1b5e8
Parent: 4fea3214184b32a765c4bb2d764b9b2700251f5e9b7863d666b67000829235c3
Subject: Export org.mozilla.firefox
Date: 2024-10-29 12:47:03 +0000
$ flatpak override --show org.mozilla.firefox
[Context]
filesystems=xdg-run/app/org.keepassxc.KeePassXC/org.keepassxc.KeePassXC.BrowserServer;
$ flatpak override --show --user org.mozilla.firefox
[Context]
sockets=!fallback-x11;!x11
devices=dri
filesystems=host-os
[Environment]
LIBVA_DRIVER_NAME=iHD
LIBVA_DRIVERS_PATH=/run/host/usr/lib64/dri
LIBVA_MESSAGING_LEVEL=1
MOZ_ENABLE_WAYLAND=1
MOZ_DISABLE_RDD_SANDBOX=1
NVD_BACKEND=direct |
In this possibly related ticket, the solution was to modify the intel driver GUC parameter. I wonder if that may help for you, depending on your specific hardware. |
Also, this PR just merged, #1876 It will set I have found this is needed on AMD, I don't think it will help on Intel, especially if the problem is GUC related, but it's worth mentioning. Tomorrow's Bluefin builds will have this. |
I installed Bluefin on my laptop and noticed that YouTube videos make my laptop quite warm. I started to look into it, and I saw that Firefox can't use hardware acceleration for video decoding.
First I checked the output of
vainfo
:The
about:support
page says thatHARDWARE_VIDEO_DECODING
runtime is unavailable because it got force disabled byglxInfo
with the failure codeFEATURE_FAILURE_VIDEO_DECODING_TEST_FAILED
.After reading forum posts and tutorials, I set environment variables in Flatseal:
MOZ_DISABLE_RDD_SANDBOX=1
MOZ_ENABLE_WAYLAND=1
LIBVA_MESSAGING_LEVEL=1
LIBVA_DRIVERS_PATH=/run/host/usr/lib64/dri
LIBVA_DRIVER_NAME=iHD
<- this is the appropriate driver for my iGPUI enabled GPU acceleration in the Devices section.
I also set a dozen configurations in
about:config
in various combinations but nothing worked.So I looked into what Firefox is actually doing when checking the hardware support. Turns out there is a small program called
vaapitest
. Running this inside the flatpak container revealed the actual problem:Running it outside of the flatpak works:
I checked the
libstdc++.so.6
file for the CXXABI support and it has it:The one in the flatpak (coming from
org.freedesktop.Platform
) does not:I think the problem is that the
intel-media-driver
package from RPMFusion is compiled against a newerlibstdc++
while the flatpak platform ships an older one.The text was updated successfully, but these errors were encountered: