videoanalysis keeps restarting
**Describe the bug**
My logs keeps showing the `videoanalysis` process starting and closing/restarting over and over for my camera

```
[14/01/2022, 11:41:11 am] [CameraUI] Front 2: Videoanalysis scheduled for restart at 3AM: 919 minutes
[14/01/2022, 11:41:12 am] [CameraUI] Front 2: Restart videoanalysis session..
[14/01/2022, 11:41:22 am] [CameraUI] Front 2: Videoanalysis scheduled for restart at 3AM: 919 minutes
[14/01/2022, 11:41:22 am] [CameraUI] Front 2: Restart videoanalysis session..
[14/01/2022, 11:41:32 am] [CameraUI] Front 2: Videoanalysis scheduled for restart at 3AM: 918 minutes
[14/01/2022, 11:41:32 am] [CameraUI] Front 2: Restart videoanalysis session..
```

**To Reproduce**
Enable "video analysis" for camera

**Expected behavior**
"Video analysis" to work

**Logs**
I enabled `debug: true` to get some more useful logs

```
14/01/2022, 11:53:39 am] [CameraUI] Front 2: Pinging 192.168.1.4:554 - successful
[14/01/2022, 11:53:39 am] [CameraUI] Front 2: Start videoanalysis...
[14/01/2022, 11:53:39 am] [CameraUI] Front 2: Videoanalysis command: C:\Users\Long\AppData\Roaming\npm\node_modules\homebridge-camera-ui\node_modules\ffmpeg-for-homebridge\ffmpeg.exe -hide_banner -loglevel error -hwaccel auto -rtsp_transport tcp -i rtsp://192.168.1.4:554/cam/realmonitor?channel=7&subtype=1 -an -vcodec pam -pix_fmt rgba -f image2pipe -vf fps=2,scale=640:360 pipe:1
[14/01/2022, 11:53:39 am] [CameraUI] Front 2: Videoanalysis: Currently active zones: [{"name":"region0","difference":9,"percent":75,"polygon":[{"x":0,"y":0},{"x":6,"y":353},{"x":627,"y":356},{"x":634,"y":4},{"x":0,"y":0}]}]
[14/01/2022, 11:53:39 am] [CameraUI] Front 2: Videoanalysis scheduled for restart at 3AM: 906 minutes
[14/01/2022, 11:53:45 am] [CameraUI] Front 2: FFmpeg videoanalysis process exited (expected)
[14/01/2022, 11:53:45 am] [CameraUI] Front 2: Videoanalysis process closed
[14/01/2022, 11:53:45 am] [CameraUI] Front 2: Restart videoanalysis session..
[14/01/2022, 11:53:55 am] [CameraUI] Front 2: Incoming ping request for: rtsp://192.168.1.4:554/cam/realmonitor?channel=7&subtype=0 - Timeout: 1s
[14/01/2022, 11:53:55 am] [CameraUI] Front 2: Pinging 192.168.1.4:554
[14/01/2022, 11:53:55 am] [CameraUI] Front 2: Pinging 192.168.1.4:554 - successful
[14/01/2022, 11:53:55 am] [CameraUI] Front 2: Start videoanalysis...
[14/01/2022, 11:53:55 am] [CameraUI] Front 2: Videoanalysis command: C:\Users\Long\AppData\Roaming\npm\node_modules\homebridge-camera-ui\node_modules\ffmpeg-for-homebridge\ffmpeg.exe -hide_banner -loglevel error -hwaccel auto -rtsp_transport tcp -i rtsp://192.168.1.4:554/cam/realmonitor?channel=7&subtype=1 -an -vcodec pam -pix_fmt rgba -f image2pipe -vf fps=2,scale=640:360 pipe:1
[14/01/2022, 11:53:55 am] [CameraUI] Front 2: Videoanalysis: Currently active zones: [{"name":"region0","difference":9,"percent":75,"polygon":[{"x":0,"y":0},{"x":6,"y":353},{"x":627,"y":356},{"x":634,"y":4},{"x":0,"y":0}]}]
[14/01/2022, 11:53:55 am] [CameraUI] Front 2: Videoanalysis scheduled for restart at 3AM: 906 minutes
[14/01/2022, 11:54:01 am] [CameraUI] Front 2: FFmpeg videoanalysis process exited (expected)
[14/01/2022, 11:54:01 am] [CameraUI] Front 2: Videoanalysis process closed
[14/01/2022, 11:54:01 am] [CameraUI] Front 2: Restart videoanalysis session..
```

**Environment**
- Node.js Version: v16.13.2
- Homebridge Version: v1.4.0-beta.4
- Camera UI Version: v5.0.6
- Operating System: Windows 11
- Browser: Chrome 97
