Firefox 80 to Support VA-API Acceleration on X11
phoronix.com
phoronix.com
Automatic: https://addons.mozilla.org/en-US/firefox/addon/disable-polym...
There are browser add ons and apps available which automatically redirect youtube and twitter links to invidious and nitter!
Works wonders on old and not-so-old hardware that can't play 1080p or 4k in browser.
youtube-dl supports a lot more websites than only YouTube, which makes it (in combination with mpv) a very nice tool that you just put all your videos into.
It needs a launcher (aka native host client) to start the 3rd party app, in this case mpv with the correct arguments.
The launcher is technically only started (then immediatly terminates) when you trigger the openwith action, so no memory/cpu overhead.
The official openwith solution is a python script (requires python), for windows there is a native and lightweight launcher: owclauncher
With this setup, you can launch any action with a simple right click: play in mpv, play in low resolution in mpv, download video/audio with youtube-dl, play in 2nd screen ...
I thought that was a fight club type secret that we're not supposed to share.
The value proposition of the service is in fact excellent for me. I game only sporadically, so investing in a highend gaming PC makes no sense - the hardware outdates too fast, and I anyway prefer to run Linux on my PC. I bought a PS4 but I prefer to play FPS games on a keyboard and mouse, and frankly most times I actually want to play the PS4 after months offline, I need to start with ~30 min worth of system updates before any game is even allowed to start (thanks DRM..)
With Stadia I pay one time fee for each game I want to play. Google offers for that fixed price always the latest, highest-end hardware and OS to play on. Contrast this to having to keep updating my PC hardware and maintaining a Windows installation just for gaming. If only it was working on Linux as well as Windows I would have certainly continued using it.
https://mastransky.wordpress.com/2020/03/03/webgl-and-fgx-ac...
https://mastransky.wordpress.com/2020/06/03/firefox-on-fedor...
At the same time, mpv has been able to play the same videos for years with hardware acceleration. The only reason FF hasn't implemented it was because they were worried about it failing on some systems. Why they couldn't even have enabled it using a flag I don't know.
If you had supported this early, it would've given users nothing but trouble, because of all the bugs. Then again, if nobody supports it, nobody will use it, bugs will not be found and fixed.
There is a library that maps VA-API to VDPAU (their other video acceleration library), but that doesn't support DMA-BUF either.
I wouldn't hold your breath that this would ever be supported. It'll probably be easier to modify Firefox to use NVDEC directly, given that FFMpeg already supports that. But I don't think that'll be easy given their reliance on DMA-BUF for composition.
Edit: not so, see below
ALSA is more widespread on Linux than PulseAudio, and that didn't stop Mozilla from deprecating raw ALSA support for Firefox.
I can totally see them beginning that process soon, like "tomorrow" soon.
Though, in 2020, its working pretty well for me.