4 ms·
Probably because there's no widely available encoder. Why hasn't this been folded into ffmpeg/sox/etc?
by tacos 10y ago
Probably 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.