Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Not 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



It'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.


ffmpeg 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.


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?


I'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.


Recent changes to ffmpeg broke opus in webm in some cases, if you're using git master: https://trac.ffmpeg.org/ticket/5509


Firefox can play it as .opus


You forgot to build ffmpeg with --enable-libopus. ffmpeg has its own reimplemented decoder, but relies on libopus for encoding.


I 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.


What distros bundle it without libopus? Debian has it enabled for example.




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

Search: