Notes to Self

Alex Sokolsky's Notes on Computers and Programming

obs-cmd

OBS-cmd is a command-line remote control for OBS. It requires the obs-websocket to be enabled.

Installation

Download obs-cmd, pick the correct binary, e.g. obs-cmd-linux-amd64. Then

wget https://github.com/grigio/obs-cmd/releases/download/v0.17.9/obs-cmd-linux-amd64
chmod +x obs-cmd-linux-amd64
sudo mv obs-cmd-linux-amd64 /usr/local/bin/obs-cmd

OBS Configuration

Select Tools / WebSocket Server Settings:

export OBSWS=obsws://127.0.0.1:4455/secret

Using obs-cmd

obs-cmd -w $OBSWS info

To switch the scene:

obs-cmd -w $OBSWS scene switch "Scene Name"