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

Add WebM Support #13

Open
anthumchris opened this issue Dec 30, 2019 · 3 comments
Open

Add WebM Support #13

anthumchris opened this issue Dec 30, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@anthumchris
Copy link
Owner

audio/webm codecs=opus files should be supported. WebM seems to be the preferred web web container moving forward and is also supported by Media Source Extensions (MSE) which is another mechanism for playing audio quickly. WebM support would also allow direct comparisons of playback immediacy between MSE and the Web Audio API.

A WebAssembly or JS module would be needed to extract Opus packets from the container file. The current opus-stream-decoder WASM cannot decode on a Opus packet-only basis

I don't know the WebM/Matroska container specs and will need to spend time reading those.

@Brahmasmi
Copy link

Namaste Chris,

Would https://github.com/brion/ogv.js be of any assistance in bringing opus-in-webm support to fetch-stream-audio?

If I am not wrong, that repository has the wasm and js versions of opus decoders and webm demuxers.

Hope this helps.

Dhanyavaad.

@anthumchris
Copy link
Owner Author

anthumchris commented Jan 2, 2020

Thanks @Brahmasmi. I've been referencing ogv and Brion's been very helpful in pointing me in the right directions. Been reading source for nestegg and Parsing EBML has been helpful in learning.

@guest271314
Copy link

ts-ebml is capable of reading WebM files with Opus encoded audio.

@anthumchris anthumchris added the enhancement New feature or request label May 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants