saiarcot895 / chromium-ubuntu-build

Packaging files for building Chromium on Ubuntu
138 stars 32 forks source link

WebRTC GPU accelerated video decoding on Linux (in Xvfb) #88

Open zdila opened 4 years ago

zdila commented 4 years ago

Hello,

Is it possible to patch and compile Chromium to enable WebRTC hardware video decoding on Linux?

I asked also on https://groups.google.com/a/chromium.org/forum/#!topic/chromium-discuss/GZVkDB-EiEI

I would rather ask on Launchpad.net but I get HTTP 500 when logging-in there.

Thanks in advance

mattklein123 commented 4 years ago

I've been trying to get this working also in an effort to keep my laptop from melting while video conferencing all day.

I know very little about any of this and all of the permutations are very confusing, but I see that the arch patches seem to explicitly enable webrtc hw video encode/decode.

https://github.com/ungoogled-software/ungoogled-chromium-archlinux/issues/33#issuecomment-534608943

Chrome://GPU shows my machine supports hw encode/decode and I wonder if access to the above flags would turn it on? Or is there more involved?

dgunay commented 2 years ago

This is turning out to be a major obstacle for me (working on improving the performance of an app that does a lot of WebRTC video decoding in Chromium for Linux). Most of the patches I'm seeing on the internet don't touch the kDisableWebRtcHWDecoding flag or leave it disabled on Linux.

I would turn to Firefox nightly since it does have it, but that has some challenges of its own - mainly observability. Hard to confirm whether all the arcane switches and libraries I've enabled are actually working without a very long feedback loop, whereas chrome://webrtc-internals displays the decoder used for each peer connection.

Alex-Bujorianu commented 2 months ago

Hi, has anything been done regarding this issue? I see that it's still disabled on the .deb version of the latest Chrome on Ubuntu. I am told it works on ChromeOS though, so presumably, the functionality is there somewhere (I know ChromeOS does not use Wayland or X11).