60 ms·
Firefox 80 to Support VA-API Acceleration on X11
- fulafel 6y agoSoftware is not a fast business, VA-API came around in 2007!
- gridlockd 6y agoPerhaps, but this is just a nightmare intersection scenario: Desktop Linux and hardware acceleration and proprietary drivers. 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.
- elFarto 6y agoUnfortunately this won't be supported by the proprietary NVIDIA drivers. It requires them supporting DMA-BUF, which they can't due to those symbols being marked as GPL. Even then, they don't support VA-API. 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.
- bkor 6y agoIt's not that they cannot use the GPL, they choose to not use GPL for their driver. That's a business decision.
- fulafel 6y agoI don't think there is any non open source software involved here, it's Intel only though. Edit: not so, see below
- throwaway8941 6y agoVA-API works fine on my AMD card using the mainline amdgpu driver. Buy your hardware with software support in mind and there won't be any problems.
- fulafel 6y agoAh, I was going by the WP page. You are right. Also it seems the open source Nvidia driver supports this.
- onli 6y agoI think that will be great for old hardware. I have a very old Thinkpad R50e here where Youtube did not work properly in the browser, at least not above 240p iirc, but you could download the video and watch it with vlc. The difference was the hardware acceleration, and I specifically remember VA-API (together with a second acceleration API?) as coming up at my research back then and being disappointed the browser would not use it. So this could be a nice improvement for a wide range of old devices.
- gridlockd 6y agoThose old devices are going to choke on rendering the Youtube HTML of 2020 instead.
- onli 6y agoThat's likely. But there is always hope for a new Feather project.
- smichel17 6y ago&disable_polymer=1 Automatic: https://addons.mozilla.org/en-US/firefox/addon/disable-polymer-youtube/ https://addons.mozilla.org/en-US/firefox/addon/disable-polym...
- djeiasbsbo 6y agoWhat I can recommend is invidious as an alternative frontend to the official youtube website. It is free software and can be self -hosted but there are also many public instances readily available (e.g. invidio.us). There are even instances for I2P and Tor users. A similar thing called nitter also exists as a substitute for twitter. There are browser add ons and apps available which automatically redirect youtube and twitter links to invidious and nitter!
- flowless 6y agoNo need to download, I was using youtube-dl piped to mplayer, now using mpv which has youtube-dl integrated. Works wonders on old and not-so-old hardware that can't play 1080p or 4k in browser.
- vesinisa 6y agoIt would be awesome if this means Google Stadia is coming to FF on Linux. I trialed the service and was very impressed with it, but ultimately decided against a subscription since Chrome for Linux does not support Stadia due to lack of HW acceleration (it runs but is unusably slow).
- bitwize 6y agoWait, somebody likes Stadia?
- vesinisa 6y agoI know it was gutted at launch but I decided to try it anyways with open eyes since there was a 2-month free trial with some free games. I have fiber at home so latency and bandwidth is not at all an issue - on Chrome on Windows laptop the gaming experience was flawless and technically very impressive. 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.
- bryan_w 6y agoI use stadia on Linux just fine. You may want to check your chrome settings
- vesinisa 6y agoWhich distro are you on? Chromium has unstable VA-API support but most distros don't ship it.
- dddddaviddddd 6y agoI wonder if this will improve performance for video chat in browsers. I've tried Zoom in Firefox and Chrome on FreeBSD with modern hardware, but the experience is very disappointing (about 5 fps, audio stutters, etc).
- tsar9x 6y agoAFAIK no, as WebRTC is not in the scope of this work (similar story for Wayland implemention).
- dependenttypes 6y agoWas anything similar supported on firefox on windows and if so when was it implemented?
- opencl 6y agoI don't know exactly when it was implemented but the Windows version has had it for at least a few years.
- filereaper 6y agoMore context in these blog posts from the author of the patches: https://mastransky.wordpress.com/2020/03/03/webgl-and-fgx-acceleration-on-wayland/ https://mastransky.wordpress.com/2020/03/03/webgl-and-fgx-ac... https://mastransky.wordpress.com/2020/06/03/firefox-on-fedora-finally-gets-va-api-on-wayland/ https://mastransky.wordpress.com/2020/06/03/firefox-on-fedor...
- bitwize 6y agoTo be honest I'm a bit surprised Firefox hasn't deprecated X11 support.
- jorams 6y agoWhy would they deprecate support for the primary display system used on Linux?
- bitwize 6y agoX11 is in hard maintenance mode. All developer effort is focused on Wayland. Accordingly, if you are going to be adding new, advanced graphical features to your browser or other program, it makes sense to support only the display system where all the activity and support is. Plus, Wayland makes more sense if you are a browser vendor worried about security implications. ALSA is more widespread on Linux than PulseAudio, and that didn't stop Mozilla from deprecating raw ALSA support for Firefox.
- ciupicri 6y agoNot having sound is one thing, but not being to run Firefox at all would be too much. There are desktop environments which don't run yet on Wayland. XFCE is one of them.
- bitwize 6y agoI didn't mean Mozilla would abandon X11 entirely, only cease developing new features (like video acceleration) for it in preparation for eventual abandonment. I can totally see them beginning that process soon, like "tomorrow" soon.
- ac29 6y agoWayland support still isn't considered complete: https://bugzilla.mozilla.org/show_bug.cgi?id=635134 https://bugzilla.mozilla.org/show_bug.cgi?id=635134 Though, in 2020, its working pretty well for me.
- lokedhs 6y agoFinally. For a long time it has been quite embarrassing that playing video on a modern laptop drain the battery like nothing else. Looking at the CPU usage shows just how bad it is. 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.
- tdsamardzhiev 6y agoBlows my mind that in 2020 we still can't take browser hw acceleration for a given. I hate sounding like somebody owes me something, but... come on now.