Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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)


You 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-gs...


Thanks. It's kind of disappointing there isn't a simple pip-installable library that can do this without gstreamer dependency.


Hmm 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/ref...


Was 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/ 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 :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: