Question / Help Camera Masking?

Skyllus

New Member
I've seen a few older threads mentioning it as a possible feature to be implemented, but haven't seen anything about how to actually do it now if it's possible.

Here's what I've got currently: http://i.imgur.com/wHwcEFa.jpg

My goal is to have my webcamera only display inside the cutout. Currently attempting to accomplish this using the "Color Key" settings on the image but not having any success - I can mask out the green but it's not actually blocking the camera, obviously. I saw a few mentions of possibly doing this with an alpha channel - how would I go about making that happen?
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Currently there is no masking functionality, but it will be possible to do in the rewrite (though probably not right away).

Color/Chroma key is used to make certain colors or color ranges transparent, it only works for the source you're using it on, not for other sources.
 

FerretBomb

Active Member
Just as a side-note, I did this using a workaround, one of those cheezy 'add webcam effects' programs that takes your cam as an input and creates an output virtual webcam interface. Then set up the vignette mask to be overlaid in the cam-effects program, feed the virtual cam from that into OBS, and chromakey from there.

Unfortunately it usually incurs a pretty noticeable loss in quality, and can result in irregular performance, meaning that your lipsync/mic-delay will be off. Also do bear in mind that this would just vignette the video feed, and not rescale it as if it were in perspective though.

Yeah, I'd opened a feature request for this (along with gradient alpha) on the Suggestions forum a couple of months back. All the new features are getting put into the rewrite though (unfortunately?).
 

Skyllus

New Member
FerretBomb said:
Just as a side-note, I did this using a workaround, one of those cheezy 'add webcam effects' programs that takes your cam as an input and creates an output virtual webcam interface. Then set up the vignette mask to be overlaid in the cam-effects program, feed the virtual cam from that into OBS, and chromakey from there.

Unfortunately it usually incurs a pretty noticeable loss in quality, and can result in irregular performance, meaning that your lipsync/mic-delay will be off. Also do bear in mind that this would just vignette the video feed, and not rescale it as if it were in perspective though.

Yeah, I'd opened a feature request for this (along with gradient alpha) on the Suggestions forum a couple of months back. All the new features are getting put into the rewrite though (unfortunately?).

Yeah, I ended up solving it using SplitCam (which is a kind of questionable software in general) to add the extra border and then Chroma Key'd it out. Result looks *ok* but going to need an extra program running and will have to give everyone instructions since I'm sharing this out with several people. Oh well.

http://i.imgur.com/OLTeftI.jpg

Definitely will be a useful feature for the rewrite. Thanks guys.
 

Skyllus

New Member
For the sake of anyone else trying this - I wrote up instructions anyways:

Camera Mask/Border

You'll need to download SplitCam: http://splitcamera.com/download.html

!!! BE CAREFUL! IT ASKS IF YOU WANT TO INSTALL ONE OF THOSE STUPID BROWSER TOOLBARS, SAY NO! !!!

That software allows you to use your webcam source in multiple locations and also lets you manipulate it with cheesy effects and shit. I'm using it to add a border which will get chroma key'd out like a greenscreen would.

Once installed, make sure that you run as Administrator or the program will crash trying to add our chroma key file.

  • Set up SplitCam so your camera shows up
  • Along the bottom bar, click Effects and then Custom
  • Add the PNG with a solid border in green/pink/whatever (Example: http://i.imgur.com/y7bj3TO.png) and name it whatever you want
  • Select object type "Avatar" and hit "Create & save object"
  • Now just go to Avatars and add the image over your camera.

Run OBS in 32-bit and the SplitCam will show up as a Video Capture Source. Then just check "Chroma Key" and then select the border you want to remove.

Major Downside: If you want to switch to another scene which has your "normal" camera, you'll need to disable the chroma overlay. SplitCam doesn't actually provide a useable alternate source which you can use on the other scene - all of your scenes will have to be based off the Splitcam display.
 

DarkFilter

New Member
This Feature is also possible with xsplit if you enable the virtual camera output. unsure if that is a professional feature, but thought i would note it down.
 
Top