OBS-Studio-Python-Scripting-Cheatsheet-obspython-Examples-of-API icon indicating copy to clipboard operation
OBS-Studio-Python-Scripting-Cheatsheet-obspython-Examples-of-API copied to clipboard

Update server url and key via python script in stream section of OBS

Open MohdIrfan12 opened this issue 3 years ago • 1 comments

Is it possible to update OBS stream section via scripts? So let's say there is a python script that is somehow setting Stream configurations(RTMP URL and Stream key) programmatically and this script will run on OBS startup. Is it possible? Screenshot 2022-01-23 at 12 37 37 PM

MohdIrfan12 avatar Jan 21 '22 13:01 MohdIrfan12

It might be possible to do it from obspyton/obslua. The Stream tab in OBS Studio Settings UI uses so called obs_service_t structure which you can obtain from obs_frontend_get_streaming_service call, you might consult Service API Reference for details. While writing this post, I found this related to question repo in GitHub Search. My only concern is that there might be 1 memory leak, because there are no "*_release" API available for obs_service_t

upgradeQ avatar Jan 23 '22 11:01 upgradeQ