Category Archives: Music

Prepare your centos/fedora apache server for streaming opus audio files

As you may have heard recently, the new Opus audio format is likely to be the next de facto standard for audio streaming all over the web.

Originated from the IETF Internet Wideband Audio Codec working group (including Xiph.Org, the non-profit organization behind the ogg formats, Mozilla, Microsoft, Skype, Broadcom, and others), this new codec is really interesting as it fills the gap between high quality formats (for audio restitution, like vorbis, mp3, aac,  …), and low latency codecs (mostly used in voice communications, like speex, G729, …), is fully open (free and opensource software, royalty-free), has one of the best restitution compared to other audio codecs, and is already mainstreamed by Mozilla (firefox >= 15) and Opera (>=12). The Webkit implementation should follow soon as Google decided to use opus as their default audio codec for the WebRTC communication standard. Further interesting readings can be found at Firefox Hackers blog, and project’s page.

So, what we want as webmasters or sysadmins is to make our servers compatible with opus. As of today, my up to date centos 6.3 doesn’t include the opus file format in it’s mimetype list, so the only thing you need to do is to add it to your /etc/mime.types file :
audio/ogg                                       oga ogg spx opus

Restarting apache should definitely fix it.

Donate Dogecoins: DJi4fgSMxcq5vRjytvCEq9A1TVsDZevd7c Whats This?