nginx-rtmp-module icon indicating copy to clipboard operation
nginx-rtmp-module copied to clipboard

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

Open CouinCouin opened this issue 2 years ago • 3 comments

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

CouinCouin avatar Oct 01 '23 21:10 CouinCouin

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

shubham21155102 avatar Apr 08 '24 13:04 shubham21155102

What do you mean ? :)

CouinCouin avatar Apr 08 '24 13:04 CouinCouin

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 ? :)

shubham21155102 avatar Apr 09 '24 12:04 shubham21155102