Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encode alpha video to WebM ? #9

Closed
juntaosun opened this issue Feb 26, 2023 · 1 comment
Closed

Encode alpha video to WebM ? #9

juntaosun opened this issue Feb 26, 2023 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@juntaosun
Copy link

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
Copy link
Owner

Vanilagy commented Mar 1, 2023

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!

@Vanilagy Vanilagy closed this as completed Mar 1, 2023
@Vanilagy Vanilagy added the help wanted Extra attention is needed label Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants