What does it take to get video hardware acceleration?

It’s already been discussed but I thought I’ll provide my 2 cents. Instead of the edge channel, I’ve been using the candidate channel which also has a core24 version. Awhile ago I ran this command: sudo snap refresh --channel=latest/candidate/core24 firefox Should be safer to use than the edge branch. It generally only updates a bit quicker compared to the stable channel. Most of the time the versions line up with each other. Both candidate and stable channels are currently on Firefox 139.0.4-1 so I think reverting back should technically work fine. Since Firefox 136, hardware acceleration was enabled by default on AMD GPUs as long as you have Mesa 24.2 or newer. Core22 only provides Mesa 23.2 so you basically had to force enable hardware decode within the about:config. Whereas Core24 provides Mesa 24.2.8. In my experience, it has been working pretty good. Although, sometimes on Youtube with high res, high bitrate videos like 4k 60 fps. It tends to drop frames. I don’t think it’s necessarily a snap issue. Probably just a Firefox or Youtube specific thing since Google has been known to slow down YT on non-chromium browsers and whatnot

1 Like

Hi all !

Does anyone know if it is possible to use latest stable mesa with latest stable firefox version by using snap on Ubuntu ?

I have a 9070xt and am too having troubles enabling hardware acceleration on Firefox.
By switching to core24, I’m using Mesa 24 and partially solving my problem, but AMD recommends using at least Mesa 25 with this GPU.

Thank you and have a nice day ! :slight_smile:

There is a kisak channel for mesa that should have mesa 25 when you use Firefox with the core24 base as described in the post above yours…

ogra@styx:~$ snap info mesa-2404 | grep tracking
tracking:     latest/beta/kisak
ogra@styx:~$ 
ogra@styx:~$ snap info mesa-2404|grep installed:
installed:          25.1.2-snap184                (893) 145MB -
ogra@styx:~$ 
1 Like

Thank you !

So to be clear, I need these two commands to update to Firefox stable with latest stable mesa ?

sudo snap refresh --channel=latest/candidate/core24 firefox 
sudo snap refresh --channel=latest/beta/kisak mesa-2404

Have a nice day !

1 Like

Indeed, as @billy5155 mentions, edge channels for both browsers are your best shot, as they are on core24. There are also other branches hanging around, (candidate/core24 was mentioned). As long as snap info --verbose $BROWSER reports core24 as the base, you should be good to go.

At the moment, migrating stable channels to core24 is blocked due to mounting issues being worked on by the Snapd team.

I was away for the week so sorry for the late reply.