Open CouinCouin opened 1 year ago
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
What do you mean ? :)
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 ? :)
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