streamers haven

How to Only Capture a Part of Your Screen in OBS Studio

Most content makes use of the entire screen real-estate. However, there are some situations where you will want to limit the part of your screen that is captured. In this tutorial, I’ll show you how to only capture a part of your screen using OBS Studio.

There are actually a few ways to accomplish this, each with its own benefits and drawbacks associated with them.

Method 1: Only Capture a Part of Your Screen Using Game Capture

BenefitsDrawbacks
Will never capture another application you don’t intendSome applications aren’t seen by the Game Capture Source (Like Chrome)
Captures the entire application, and nothing more to the pixelNo complex shapes are supported (See Method 2)
Uses the most efficient capture method on OBS Studio
Very easy to implement
Allows other methods to be used alongside it to fine-tune the area captured

The first method I will be covering to only capture a part of your screen is the Game Capture method which is configured to capture a specific application. This partial capture method ensures that you don’t accidentally reveal personal information from foreground applications, like checking your email while on stream, and will prevent things like the Steam Overlay from being captured by default, revealing your friends list to your audience.

As you can imagine, I don’t think your friends would appreciate being bugged by people who watch you. Keeping that information private is just a bit of good stream etiquette. This partial screen capture method is the easiest to implement that I know of.

To add the Game Capture source and specify the application:

  1. Open OBS Studio
  2. Under Sources, Left-click the + sign
OBS Studio Add a Game Capture Source
  1. Select Game Capture (It’s already added in the above picture)
  2. Set the mode to “Capture Specific Window.”
OBS Game Capture Source Settings for specific window capture
  1. Select your Application in the Window Section – in my case, Space Engineers

Tuning the Capture Further with a Crop

Now, you can further tune the partially captured content by cropping a specific area into a partial screen capture. This is done by:

  1. Left-Alt + Left-click on one of the edge handles (The red squares located around the active source in between two corners)
  2. Drag the handle inward until you see a green line
Crop a Source to capture only a part of your screen in OBS

The green line indicates that the content is cropped off. You can undo the crop by holding the Alt key again and dragging it in the opposite direction until it turns red.

This process remains the same for the following methods, aside from the fact that the source type changes.

Method 2: Partial Screen Capture Using Masking for Complex Cropping

BenefitsDrawbacks
Supports complex shapesComplicated to set up
Very versatileMatching the aspect ratio is important
Requires external image editing programs

The next method of capturing only a part of your screen makes use of the image mask filter to specifically hide a complex shape that standard cropping can’t create. For example, say you stream Path of Exile. In that game, the health and mana are represented as circles. Therefore, the standard crop wouldn’t work very cleanly if you wanted to say, create a second, larger version located elsewhere on your screen in a more prominent location.

This means that you’ll need an image mask to get the specific area of the screen you are targeting. You’ll also likely need to create the mask file yourself, as getting a complex cropping shape to your exact needs isn’t likely available on the internet.

This partial capture process is also handy if you use LumiaStream, as their basic Rectangular RGB Overlay element can be masked to look much more refined using a mask.

Just be warned, this process to capture only a part of the screen in OBS is highly involved and may frustrate you if you end up masking the wrong area or use the wrong aspect ratio in the masking process.

Don’t worry; it’s actually very easy to create a mask file –

  1. Open up an image manipulation program like Gimp, or Photoshop
  2. Create a screenshot of the content you want to mask – I use ShareX to make that process much easier
  3. Import the Screenshot into Gimp or Photoshop
  4. Create a new layer above the screenshot layer
  5. Use the Fuzzy Select tool in Gimp with the screenshot layer active, and left-click, hold, and slide your mouse out from the area you want to mask
  6. Select the inverse, and press the delete key
  7. Activate the second layer
  8. Select inverse again
  9. Color in the area with #FFFFFF white
  10. Save the image to a folder somewhere on your computer as a .png

And now you have the mask file for the resolution you screenshotted for. Next, you just need to apply the mask file to your source in OBS. To do this:

  1. Add a second game capture source for the same program
  2. Right-click the source
  3. Select Filters
  4. Under Effect Filters, Left-click the + button
  5. Left-click Image Mask/Blend
  6. For the Type, you want the “Alpa mask” color channel or alpha channel (you may need to play with this a bit depending on how you do the mask.
  7. Browse to your mask file location
  8. Ensure White #FFFFFF is the color being masked.

Now, the source should be completely invisible, minus the area that you colored in white. You should be able to then crop it using the first method, resize it, and position it wherever you like on the canvas.

Conclusion for How to Only Capture a Part of Your Screen in OBS Studio

Between these two methods of cropping content for partial capture, most situations should be covered. These two methods combined together are especially effective in achieving a precise capture. I hope that this article has helped you to achieve the look you are going for!

Leave a Comment