Action for controlling OBS

I often use OBS as a way to do recording and presentations, and I found I often wanted to control OBS from my actions in Keyboard Maestro. There are a few ways that I have done it, but to make it a bit simpler, I created a plugin to help.

Download Package
Source

Main Features

  • Start/Stop/Toggle recording
  • Start/Stop/Toggle streaming
  • Start/Stop/Toggle Virtual Camera
  • Switch scenes
  • Switch scene collections
  • Capture screenshots in OBS

Dependencies

To use this, you are going to need to install Homebrew and the obs-cmd library which you can do the following:

  1. Open your Terminal.
  2. To install Homebrew, run the following command /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" per instructions from Homebrew.
  3. Install obs-cmd by running the command brew install obs-cmd.

After that, you can then install the unzipped package into the /Users/bvanderb/Library/Application Support/Keyboard Maestro/Keyboard Maestro Actions/ folder or drag and drop the ZIP file into Keyboard Maestro.

Let me know your thoughts!

2 Likes

I see that there is a page for obs-cmd, but it seems to be beyond the reach of brew:

Warning: No available formula with the name "obs-cmd".
==> Searching for similarly named formulae and casks...
Error: No formulae or casks found for obs-cmd.

The Homebrew installation is up-to-date and no errors are reported by brew doctor. MacOS: Sonoma 14.7.4. Any ideas would be welcome!

Edit 2025-03-14: this is just a little update to say that, while the question is still of at least theoretical interest to me, I do not for now require the degree of automated control over OBS (in particular, switching of its "scenes") that I sought before. For my aims, it is less work to make one scene do more by tricking the somewhat OBStinate application with shell command actions in KM...

Thanks for catching that. I fixed the documentation to address that it is a manual install rather than homebrew.

I do tend to use this in combination with some of my other automations inside of OBS, but I find it helpful if I am using it in conjunction with other applications.

Some example use cases:

  • Setting conditions like if I go to an application, it changes the scene in OBS
  • If I turn on Microsoft Teams or Zoom, it turns on Virtual Camera
1 Like

Thank you, I shall try this again when I can.

It seems then that step 2 (“To install Homebrew…”) could be removed from the documentation.