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
One listener Multi-caller #2864
Comments
SRT offers a solution of a listener, which works merely like the Many simply accept one connection and then don't accept anything at all until this one connection is broken. Others accept multiple connections, but then the application's code must be prepared to manage multiple receivers and distribute the stream throughout them. If OBS rejects the second connection then it likely doesn't do it. You should check this with OBS if it offers something like this. From the perspective of SRT there's no problem with having that (at least potentially). |
FFmpeg's implementation of SRT listener is single connection. You need to play with obs-gstreamer to get multiple connections or use e.g. srt-live-transmit as a proxy. |
Actually not; |
my bad, I was under the impression that one of the console tools other than gstreamer did support that... |
@matiaspl thx, i see libsrt.c in ffmpeg if (s->mode == SRT_MODE_LISTENER) {
// multi-client
ret = libsrt_listen(write_eid, fd, cur_ai->ai_addr, cur_ai->ai_addrlen, h, s->listen_timeout);
srt_epoll_release(write_eid);
if (ret < 0)
goto fail1;
srt_close(fd);
fd = ret;
} srt will close after accept one client, is there any ready to use solution for ffmpeg? |
The |
@eurekao I really think you should rather try to talk with OBS guys whether they would like to have something like that. You can use |
set obs like srt://127.0.0.1:10080?mode=listener&timeout=5000000 to push stream
run 2 VLC read stream like srt://127.0.0.1:10080?mode=caller
just the first vlc can show the stream, the second connect error
what i can do?
The text was updated successfully, but these errors were encountered: