4 ms·
Call me when there's hardware video acceleration in browsers available.
by weystrom 7y ago
Call me when there's hardware video acceleration in browsers available.
- zelon88 7y agoCould you elaborate?
- kcb 7y agoThere's no hardware video acceleration in browsers on linux.
- toun 7y agoThere is in Firefox, but you have to force it via about:config because it's disabled by default.
- baal80spam 7y agoWell, guess there is a reason for it being disabled by default - like compatiblity or stability?
- kevingadd 7y agoMost likely patents. Firefox only has video acceleration on Windows if you have codecs installed already (because the codec people paid the patent license fees) and the acceleration relies entirely on the codec+driver combo. Chrome ships libavcodec/ffmpeg bits because they've paid the license fees.
- dx87 7y agoI think it's unstable. I had to disable it because it was causing frequent reboots that wouldn't stop until the computer was powered off long enough that the memory cleared out. Even if I booted into Windows after the forced reboot, it would still continually reboot. I don't know what the issue was, but it stopped after disabling hardware acceleration.
- crispinb 7y agoIt doesn't work on linux installations I've had around. The experience of watching in-browser videos on linux is too poor to bother with (it's hot enough as is in an Australian summer). I either download (youtube-dl etc) or use my tablet (for smaller ad hoc things) instead.
- noodlesUK 7y agoWhat setting is this? Afaik there is hardware accelerated drawing, but no VAAPI. There used to be some kludge back when gstreamer was the backend, but I’m pretty sure it doesn’t work now we’re using FFmpeg.
- toun 7y agoSorry you're right. I thought parent was refering to accelerated drawing, not decoding. That said, for my use case, this is all I need on a work laptop. My desktop CPU doesn't break a sweat on software decoding, so I'm not too bothered.
- hyperion2010 7y agoThis is blatantly false.
- noodlesUK 7y agoUnfortunately it isn’t. You need to patch chromium to get VAAPI support (the library that leverages the hardware decoding in your cpu/gpu), and firefox doesn’t support it at all. There is hardware accelerated drawing, but decoding is all done on the CPU for the most part. It’s even more of a mess when dealing with nvidia which has its own decoding library.
- hyperion2010 7y agoAh, reading a sibling I see they mean decoding not just 3d acceleration. Indeed that is a pit, though youtube-dl and mpv do a pretty good job for a subset of content.
- microcolonel 7y agoIn my case, it is enabled by default in Chromium if you have a libva installed, which I think most desktop distros do.
- sz4kerto 7y agoCorrect. Most people misunderstand this and think that hardware accelerated drawing is all what they need, but there's another element: decoding. No browsers support (officially) hw-accelerated video decoding on Linux. Compare CPU usage of 4K in-browser video playback on Win and on Linux, the difference is major. On Linux, one CPU core is almost maxed out when playing 4K, on Windows the CPU barely does anything. You can patch Chromium but no distros ship it like that. If you'd like I'm happy to provide references to Chromium and Firefox bugtrackers that support the above. Eg.: https://bugzilla.mozilla.org/show_bug.cgi?id=1210727 https://bugzilla.mozilla.org/show_bug.cgi?id=1210727 https://bugs.chromium.org/p/chromium/issues/detail?id=137247 https://bugs.chromium.org/p/chromium/issues/detail?id=137247 "Enable VAVDA by default on Linux for VA-API-assisted HW video decode Currently there are no plans to do this"