Repository navigation
[GStreamer] Use an explicit allowlist of AAC AOTs - #61915
Conversation
|
EWS run on previous version of this PR (hash 3457eba) Details |
| m_decoderCodecMap.add("mp4a.40.29"_s, result); // MPEG-4 HE-AAC v2 (AAC LC + SBR + PS) | ||
| // As of writing, support for Extended HE-AAC (MPEG-D USAC) and xHE-AAC (MPEG-D USAC + MPEG-D DRC) -- which uses the | ||
| // USAC AOT, is not yet widely available enough to be enabled by default. | ||
| auto value = CStringView::unsafeFromUTF8(g_getenv("WEBKIT_CAN_PLAY_USAC")); |
There was a problem hiding this comment.
Can you rename the env var to WEBKIT_GST_CAN_PLAY_USAC please? We use the WEBKIT_GST_ prefix usually.
3457eba to
88dd801
Compare
|
EWS run on previous version of this PR (hash 88dd801) Details |
|
imported/w3c/web-platform-tests/media-source/mediasource-is-type-supported.html requires a rebaseline for the GStreamer ports, which is reasonable. We're now catching invalid codec strings, which we didn't before: |
88dd801 to
cf75cea
Compare
|
EWS run on current version of this PR (hash cf75cea) Details |
https://bugs.webkit.org/show_bug.cgi?id=311347 Reviewed by Philippe Normand. Currently the GStreamer ports of WebKit report support to any codec string starting with "mp4a" if there is a decoder that supports audio/mpeg, mpegversion=4. This is too optimistic and can lead to applications choosing to use newer MPEG-4 Audio codecs not yet supported by the user's system. This patch makes WebKit play it safer and instead only report support for AOTs with widespread support. This includes reporting AOT 42 (typically used with xHE-AAC) as not supported. Ideally we would query support for it somehow and reply accordingly, but that would necessitate decoders to provide a uniform API for querying such support, which unfortunately does not exist (and would be tricky in practice as support is not always binary). An environment variable is provided to declare explicit support or lack thereof in environments where this is well-known, as well as for debugging and experimentation. See: WebPlatformForEmbedded/WPEWebKit#1641 (but note that this patch takes a different approach than the original PR). * LayoutTests/platform/glib/imported/w3c/web-platform-tests/media-source/mediasource-is-type-supported-expected.txt: * Source/WebCore/platform/graphics/gstreamer/GStreamerRegistryScanner.cpp: (WebCore::GStreamerRegistryScanner::initializeDecoders): Canonical link: https://commits.webkit.org/310634@main
cf75cea to
e33ca76
Compare
|
Committed 310634@main (e33ca76): https://commits.webkit.org/310634@main Reviewed commits have been landed. Closing PR #61915 and removing active labels. |
|
Backported into |
e33ca76
cf75cea