Feature Request - Vignette/Mask Image for Video Cap Sources

FerretBomb

Active Member
Would it be possible to add a 'masking image' to sources, such as webcams?
I currently use an intermediate step (one of those junky 'add effects' filters) to overlay a chroma-green image on my webcam feed, and then key it out when I need to do this. Getting the image green to match the backdrop under various lighting conditions (day/night) is a pain.

Adding something like this directly to the webcam/video capture source inline, using a grayscale (or alpha-channel) image file would allow for circular vignette styles (for games with round character portraits, and overlaying yourself), non-square ratios with rounded edges (Starcraft/SC2) or even just a method to crop out sections of a greenscreen that isn't square-on to the camera (trapezoid crop).

Having an ability to toggle mask visibility would be handy as well for setup, as would an ability to add an offset to move the mask around a bit (fit the 'window' over the right area) especially if the mask is allowed to be oversized, or any full-bleed to be assumed to be cropped (so you could make a 512x512 b/w image with an antialiased white circle on a black background, then move it around until your face was inside, without needing to make it 3840x2048 to cover all of the possible positions in the camera view on a 1920x1080 cam). The ability to scale the mask image would be handy too (but also the ability to keep it locked proportional to the cam when resizing that).

Would make it easy to take a snapshot with your cam, load up GIMP (or photoshop), make a new layer, lasso around your face/desired on-cam area, fill white inside, black background (with antialiased edges via gradient alpha), export the image and slap it on an overlay to allow a lot of flexibility in cropping, and a smooth edge as well. Could do the same with other sources too, but really the cam would be the most useful for this.
 

FerretBomb

Active Member
Re: Feature Request - Vignette/Mask Image for Video Cap Sour

One down-side did occur about this suggestion; if you're using your webcam as a Global Source, and the mask is tied to it in the options, you'll be stuck with the vignette in all your scenes that use a cam.

Not so much a problem if you're just using it to crop out a chroma screen that's not perpendicular to the camera (trapezoid crop) or to mask out a pod-and-boom mic that would otherwise be jutting onto the screen, but could be problematic if you want to switch from a SC2 portrait-overlay to a full-screen cam... you would still be stuck with the rounded edges, or have to remove the cam as a Global Source and be stuck with the freezeframe-and-jump scene switch instead of the nice smooth transition a global allows.

Suppose we'll have to wait for Linked Layers, and allow a 'masking' layer to be applied to a linked layer for each scene.
Still, having the masking layer/image option in the cam would add a lot of versatility for cropping as a global source, so should still be considered for inclusion.
 
Top