Hardware Accelerated Decoding for H.264 in WebRTC

157 views
Skip to first unread message

Gagandeep Singh

unread,
Mar 29, 2021, 6:35:28 PM3/29/21
to Chromium-discuss
Hi,

I have managed to get H264 hardware accelerated decoding working for HLS and MP4 type videos and as such can see in chrome://media-internals, the decoder being used is MojoVideoDecoder (system is Linux(debian) with Nvidia Drivers and Vaapi (or Vdpau?) Patch). 

But when I tried to use WebRTC inbound streams with H264 codec, after searching for a while found the info of decoder in chrome://webrtc-internals and there it only shows using FFmpegVideoDecoder, which as I have found is software decoder.

I would really like to be able to force webrtc decoding to utililize the hardware accelerated decoding on Linux running Nvidia card and so in that respect, what are my options currently?

I would really appreciate any input on this. Happy to followup with more details if required. This hardware accelerated decoding needs to happen on a server running chrome (or chromium) and as such even all experimental options and building from source (provided i get a little guiding hand :) ) are also welcome!

Best,
Gagandeep Singh

Gagandeep Singh

unread,
Mar 29, 2021, 6:45:03 PM3/29/21
to Chromium-discuss
Sorry, this is a duplicate message as I later found out chromium-dev is a better place for this kind of technical stuff. Still, if anyone who is seeing this for the first time has ideas, I'm happy to consider them.

From what I know so far based on my discussion in chromium-dev, the problem seems to be H264 being encoded in baseline profile for webrtc from our webrtc web sem and Nvidia in Linux doesn't support decoding that on the recieving side.


--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

---
To unsubscribe from this topic, visit https://groups.google.com/a/chromium.org/d/topic/chromium-discuss/PwH1PLqsI64/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chromium-discu...@chromium.org.
Reply all
Reply to author
Forward
0 new messages