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

Server still seeing live even if interrupted by internet connexion down from emetter? #1738

Open
CouinCouin opened this issue Oct 1, 2023 · 3 comments

Comments

@CouinCouin
Copy link

Hi,

I had setup a video server with nginx and rtmp module.
Streamers use OBS to send stream.
All works fine but if streamer has an internet connexion interruption, the server stil seeing the stream (but with 0 kbps), and the streamer can not reconnect (once internet came back).

Is there a parameter to set in the config to kill the stream if not longer received ?

Thanks :)
Couin

@shubham21155102
Copy link

shubham21155102 commented Apr 8, 2024

Hi,

I had setup a video server with nginx and rtmp module. Streamers use OBS to send stream. All works fine but if streamer has an internet connexion interruption, the server stil seeing the stream (but with 0 kbps), and the streamer can not reconnect (once internet came back).

Is there a parameter to set in the config to kill the stream if not longer received ?

Thanks :) Couin

Just a suggestion use ffmpeg to handle the rtmp server

@CouinCouin
Copy link
Author

What do you mean ? :)

@shubham21155102
Copy link

shubham21155102 commented Apr 9, 2024

lets take a demo

socket.on("endstream", () => {
console.log("End Stream Socket Event");
if (ffmpegProcess.stdin.writable) {
endStream=true;
ffmpegProcess.stdin.end();
console.log(Stream Ended);
} else {
console.log(Stream Not Found or Already Ended);
}
});

What do you mean ? :)

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