steveseguin / vdo.ninja

VDO.Ninja is a powerful tool that lets you bring remote video feeds into OBS or other studio software via WebRTC.
https://vdo.ninja
Other
2.72k stars 738 forks source link

NDI Input #1049

Open Friismestemacher opened 1 year ago

Friismestemacher commented 1 year ago

hey there, im looking for a way to get multiple NDI streams as Input for vdo.ninja (need a ndi to webrtc bridge). Can you give me a hint where to start for this?

steveseguin commented 1 year ago

I'm not entirely sure about multiple NDI streams. I've used in the past the NDI Virtual Input into vdo.ninja, but I'm not familiar in the case of there being multiple NDI virtual camera options.

OBS Studio used to support up to 4 or 5 virtual cameras, and it might have been possible there to load up to 5 NDI sources in OBS and output one source per virtual camera?

It might be possible for me to add NDI input support to Raspberry.Ninja, which if using LInux you might even be able to pipe h264 video directly to webRTC without transcoding. Audio needs to be PCM or OPUS though. I currently have Rasbperry.Ninja supporting linux pipes

something like: ffmpeg -i input.mp4 -o - | python3 publish.py --pipein auto

I might be able to add NDI support directly as a source for Raspberry.Ninja as well, to make it easier, but I'd need clarification on the requirements.

There's also Vingester.app, which does webRTC -> NDI ; I suppose it's always possible to make a similar app that does NDI -> WebRTC, but my progress on such as app isn't very far along - only an experimental concept there.