Firefox Merges Support for Vulkan Video Decoding

(phoronix.com)

123 points | by Bender a day ago ago

24 comments

  • Groxx a day ago ago

    Oh sweet, now I can look forward to "compiling shaders..." on every website I visit!

    ---

    More seriously, I'm definitely curious to try this out on some of my weird computers. Sometimes vulkan support is noticeably more capable than other modes.

    • pezezin a day ago ago

      Vulkan Video is about exposing the GPU's hardware encoding/decoding functionality through the standard Vulkan API, not about implementing the codecs through shaders.

    • soganess a day ago ago

      There are fairly mainstream devices with decent Vulkan support but poor hardware decode coverage for the codecs people actually get on the web. Polaris era Radeons have H.264 and HEVC decode, but VP9 support is absent (or not exposed in many common Linux paths) so YouTube is sloppy. The Raspberry Pi 5 is another example: it has hardware HEVC decode, but YouTube 4K is generally VP9 or AV1 rather than HEVC, and Pi 5 does not advertise VP9 hardware decode.

      • kcb a day ago ago

        I think Vulkan Video is just another api to access those hardware decoders. It's not going to bring support for codecs to hardware without the support.

        • soganess a day ago ago

          You are 100% right! My mistake. It is too late for me to edit my previous comment. But I appreciate the correction.

      • Groxx a day ago ago

        Yea, I'm most-hopeful for some of my lowest-end devices. Those as-cheap-as-possible CPUs tend to have a very strange set of accelerators for codecs.

      • joe_mamba 18 hours ago ago

        >but VP9 support is absent (or not exposed in many common Linux paths) so YouTube is sloppy [...] but YouTube 4K is generally VP9 or AV1 rather than HEVC

        I installed linux yesterday. Youtube doesn't let you backtrack to VP9 in the user profile setting. It serves AV1 by default now for all resolutions. Bummer if you're on older and/or low end hardware.

        Maybe some browser extensions can force VP9?

      • TiredOfLife a day ago ago

        > Pi 5 does not advertise VP9 hardware decode

        because it does not have it

        • soganess 16 hours ago ago

          I figured, but all I knew for certain was that it did not advertise it.

          Maybe it was silently presented in silco but lacked the software bits. It's a pretty big omission considering the Pi5's release date.

          • TiredOfLife 12 hours ago ago

            On pi5 they even removed the hw accelerated h264 encoder. The soc used in raspberry pi is basically what scraps Broadcom allow them to have. For example it took to pi5 to add accelerated aes.

  • QuaternionsBhop a day ago ago

    This is great news for nvidia users on Linux. It means that they don't need to install a VAAPI compatibility tool like nvidia-vaapi-driver. I also hope to see Vulkan Video supported in the open source userspace nvidia driver NVK soon too.

  • pjmlp a day ago ago

    Lets see if this works better than VA-API, I could never manage to make it work with Chrome or Firefox, on my now dead netbook.

    Since the Flash plugin was gone, watching YT on that device was always software rendering, regardless of the magic incantations between VA-API and browser configuration flags.

    • Groxx a day ago ago

      Yea, both netbook-flavored machines I've got have been a struggle with VAAPI (and mostly giving up too). Definitely hoping for some success here, they actually do have vulkan drivers...

  • HDBaseT a day ago ago

    Question, what does this mean for Firefox users? Does this help YouTube Video playback? DRM'd content on Netflix?

    • TingPing a day ago ago

      It doesn’t mean anything for desktop users, it’s just a new standard that could have wider support than VAAPI since it’s part of Vulkan. Mostly embedded devices lacking VAAPI support today, though nvidia requires a third party implementation so this might improve that situation.

  • WhyNotHugo a day ago ago

    Why does Firefox do first-class video decoding instead of offloading to, for example, ffmpeg?

    • hparadiz a day ago ago

      Look at the post. It's already using ffmpeg. This just enables it in the build.

  • lousken a day ago ago

    Hopefully, it will be in the next ESR

  • xx__yy a day ago ago

    Is it just me or were they a bit behind? Chromium already has it

    • sstim 21 hours ago ago

      Chromium does not have it.