-
-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does the built-in snapcast client support Opus codec? #728
Comments
Iris includes a copy (?) of snapweb, including a copy of its missing support for Opus. See badaix/snapweb#8 |
It's especially unfortunate since the ESP32 snapclients ONLY compressed option is opus (or uncompressed PCM) |
And another question, sorry if thats obvious: why does snapweb needs to have its own OPUS implementation and cannot use the browsers built-in opus codec? |
Because it (along with all of snapcast) is designed to provide synchronised playback across multiple clients. To do that requires a more complicated playback algorithm. The regular playback in the browser cannot do that. It doesn't matter if you are not using the synchronisation feature, that's how it works. |
This is really a question for the Snapweb author because the Iris implementation is derivative of that. Quite literally, FWIW: you are also more likely to get useful answers by posting questions like this on the Discourse forum, rather than the Iris issue tracker. |
What @kingosticks said ☝️ |
Sure. But as it is stated in the README of Snapcast, it does achieve sync but dropping/duplicating single samples to speed up playback, so in theory this could be done before or after the stream is transported with build-in (or HW implemented) codecs, like opus?
|
I don't believe the browser audio API provides any mechanism to do that but if you have an implementation please discuss/provide it at badaix/snapweb#8 |
I will take the issue to Snapweb, but this sure sounds as if it was possible to adapt playback speed: |
I configured my snapcast server to transmit the streams compressed with the "opus" codec. Both Chrome and Firefox have built-in Opus codec support. Still, when activating the snapcast server in Mopidy-Iris a modal box pops up saying "Codec not supported: opus". Is this a configuration mistake on my side or does the client indeed not support the opus codec?
Bonus question: is this error message referring to that lack of opus support in the browser or in the snapweb client?
The text was updated successfully, but these errors were encountered: