OBS-Studio-Python-Scripting-Cheatsheet-obspython-Examples-of-API
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
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?

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