Bug 176650
| Summary: | Feature Request - Support Opus in WebM and Ogg Containers | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | aham.brahmasmi |
| Component: | Media | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | aboya, ahmad.saleem792, blake, brad, chris, lolwebkitbugtracker, pnormand, rb |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
aham.brahmasmi
Please support the Opus codec in WebM and Ogg containers.
From what I understand, the Opus codec in WebM container is supported within WebRTC. However, it is neither supported natively (HTMLMediaElement.canPlayType) nor via Media Source Extensions (MediaSource.isTypeSupported) in either containers. The non-normative use case is to stream from Icecast.
In case this support already exists, I apologize for opening this bug report.
Thanks.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alicia Boya GarcĂa
Opus is supported as long as suitable GStreamer plugins are found, which should
be the default in new distros.
Support for Opus in MSE has been committed recently in trunk, but the MSE
implementation in WebKitGTK+ is still quite under development and not stable
enough to be enabled by default.
Philippe Normand
Should this bug be closed then?
Richard Bushell
+1 for comprehensive support of Opus codec in Safari (MacOS and iOS) in WebM and MP4 containers. It is now supported in every other major browser!
AnthumChris
+1 for Opus support. This is currently achieved for Ogg Opus with WebAssembly and the Web Audio APi. https://fetch-stream-audio.anthum.com/ A lot of coding overhead is required to do that and even more for seeking. Native MSE support would be awesome.
Attila Haraszti
+1 Safari is the only major browser without Opus media support https://www.scirra.com/labs/audioCodecTests/
Ahmad Saleem
Do we need to add following here:
https://github.com/WebKit/WebKit/blob/0d17dc0c310f9b1d05268ab63e967c38133892f0/Source/WebCore/platform/MIMETypeRegistry.cpp#L291
{ "audio/ogg"_s, "opus"_s }
and also here:
https://github.com/WebKit/WebKit/blob/ea06abc8501c66cf264414965269f23deab87741/Source/WebCore/Modules/mediacapabilities/MediaCapabilities.cpp#L54
"audio/opus",
and something more?
Blake Buell
+1 Every other major browser supports Opus in MP4 as well.
https://opus-codec.org/docs/opus_in_isobmff.html