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

Encode alpha video to WebM ? #9

Closed juntaosun closed 1 year ago

juntaosun commented 1 year ago

Chrome 31 now supports video alpha transparency in WebM. "webm-muxer" How to Encoder alpha videos ?

VideoEncoderConfig: alpha: 'keep', // keep alpha channel

It doesn't work

Vanilagy commented 1 year ago

Added a config option to enable flagging the video as containing alpha data. However, as it seems, Chromium itself does not support encoding alpha video as of today: https://chromium.googlesource.com/chromium/src/+/00d126142a32c598a0874ef80ba27a3591cd2b2c/third_party/blink/renderer/modules/webcodecs/video_encoder.cc#187

Nothing I can do about that. Bummer!