Create video/webcam sources in a script


New Member

This is my first post here so sorry if I am not perfectly clear.

I try to create sources with a script, one for a webcam and a second for a rtsp video flux.
It can be in Lua or in Python if possible but it seem if I don't make a mistake that it was not possible in Python.
I have looked in the API doc and on a lot of online resources but I have found thinks for create image sources or text but I have not found any things for video or webcam.

I have read : Script Sources (Lua Only) and Use a Lua Script to Import Your Twitch Streaming Overlay Designs into OBS Studio Streaming Overlay Designs into OBS Studio and a lot of another websites

I continue tu search but if some one can help me, thank you in advance.