Hacker News new | past | comments | ask | show | jobs | submit login

MP3 is the worst performer of the lot, but is suddenly more attractive because it's free and AAC is decidedly not. If you don't need compatibility (like for bgm/sfx) it's still a worse choice than Vorbis or Opus because it compresses worse. For sfx and looping music in particular, mp3 is also a mess because there's no standard way to play back samples with zero delay and zero extra samples at the end.



Mp3 is also really accessible. Anyone who's ever worked with audio in an amateur capacity knows how to create an mp3. I don't think many people would know how to properly encode an Opus file. I did an informal survey on Quora a while back, and I was surprised to see that almost every audio industry professional had no idea what Opus even was.

Mp3 is, for all intents and purposes, the animated gif of audio.


On the other hand, due to the encoder patent, most FOSS audio-editing tools ship without MP3-encoding support included.

My first instinct, on being asked to create an MP3 from a WAV + some effects, is to download Audacity, diddle around, and then export to MP3. But—and I always forget the first time I do it—you have to download an additional LAME plugin for Audacity to get that MP3-export to happen.

On the other hand, Opus is just right there in the Export menu; the codec is built into the app.

(On Macs, AAC is also "right there" in Audacity's export menu, due to OS-native Quicktime encoding support; but on other OSes AAC export requires similar fiddling to MP3 export.)

And, mind you, this isn't nearly as much of a concern on Linux, where usually the app package will have optional dependencies on the MP3/AAC encoder libraries, and so—if you have your "non-free" package repositories enabled—they'll get installed along with the software.


The patent situation really is like the animated gif but the technology involved puts it much closer to being the jpeg of audio.


> I was surprised to see that almost every audio industry professional had no idea what Opus even was.

Assuming you mean people who deal with audio production, I'm not surprised. Opus is primarily for real-time audio streaming, not for streaming music or for general audio compression or storage.


http://opus-codec.org/

> Opus is unmatched for interactive speech and music transmission over the Internet, but is also intended for storage and streaming applications.

> Opus can handle a wide range of audio applications, including Voice over IP, videoconferencing, in-game chat, and even remote live music performances. It can scale from low bitrate narrowband speech to very high quality stereo music


Sure, their marketing copy says it's intended for storage, but that's not how it's actually used in the wild. In reality, it's primarily used for interactive/real-time streaming and not used for storage. I think it just boils down to the idea that the storage formats we're using are more than sufficient, and Opus doesn't really bring much new to the table there. It does, however, perform remarkably better than most/all of the alternatives when dealing with (e.g.) VoIP, so it's no surprise it's been adopted there.


True enough: the main type of engineer you'd expect to speak the words "Opus codec" is a telecom/SIP engineer, not an audio engineer. It always feels like tech with origins in telecom never gets much notice outside of that realm, even when it's much more widely applicable. (Look at the set of "core" Erlang libraries to see what I mean. Think most programmers have heard of even half of the relevant standards, even as they implement NIH competitors to those same standards?)


I vaguely recall that Vorbis requires a fair bit more processing to decompress, enough to be a potential issue 15 years ago, but on modern computers it's barely detectable and doesn't effect performance at all.


My recollection matches yours. I remember loading a custom firmware on my iPod, around 2005. Vorbis support was a big new feature; they'd just figured out how to get decode working fast enough on its 80MHz ARM7 CPU.


Probably Rockbox? iPods their clickwheel interface and it's software was amazing for the time, but other MP3 players generally had kinda icky interfaces. Rockbox fixed that :)


Yes, it was Rockbox. I followed it when they were first bringing it up on the 4th Gen iPod.


The "fast enough Vorbis" was likely the addition of Tremor, the first fixed-point Vorbis implementation. There's a nice (but with many old entries) chart of decode speeds here: https://www.rockbox.org/wiki/CodecPerformanceComparison

On newer hardware + software, like the Clip Zip, the gap is much smaller and the performance way higher than needed in any case (except for HE-AAC, the clear loser).


The problem now is battery.

MP3 almost always has hardware decode which is really power efficient. This isn't as bad nowadays since audio decode isn't that intensive relative to keeping your WiFi on.


opus can be decoded by hardware as well, (seek by name VP9 or webm) - most modern arm chipsets do so


...such as those used in the majority of Android/iOS devices? That'd be the important bit.


Wifi might be 100-200 milliwatts, but a laptop's speakers are likely to be 500-3000 milliwatts. Headphones are likely to be about the same as the wifi, but can vary wildly.


Bluetooth speakers/headphones change that dynamic slightly; the amp+required battery ends up on the receiving end, so you just have to figure what the Bluetooth stream itself costs.


I concur based on experience. I have a cheap music player that will play Ogg-Vorbis files but it skips and stutters. mp3 files play flawlessly.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: