3 ms·
Note that a few video codecs also support alpha these days, which could be used to preserve the mask and overlay the video over some background. It even works
by the8472 7y ago
Note that a few video codecs also support alpha these days, which could be used to preserve the mask and overlay the video over some background.
It even works on the web: https://files.catbox.moe/uu2ze0.webm https://files.catbox.moe/uu2ze0.webm (needs a non-black background)
- jpincheira 7y agoWow. Pretty cool. Had no idea about this.
- izietto 7y agohere with a yellow background (edit: changed to a yellow-to-green circle-shaped radial gradient because why not): https://codepen.io/mdesantis/pen/RwNZEZJ https://codepen.io/mdesantis/pen/RwNZEZJ
- pbhjpbhj 7y agoMaybe, https://codepen.io/pbhj/pen/dyPzwEj https://codepen.io/pbhj/pen/dyPzwEj instead - centre the video and put the gradient on the body to emphasise the matting?
- pbhjpbhj 7y agoFirefox (Linux): I had to open dev tools, remove the bg-image that Firefox shows around media links, and then adjusting the bg-color showed the effect. Otherwise it just looked like a normal video.