kyriesent / node-rtsp-stream

Stream any RTSP stream and output to websocket for consumption by jsmpeg (https://github.com/phoboslab/jsmpeg). HTML5 streaming video! Requires ffmpeg.
MIT License
451 stars 166 forks source link

Restart Stream If RTSP back online #44

Closed qahtansaid closed 4 years ago

qahtansaid commented 5 years ago

Hi I'm a beginner . I want to make reconnection if RTSP back online without restarting node server, i've tried with PM2 and forever but it restart the node server and ffmpeg terminal keeps popping out. Help pls

felipebutcher commented 4 years ago

this is working out of box for me. if i kill the server and run again the stream continues automatically.

kyriesent commented 4 years ago

This seems to be resolved so I am closing. Feel free to open another issue if need be.

hongson23 commented 3 years ago

hello @kyriesent I tested with the situation, while node server was processing so RTSP was down(about 2-3 minutes) after that it back online node server still working, I can see log information in terminal but jsmpeg can not show anythings on the clients pls help! thanks