Last modified: 2014-11-05 00:58:27 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T42193, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40193 - Support for Opus audio format
Support for Opus audio format
Status: NEW
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
unspecified
All All
: Low enhancement with 3 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 51313 27699
Blocks: multimedia
  Show dependency treegraph
 
Reported: 2012-09-12 20:50 UTC by Jean-Fred
Modified: 2014-11-05 00:58 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Jean-Fred 2012-09-12 20:50:14 UTC
“Opus is an open and royalty-free lossy audio compression format.” [1] Since 2012-09, it is an IETF standard.

Support in MediaWiki would be awesome.

[1] <https://en.wikipedia.org/wiki/Opus_%28audio_format%29>
Comment 1 Brion Vibber 2012-09-12 21:25:48 UTC
Couple of things to do here probably:

* add the .opus extension & "audio/ogg; codecs=opus" mime type to our lists
* make sure that .opus files that get uploaded keep their .opus extensions and don't get renamed as .ogg or something
* support in TimedMediaHandler to play them in supporting browsers (how to check?)
* support in TimedMediaHandler to transcode .opus to other format(s) for non-supporting browsers

And of course.... deploy TimedMediaHandler (bug 27699).
Comment 2 Michael Dale 2012-09-12 21:43:13 UTC
As of firefox 15: 

var dummyvid = document.createElement( "video" );
dummyvid.canPlayType( 'audio/ogg;codecs=opus' );
"probably" 

Yes, once we get 27699 out of the way, we can enable opus, mp3 and h.264 transcodes and playback relatively easily, since the mechanics for source stream switching and client feature support detection are already supported for the existing set of codecs that we support.
Comment 3 Jean-Fred 2012-12-14 15:23:29 UTC
Since TMH is deployed, is Opus transcode and playback possible?
Comment 4 Marco 2013-01-20 12:35:59 UTC
Opus can now be forced into the OGG container, but the Wiki servers have problems detecting the codec. Also playback is limited in some browsers (chrome at least).

https://commons.wikimedia.org/wiki/File:Sound_of_the_bells_of_Sveta_Nedelya_in_Sofia_2012_PD.ogg
Comment 5 Bawolff (Brian Wolff) 2013-08-19 17:52:32 UTC
Related: https://gerrit.wikimedia.org/r/#/c/78235/
Comment 6 Brion Vibber 2014-11-05 00:58:27 UTC
(In reply to Marco from comment #4)
> Opus can now be forced into the OGG container, but the Wiki servers have
> problems detecting the codec. Also playback is limited in some browsers
> (chrome at least).
> 
> https://commons.wikimedia.org/wiki/File:
> Sound_of_the_bells_of_Sveta_Nedelya_in_Sofia_2012_PD.ogg

Note that Chrome as of version 38 plays this opus-in-ogg file natively just fine. Yay upgrades over time!

I also have Opus support in ogv.js, so once that lands we should have working playback in Safari 6.1+ and IE 10+ as well, with or without Vorbis transcodes.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links