Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ingesting stream from VDO.ninja and restreaming via RTMP #46

Open
veks-streamer opened this issue Nov 8, 2024 · 1 comment
Open

Ingesting stream from VDO.ninja and restreaming via RTMP #46

veks-streamer opened this issue Nov 8, 2024 · 1 comment

Comments

@veks-streamer
Copy link

Hi,
I'm trying to find a way to stream from VDO.ninja and ingest the stream into raspberry_ninja and then restream it via RTMP.
How to do that?
Tnx!

@steveseguin
Copy link
Owner

I haven't yet had the time to address your question, as the current Raspberry Ninja code needs a bit of work to have this work well for that task

But the internal logic would be near identical to the NDI output workflow, but instead of publishing to NDI, you'd publish to the RTMP server. While I can probably prototype this workflow out quickly, testing and debugging issues usually can take a few days with Gstreamer, and I'm bogged down at the moment with tasks.

Another way of doing this is to capture the stream with Rapberry Ninja, and the output to fdsink or something like that, a pipe out option that currently works, and then pipe it to something like FFmpeg, which can perhaps handle the RTMP encoding.

Something to note is that you'll want to transcode the video and audio that get you from VDO.Ninja, as most RTMP destinations won't handle WebRTC streams that well. It technically will work in some cases, but many sites are expecting a high quality stream, with fixed resolution and constant frame rate, and that just isn't the case with most webRTC streams.

Given that you have to transcode anyways, another option might be to use a headless browser with ffmpeg, and stream that way. Something like this: https://github.com/steveseguin/browser-in-a-box

Anyways, I can get this all working, but it will take me a while unfortunatley.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants