webm-writer-js icon indicating copy to clipboard operation
webm-writer-js copied to clipboard

Webcodecs Support?

Open tungs opened this issue 2 years ago • 5 comments

Is there an interest in adding support for webcodecs? webm-writer-js already handles a lot of the data formatting and muxing for webm; it's pretty close to adding support for webcodecs.

If you didn't know, the w3c's webcodecs repository uses a modified version of webm-writer for one of its samples that can save a limited video. I ran into some flaws with that version, and ended up creating my own version here. It can add EncodedVideoChunks to a webm using a new addChunk function.

Let me know if you want me to do a PR, I'd be happy to. Thanks for all the great work on this library!

tungs avatar Mar 11 '22 04:03 tungs

I'm also trying to find a working sample that supports adding audio channels using the webm-writer. @tungs did you happen to figured that one out?

ericshuk avatar Mar 14 '22 12:03 ericshuk

@FullyFerret, I should have been clearer in my post; I'm talking about video only. You probably know much more about this than I, but it seems audio requires audio-specific EBML tags and probably a decent amount of work to integrate an audio source.

tungs avatar Mar 14 '22 18:03 tungs

See https://github.com/davedoesdev/webm-muxer.js.

guest271314 avatar Jun 24 '22 14:06 guest271314

Check out my library https://github.com/Vanilagy/webm-muxer which uses WebCodecs and supports both video and audio

Vanilagy avatar Nov 10 '22 19:11 Vanilagy

Thanks @Vanilagy !

rafael2k avatar Jan 23 '23 12:01 rafael2k