2022-10-06 20:29:03 +01:00
|
|
|
## Requirements
|
|
|
|
|
|
|
|
- [OBS Studio](https://obsproject.com/)
|
|
|
|
- [OBS Python SDK for Websocket v5](https://github.com/aatikturk/obsws-python)
|
|
|
|
|
|
|
|
## About
|
|
|
|
|
|
|
|
Perhaps you have a streaming setup but you want to control OBS and Voicemeeter from a remote location with python installed.
|
|
|
|
With the vban-cmd and obsws-python packages you may sync a distant Voicemeeter with a distant OBS over LAN.
|
|
|
|
|
2022-10-07 20:01:29 +01:00
|
|
|
## Configure
|
|
|
|
|
2022-10-17 13:14:08 +01:00
|
|
|
This script assumes the following:
|
2022-10-06 20:29:03 +01:00
|
|
|
|
2022-10-17 13:14:08 +01:00
|
|
|
- OBS Connection info in a valid `config.toml`:
|
2022-10-06 20:29:03 +01:00
|
|
|
|
2022-10-17 13:14:08 +01:00
|
|
|
```toml
|
|
|
|
[connection]
|
|
|
|
host = "gamepc.local"
|
|
|
|
port = 4455
|
|
|
|
password = "mystrongpass"
|
|
|
|
```
|
2022-10-06 20:29:03 +01:00
|
|
|
|
2022-10-17 13:15:02 +01:00
|
|
|
- VBAN Connection info in a valid `vban.toml`:
|
2022-10-07 20:01:29 +01:00
|
|
|
|
2022-10-17 13:14:08 +01:00
|
|
|
```toml
|
|
|
|
[connection]
|
|
|
|
ip = "gamepc.local"
|
|
|
|
port = 6980
|
|
|
|
streamname = "Command1"
|
|
|
|
```
|
2022-10-07 20:01:29 +01:00
|
|
|
|
2022-10-17 13:14:08 +01:00
|
|
|
- Both configs should be placed next to `__main__.py`.
|
2022-10-07 20:01:29 +01:00
|
|
|
|
2022-10-17 13:14:08 +01:00
|
|
|
- Four OBS scenes named "START", "BRB", "END" and "LIVE".
|
2022-10-07 20:01:29 +01:00
|
|
|
|
|
|
|
## Use
|
2022-10-06 20:29:03 +01:00
|
|
|
|
|
|
|
Make sure you have established a working connection to OBS and the remote Voicemeeter.
|
|
|
|
|
2022-10-07 20:01:29 +01:00
|
|
|
Run the script, change OBS scenes and watch Voicemeeter parameters change.
|
2022-10-06 20:29:03 +01:00
|
|
|
|
2023-06-25 14:49:07 +01:00
|
|
|
Closing OBS will end the script.
|
2022-10-06 20:29:03 +01:00
|
|
|
|
|
|
|
## Notes
|
|
|
|
|
2023-06-25 14:49:07 +01:00
|
|
|
All but `vban_cmd.iremote` logs are filtered out. Log in DEBUG mode.
|
|
|
|
|
2022-10-06 20:29:03 +01:00
|
|
|
This script can be run from a Linux host since the vban-cmd interface relies on UDP packets and obsws-python runs over websockets.
|
|
|
|
|
2022-10-07 20:01:29 +01:00
|
|
|
You could for example, set this up to run in the background on a home server such as a Raspberry Pi.
|
2022-10-06 20:29:03 +01:00
|
|
|
|
|
|
|
It requires Python 3.10+.
|