Does Chromium outside of Chrome itself support WebCodecs H.264 decoding?

1,622 views
Skip to first unread message

Michael Hagar

unread,
Aug 16, 2023, 11:19:02 AM8/16/23
to media-dev
I'm seeing an issue where our app is detecting support for WebCodecs H.264 hardware decoding on the Chrome browser, but not when our app is run in Electron (Electron version 21.0.0, so running Chromium M106).

Can Chromium be configured to enable/disable WebCodecs or on a per-codec basis? I can't think of any other reason why we're seeing this behavior.


Dale Curtis

unread,
Aug 16, 2023, 12:31:04 PM8/16/23
to Michael Hagar, media-dev
Correct, Chromium isn't built with proprietary codecs by default. To enable them you need to build with `proprietary_codecs=true ffmpeg_branding="Chrome"`. I'd recommend discussing with your legal team before doing that in any kind of shipping product though.

- dale

On Wed, Aug 16, 2023 at 8:19 AM 'Michael Hagar' via media-dev <medi...@chromium.org> wrote:
I'm seeing an issue where our app is detecting support for WebCodecs H.264 hardware decoding on the Chrome browser, but not when our app is run in Electron (Electron version 21.0.0, so running Chromium M106).

Can Chromium be configured to enable/disable WebCodecs or on a per-codec basis? I can't think of any other reason why we're seeing this behavior.


--
You received this message because you are subscribed to the Google Groups "media-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to media-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/media-dev/22e78b3f-6719-4610-a3ff-053901eaa19cn%40chromium.org.

Michael Hagar

unread,
Aug 16, 2023, 1:32:05 PM8/16/23
to media-dev, dalec...@chromium.org, media-dev, Michael Hagar
Thanks. Does that apply to hardware encoding as well?

Michael Hagar

unread,
Aug 16, 2023, 1:32:55 PM8/16/23
to media-dev, Michael Hagar, dalec...@chromium.org, media-dev
Hardware decoding, that is.

Dale Curtis

unread,
Aug 16, 2023, 1:39:35 PM8/16/23
to Michael Hagar, media-dev
Yes, to enable H.264 or AAC for encoding or decoding those flags must be set.

We don't offer a way to just select hardware codecs at build time. Those flags enable both the software codecs as well as parsing code for proprietary codecs. 

- dale

Reply all
Reply to author
Forward
0 new messages