by derefr · 9y ago · 0 comments
Also, with the two sub-considerations:
• on mobile, where hardware decoding exists for only some codecs;
• on the web, where the audio APIs only accept some of these formats/codecs.
Mp3 is, for all intents and purposes, the animated gif of audio.
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.
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.
> 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
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.
(And if Vorbis isn't on par w/ MP4, my impression is that it is certainly good enough at decent bitrates that it wouldn't matter.)
If you mean "for low-latency live streaming/conferencing", I think you're probably right.
If you mean "by popularity", with a few exceptions all non-MP3 encoded audio you hear is (and has been for some time) AAC.
If you mean "by quality", Opus is comparable to AAC/HE-AAC audio quality, but Opus' Achilles' heel is hardware support.
Battery life efficiency? MP3 is usually in hardware, these days. And battery life matters a lot.
(Not a gotcha--I have no idea.)
[1] Just looking through the sound effects and music asset folders in my sprawling Steam library.
Some modern games use uncompressed audio because it frees up a few CPU cycles and the min/max balance on hard drives versus CPUs makes that choice desirable if you want to push the minimum spec. range on your game as low as possible (so that more people can play it). Though even then that's only necessary if your main game engine is hitting the CPU pretty hard to start with.