4 ms·
Neat project! You could use WebCodec's ImageDecoder plus some custom controls to do this all in JavaScript without transcoding if you wanted. Otherwise you coul
by DaleCurtis 5y ago
Neat project! You could use WebCodec's ImageDecoder plus some custom controls to do this all in JavaScript without transcoding if you wanted. Otherwise you could use VideoEncoder and MSE for native video support.
https://developer.mozilla.org/en-US/docs/Web/API/WebCodecs_API https://developer.mozilla.org/en-US/docs/Web/API/WebCodecs_A...
https://w3c.github.io/webcodecs/samples/ https://w3c.github.io/webcodecs/samples/
https://developer.mozilla.org/en-US/docs/Web/API/Media_Source_Extensions_API https://developer.mozilla.org/en-US/docs/Web/API/Media_Sourc...
- brunoluiz 5y agoThat is interesting to be fair, I didn't know these APIs. Certainly something to have a look for either replacing WASM or for new projects. I've considered using some JS libraries that are around for sometime (like https://github.com/buzzfeed/libgif-js https://github.com/buzzfeed/libgif-js), but the challenge of using WASM seemed more interesting in a hacking perspective let's say hehe.