Is there a way to add a simple border to sources?

Sukiyucky

Member
The best you can do is create a rectangle image that is slightly bigger than the size of the source object. Then, place that rectangle image underneath the source in sort order (z-order lower). Then group the rectangle and source together.
 
seriously? I can't not believe a fully fledge stream software can't even had a border to a window it's capturing?! That's like a word processor can't change font.
 

jp.d.cruz

New Member

Attachments

  • obs64_HfpioYwSSa.png
    obs64_HfpioYwSSa.png
    17.5 KB · Views: 3,301

SeeFooBoo

New Member
One of the challenges with the suggestion of a group, is that a resize will scale the border. This wouldn't work well for my designs.

For instance, if you want a 3 pixel border always around the source, scaling the group will cause the 3 pixel border to become smaller or bigger—you would need to transform the border each time you change scale.
 

yarrow_flower

New Member
The filter is "User-defined shader".

To create a border around a source:
  1. Add the "User-defined shader" filter.
  2. Type in the number of pixels to determine the size of the border.
  3. Check "Load shader text from file".
  4. Select "border.shader".
  5. Choose a colour for your border.
 

rednecked_crake

New Member
To create a border around a source:
  1. Add the "User-defined shader" filter.
  2. Type in the number of pixels to determine the size of the border.
  3. Check "Load shader text from file".
  4. Select "border.shader".
  5. Choose a colour for your border.
This was almost exactly what I was looking for, but sadly it seems like it only applied the border around the full-size video source. I have a couple of cropped video sources (just the centre 200x400 pixels of something), and the border only goes around the full-size video it seems, not my cropped version.
 

rednecked_crake

New Member
This was almost exactly what I was looking for, but sadly it seems like it only applied the border around the full-size video source. I have a couple of cropped video sources (just the centre 200x400 pixels of something), and the border only goes around the full-size video it seems, not my cropped version.
Ah, for the benefit of anyone else. If you add the "Crop/Pad" effect filter first, you can crop the source with that. Then, the border filter from the github plugin above will add the border around your newly cropped source.
 
Top