asmirnou / watsor

Object detection for video surveillance
MIT License
252 stars 32 forks source link

Camera not able to reconnect after getting disconnected. #25

Closed nandan06062g closed 2 years ago

nandan06062g commented 2 years ago

if camera is getting disconnect for a few second also it is not able to reconnect. ffmpeg should have restart clause if frame is none.

asmirnou commented 2 years ago

The application monitors running processes and restarts them after 10 seconds if one was terminated by accident. Make sure that ffmpeg sub-process terminates when camera is disconnected. If it hangs forever, watsor won't be able to detect the failure.