3 ms·
They were the only way to get hardware accelerated video on Linux. Even today, Firefox decodes all video (even h264) on CPU. Which causes, with 4K 60fps video
by kuschku 10y ago
They were the only way to get hardware accelerated video on Linux.
Even today, Firefox decodes all video (even h264) on CPU.
Which causes, with 4K 60fps video, 50% CPU load on an entire core for me.
- RussianCow 10y agoI think this is only true on Linux. On my Windows and macOS installs, hardware video decoding works fine.
- kuschku 10y agoDefinitely. Mozilla removed hardware decoding on Linux in Firefox 3.6, and never added it back. The bugs on bugzilla are all marked "WONTFIX", and Linux seems to be an afterthought.
- RussianCow 10y agoTo be fair, I've looked through the Bugzilla threads about this (here are some for reference: [0][1]) and it seems to be a very difficult thing to implement. It's a bit beyond my reach, but my understanding is the tricky part is compositing the frames decoded by ffmpeg onto the document, and getting that all to work with all possible CSS transformations and such. So it's not just a matter of the Firefox devs neglecting Linux. [0]: https://bugzilla.mozilla.org/show_bug.cgi?id=563206 https://bugzilla.mozilla.org/show_bug.cgi?id=563206 [1]: https://bugzilla.mozilla.org/show_bug.cgi?id=1210729 https://bugzilla.mozilla.org/show_bug.cgi?id=1210729
- kuschku 10y agoExcept that Chrome manages to do this, as do all other linux browsers. And Mozilla, which explicitly writes Out of Scope - Linux testing On their QA pages in the wiki regarding this, well, doesn’t inspire confidence. I'm still using Firefox, still supporting Mozilla, but I'm disappointed nonetheless.
- alphapapa 10y ago> Which causes, with 4K 60fps video, 50% CPU load on an entire core for me. Is that a punch line? Because it sounds like one. What is that, like, 6.25% of your total CPU power? I say this because many people have machines with CPUs that can't decode 4K 60fps video in realtime at all. So your stat sounds like a great deal to me. Having said that, hardware video decoding is important for this very reason. It's a shame that the situation isn't better on Linux. It seems like, no matter what site or browser--Chrome or Firefox--VLC always plays the same video with far less CPU usage.
- robert_foss 10y agoIt is problematic especially for newer codecs like h265 which uses approximately 3x the CPU cycles. Which pushes you beyond what a single core is capable off.
- TekMol 10y agoYou can get hardware accelerated video in Firefox on Linux with Flash? I have tried that by adding &nohtml=1 to YouTube videos, but it does not work. The player changes, so I guess it's the flash player. But my laptop still struggles to decode the videos smoothly.
- kuschku 10y agoIt depends. For me, flash actually used VDPAU and VAAPI, so I got hardware-accelerated decoding, and it was nice. The mpv plugin worked as well for HTML5 video with hardware acceleration. Now, well, not anymore.