Vanilagy / webm-muxer

WebM multiplexer in pure TypeScript with support for WebCodecs API, video & audio.
https://vanilagy.github.io/webm-muxer/demo
MIT License
197 stars 12 forks source link

Are there plans to support demux webm file? #22

Closed hughfenghen closed 1 year ago

hughfenghen commented 1 year ago

Hi there, can webm files be demuxed into chunked data, which then can be fed into VideoDecoder?

Vanilagy commented 1 year ago

There are no plans to add demuxing support, this library is solely for muxing. Demuxing is a whole different beast since you have to properly support all the files out there in the wild. But yes, the JS world definitely needs explicit demuxing functionality too, going beyond regular playback.

This library looks proper and the demo seems legit, but it doesn't seem to be too well documented. If you need something really primitive you might be able to captureStream on a video element and then pipe that into a MediaStreamTrackProcessor to get the frames, but that's quite a limiting approach, I agree.

hughfenghen commented 1 year ago

Thanks ~