fetch-stream-audio icon indicating copy to clipboard operation
fetch-stream-audio copied to clipboard

Add WebM Support

Open anthumchris opened this issue 4 years ago • 3 comments

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.

anthumchris avatar Dec 30 '19 13:12 anthumchris

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.

Brahmasmi avatar Jan 02 '20 12:01 Brahmasmi

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.

anthumchris avatar Jan 02 '20 14:01 anthumchris

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

guest271314 avatar Feb 19 '20 17:02 guest271314