3 ms·
Some (Apple) staunchly refuse to support free codecs. They on purpose put blockers for wider adoption, so the above is not surprising. I make it a point to buy
by shmerl 10y ago
Some (Apple) staunchly refuse to support free codecs. They on purpose put blockers for wider adoption, so the above is not surprising.
I make it a point to buy music in FLAC, and then encode it in Opus for playback (that's why I try to avoid buying when FLAC / lossless is not available). But so far no store sells music in Opus optionally.
- tacos 10y agoProbably because there's no widely available encoder. Why hasn't this been folded into ffmpeg/sox/etc?
- shmerl 10y agoNot sure what you mean. opusenc works just fine and is perfectly portable. ffmpeg also supports it through libopus for quite some time. See https://www.ffmpeg.org/ffmpeg-codecs.html#toc-libopus-1 https://www.ffmpeg.org/ffmpeg-codecs.html#toc-libopus-1
- tacos 10y agoIt's decode only for some reason. For whatever reason sox and libsndfile won't touch it; ffmpeg won't encode it. And iOS and Android browsers won't play it. Shame because it's clearly the current winner.
- shmerl 10y agoffmpeg should encode it if it was built with --enable-libopus. May be you are using one without it? Firefox supports Opus everywhere. Chrome I think should too, since it's needed for WebRTC. Safari obviously doesn't, as I said, Apple can't stand free codecs.
- tacos 10y agohttp://caniuse.com/#feat=opus http://caniuse.com/#feat=opus Strangely absent across all mobile platforms at the moment. And even Firefox won't play it as .webm only .ogg. (Huh?) Man, why is audio always so wonky?
- vetinari 10y agoI'm not so sure that the link has correct info. On Android, support for OPUS is mandatory for 5.0 and newer (by CTS). I would be surprised if the browsers would implement codecs by themselves, instead of passing the streams to the system for decoding.
- shmerl 10y agoFirefox can play it as .opus
- TD-Linux 10y agoRecent changes to ffmpeg broke opus in webm in some cases, if you're using git master: https://trac.ffmpeg.org/ticket/5509 https://trac.ffmpeg.org/ticket/5509
- TD-Linux 10y agoYou forgot to build ffmpeg with --enable-libopus. ffmpeg has its own reimplemented decoder, but relies on libopus for encoding.
- tacos 10y agoI said "widely available." When distros bundle an ffmpeg encoder, it's widely available. When libsndfile and sox support it, the format migrates toward common use. "build ffmpeg" is a nonstarter for most mortals.
- shmerl 10y agoWhat distros bundle it without libopus? Debian has it enabled for example.
- legulere 10y agoALAC is a free codec since 2011.
- shmerl 10y agoSince they made it themselves, they overlooked their usual negativity. But of course, they can't support FLAC (which was released in 2001) because NIH and because Apple.
- sjwright 10y agoOf course what? I don't get what you're trying to imply. Are you suggesting that inventing redundant incompatible codecs for the sake of it is de rigueur for Apple? Because I can't think of another example. As far as I can tell, the opposite is overwhelmingly true. Apple has invented a handful of codecs and container formats in its time (I can think of MOV, ProRes, Pixlet and a few ancient/esoteric Quicktime codecs) but they all served a distinct purpose not sufficiently catered for by their contemporaries. I'm willing to believe Apple when they say there was an engineering reason why they created ALAC. Perhaps an optimised implementation (not the reference implementation) may have offered some performance/battery life advantage on certain hardware. We don't know. And it doesn't matter much.
- LeoPanthera 10y agoI don't have a handy source, but Apple claimed that they made ALAC because FLAC couldn't be decoded on an iPod in a power efficient way.
- shmerl 10y ago> And it doesn't matter much. Yes, it doesn't because whatever reason they had then, they can't use it not to support FLAC today. Today it's clearly their arrogant NIH attitude.
- sjwright 10y ago> clearly their arrogant NIH attitude Sure. (Except the opposite is almost always true.)