Skip to content
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

Fail to decode opus codec #528

Open
subframe7536 opened this issue Sep 14, 2024 · 3 comments
Open

Fail to decode opus codec #528

subframe7536 opened this issue Sep 14, 2024 · 3 comments

Comments

@subframe7536
Copy link

Thanks for your great work!

I'm just using the example decode_multithreaded with sample files to test decoding, but it fails:

./samples/flac.flac - Success - decoded 442368 samples
./samples/ogg.opus - Error - Unsupported("core (codec):unsupported codec")
./samples/mp3.mp3 - Success - decoded 441216 samples
./samples/wav.wav - Success - decoded 441344 samples
@orottier
Copy link
Owner

Hello and thanks for flagging.
We use the symphonia library for decoding and it appears they do not have support for opus yet pdeljanov/Symphonia#8
Adding opus capabilities directly into this lib is something I would rather not do as it is not core to the audio api feature set.
Perhaps you can convert the files beforehand?

@subframe7536
Copy link
Author

Thanks for your explaination!

Im trying to migrate the audio control from frontend to backend, and just encounter this upstream issue. Maybe your advice is the best way currently.

@orottier
Copy link
Owner

Thanks for understanding.
I'm leaving this issue open for visibility and future reconsideration.
Regarding encoding, in #508 we plan to add support for more types so perhaps that might result in changes to decoding support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants