I've recently spent some time testing the implementations in various browsers. Chromium implements VA-API but it's disabled in official builds and fragile, breaking regularly. Webkit uses gstreamer-vaapi and I've had quality issues with that using both Intel (wrong colours) and AMD (blur) hardware.
I've seen Mozilla tracks issues for VA-API and VDPAU/NVDEC. Have you seen libplacebo[1]? It encapsulates the core video rendering used in mpv in a reusable library. mpv's video acceleration has been stable and flawless for both VAAPI and NVDEC (and DXVA, FWIW, but I've no experience with that) for years. In contrast to the browsers' and gstreamer va-api implementations, I've never had performance, stability or quality issues with mpv. In fact, hundreds (thousands?) of Firefox users use several WebExtensions to have videos played in mpv[2],[3],[4]. I haven't worked with either Firefox or mpv code so I can only speak from a user's perspective right now. I just thought, it might be worth to consider implementing libplacebo instead of rolling an own implementation for va-api and vdpau/nvdec. libplacebo is licensed in LGPLv2.1. Note: I initially wanted to post this in #1210726, quoting first comment: > This bug will track support for hardware decoding on Linux and the various > system available (VA-API, VDPAU, DXVA and others) > > There's so many frameworks available, it's hard to keep track! But this one's locked. If it suits better there, feel free to move this comment. [1]: https://github.com/haasn/libplacebo [2]: https://addons.mozilla.org/en-US/firefox/addon/send-to-mpv-player/ [3]: https://addons.mozilla.org/en-US/firefox/addon/ff2mpv/ [4]: https://addons.mozilla.org/en-US/firefox/addon/play-with/ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1688592 Title: Missing VA-API hardware decoding support drains battery To manage notifications about this bug go to: https://bugs.launchpad.net/firefox/+bug/1688592/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs