Control OBS Studio with Open Sound Control
Uses Python-osc
* the script connects python to obs websocket on port 4444 in localhost using default credentials ( you might want to change that if you stream :-)
-
you can get all the needed stuff with pip install -r requirements.txt
-
An osc listener runs on port 5005 and listens for /Scene message
-
It lists all the available scenes to iterate through them
-
A lot of parameters are exposed to the web socket so you can control almost anything in OBS with the right address. For now I commented out a few lines that ilustrates a way to control individual elements as "webcam1" on "Scene1" on/off switch.
-
Current example switches between two scenes named Scene1 and Scene2 with values from a m4l device sending values from 0 to 127