mon/0x40-web

Add support for the Opus codec?

505e06b2 opened this issue ยท 4 comments

Just wondering if this has been considered, as Opus is the successor to Vorbis, and hardware decoding does not seem to be a concern for this project. The biggest caveat I can see is that their extensions could be the same (ogg) so would require reading the metadata to determine the correct decoder

Regardless, thanks for all your hard work! I've been using this on and off since at least early 2016 and it has only improved in that time

mon commented

It's really no problem, aurora.js (the fallback decoder for Safari because Apple hates open codecs) has an opus module that I can include, and it should demux that without any issues.

I'll take a look in the coming weeks to see how easy the integration is.

mon commented

There is a tentative addition of opus on my own 0x40 - try and load an opus encoded file and see if it works. I really should just get my own opus ogg and test it, but somewhat time poor.

Works for me, though I don't currently have any Apple devices to hand to properly test this codepath (there doesn't seem to be any regressions at least).
I made this quick respack, which should hopefully be of some use - the song is Machineheart + Vanic - Circles: opus_respack.zip

mon commented

Thanks, nice respack!

I locally forced the fallback codepath and the loop loads fine, no gaps. Decoding is little slower, but that's to be expected. Crazy how small opus encoded audio is...
Fixed in af88533