Guide · about 10 minutes

How to set up OBS with ViewSwitcher

ViewSwitcher sets up OBS for you. This guide goes through it once, from installing both apps to your first stream, and what to do if something doesn't show up.

1. Install OBS and ViewSwitcher

OBS is the free app that does the streaming. ViewSwitcher tells it what to show and where your camera and screen go, so you keep streaming to YouTube, Facebook, Twitch or wherever you go live today.

Download for Mac

2. Turn on OBS's WebSocket server

This is how ViewSwitcher talks to OBS. In OBS, choose Tools → WebSocket Server Settings and turn on Enable WebSocket server. Leave the port as it is. ViewSwitcher finds it and connects by itself, even with a password set, since it reads OBS's settings on the same Mac.

Until then, ViewSwitcher shows this card and "OBS offline" at the top:

ViewSwitcher's Connect OBS card: Open OBS, then turn on Tools, WebSocket Server Settings, Enable WebSocket server. The switcher connects by itself. A pill at the top right reads OBS offline.

3. Press Set up OBS

Once OBS is connected, the card changes to Set up OBS. Press it, and ViewSwitcher adds one scene to OBS and switches to it:

OBS scene "ViewSwitcher"

Your other scenes in OBS stay as they are. If OBS is already streaming or recording, ViewSwitcher asks first and leaves OBS on the scene it's showing.

4. Add your camera and screen

Now add your devices to the "ViewSwitcher" scene in OBS (the + under Sources), with exactly these names. ViewSwitcher lists the ones it's still missing.

Name in OBSSource typeWhat it is
CameraVideo Capture DeviceYour main camera: the Mac's own, a USB webcam, or a capture card
ScreenmacOS Screen CaptureThe screen or window you share: slides, a browser, a game
GuestVideo Capture DeviceOptional: a second camera, for views with a guest box
iPadVideo Capture DeviceOptional: an iPad's screen over its cable, to draw or show apps

Then press Set up OBS again. That puts the program page back on top of the sources you added. Don't have an iPad? Press Not now and ViewSwitcher stops asking.

From here on, ViewSwitcher moves these sources. Each view says where its camera and screen boxes are, and when you switch, ViewSwitcher moves and crops the sources into them. You don't need a separate OBS scene for each layout.

5. Go live

Tell OBS where to stream once: Settings → Stream, then pick YouTube, Facebook, Twitch or another service and connect your account or paste the stream key. Then, in ViewSwitcher:

  1. Under Projects, press + to make one for your show, and pick the views it uses.
  2. Add a stream for today, with its date and title. Next week is a new stream, and the views stay the same.
  3. Click Starting soon, then Go Live and confirm. OBS starts streaming and the button reads Live. Rec records at the same time, if you want a copy.
  4. Click views as the show goes. The one on air has a red outline.
  5. End on your goodbye view, then press Live to stop streaming.
ViewSwitcher on the Mac: Grace Community's Sunday Live project, the Romans 12 stream for November 29, with Welcome, Pastor, Sermon, Giving and Goodbye views. The Sermon view has a red On air outline.
A church's Sunday stream in ViewSwitcher. Clicking a view puts it on air; the red outline shows which one people see. The camera boxes fill in once OBS is connected.

To change a title or move a box, press Edit. Right-click or double-click text to retype it and drag boxes where you want them. If the view is on air, viewers see the change as you make it, so there's an Edit a copy instead button too.

ViewSwitcher's editor on the Sermon view: the scripture Romans 12:2, the sermon title, and a dashed camera box. A red bar says the scene is on air and changes show on stream as you make them.

Troubleshooting

ViewSwitcher says OBS is offline

Check that OBS is open and that Enable WebSocket server is on in Tools → WebSocket Server Settings. If you changed its port, change it back to 4455.

The view is blank in OBS

In OBS, open Settings → Advanced, turn off Enable Browser Source Hardware Acceleration, and restart OBS. On some versions of macOS and OBS, the browser source stays blank with it on.

My camera or screen isn't in the view

The source has to be in the "ViewSwitcher" scene and named exactly Camera, Screen or Guest, with the same capital letter. Rename it in OBS, then press Set up OBS again. If a view has a box for a source OBS doesn't have, ViewSwitcher shows a warning that names it.

The screen capture is black

macOS needs to let OBS record the screen. Open System Settings → Privacy & Security → Screen & System Audio Recording, turn OBS on, and restart OBS.

The views cover my camera, or my camera covers the views

Press Set up OBS again. It puts the program page back on top and the background color at the bottom, with your devices in between.

Still stuck? See Support, or ask on GitHub with what you expected to happen.