bvibber / ogv.js

JavaScript media player using Ogg/Vorbis/Theora/Opus/WebM libs compiled with Emscripten
https://brooke.vibber.net/misc/ogv.js/demo/
Other
1.2k stars 101 forks source link

Support for VP8/VP9 alpha transparency #590

Open zavitax opened 3 years ago

zavitax commented 3 years ago

I wonder if it's possible to play back WEBM videos with alpha channel preserving transparency with ogv.js At the moment it forces a black background on the playback screen.

bvibber commented 3 years ago

Probably could be done, but would require some additions to yuv-canvas to support carrying and displaying the alpha channel. I won't rule it out, especially if it turns out to be easy to do, but be aware it's not on my first tier of cleanup work to do. :)