4 ms·
Does anybody know how to source a WebRTC stream for OBS inputs? In particular, I have a python program and want something that looks like: rtc = open_stream_to
by dekhn 5y ago
Does anybody know how to source a WebRTC stream for OBS inputs? In particular, I have a python program and want something that looks like:
rtc = open_stream_to_obs(address)
while True:
rtc.send_frame(my_numpy_array)
- EricE 5y agoWas trying to use OBS's built in RTMP support but found it a buggy mess that would freeze/drift over time. Ended up using the free version of StreamBridge https://tricube.net/products/stream-bridge/ https://tricube.net/products/stream-bridge/ to convert the RTMP from IP cameras I had to NDI - and from there it worked flawlessly with OBS. It doesn't look like StreamBridge supports WebRTC, but maybe someone else has a WebRTC to NDI converter that would be similar to StreamBridge? I really hate having the intermediate step, but I like having stable video even more :)
- m3at 5y agoYou can directly with gstreamer, but it's a bit of a hassle to set up. You could try this python convenience library: https://git.aweirdimagination.net/perelman/minimal-webrtc-gstreamer https://git.aweirdimagination.net/perelman/minimal-webrtc-gs...
- dekhn 5y agoThanks. It's kind of disappointing there isn't a simple pip-installable library that can do this without gstreamer dependency.
- m3at 5y agoHmm maybe vidgear can do it? I'm unsure about the latency you'll get out of it though: https://abhitronix.github.io/vidgear/v0.2.5-stable/bonus/reference/webgear_rtc/ https://abhitronix.github.io/vidgear/v0.2.5-stable/bonus/ref...