Is Vorbis supported? #52
Answered
by
Vanilagy
wesleywerner
asked this question in
Q&A
|
Hello, I sort of assumed that reading vorbis encoded audio was supported, and was a little surprised when my project balked when I tried to process an ogg file. I can see there are source code files in Mediabunny to handle the vorbis file format, yet when I try to convert from vorbis to Opus I get "EncodingError: The given encoding is not supported". You can recreate the problem by uploading a vorbis encoded audio file on the examples/file-compression example page. Just wondering if this is on my side only or if this is a known issue? Any hints or feedback welcomed, work-arounds or solutions would be even more appreciated :) Testing in Firefox 141.0.2 (Linux 64-bit). |
Answered by
Vanilagy
Aug 12, 2025
Replies: 1 comment 7 replies
2025-08-10.13-51-25.mp4Answer: yes. |
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Sorry for the spam. I actually got it to work in Firefox!
2025-08-12.08-48-24.mp4
Vorbis has this weird thing where the first packet doesn't actually contain any audio data but instead "seeds" the decoder with the correct state. Chromium doesn't emit any AudioData for that (which I believe is the correct behavior), but Firefox does, so I simply needed to skip the zero-length AudioData by Firefox and voila, it works.