HKSV Event Recording / Motion Detection stops with error
**Describe The Problem:**
First of all thank you for your wonderful work hjdhjd
I think I have a similar problem to #670. 
At the beginning, the event detection in HKSV in iOS works wonderfully. As soon as a person or animal is detected, I get a notification from the Home app and the recorded event is also detected in HKSV. 
After 2-5 successful events, all future events won't be recorded and got an error as you can  see in the logs.
Restarting the plug-in solves the problem for the first 2-5 events, then the error reappears. 

I would like to emphasise here that I have already restarted my HomePods (2x Homepod 2nd Gen & 1x Homepod mini) several times without success. The resources of Homebridge are also not the problem in this case, as already described in several past issues, since I operate a very powerful server. Even if I increase the resources to 4x3.3Ghz and 8GB RAM for Homebridge, the error reappears after the first 2-5 events. 

**To Reproduce:**
Restart the plugin or Homebridge and trigger 2-5 events, then the error occurs again and again. 

**Logs:**
```diff
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: FFmpeg command: /var/lib/homebridge/node_modules/homebridge-unifi-protect/node_modules/ffmpeg-for-homebridge/ffmpeg -loglevel level+verbose -hide_banner -nostats -probesize 16384 -max_delay 500000 -r 30 -rtsp_transport tcp -i rtsps://192.168.1.1:7441/dAmUrOBIEYi1IvZq?enableSrtp -map 0:v:0 -vcodec libx264 -preset veryfast -profile:v main -level:v 4.0 -noautoscale -filter:v format=yuvj420p|videotoolbox_vld|nv12|yuv420p,scale=-2:min(ih\,1080) -crf 20 -g:v 120 -bufsize 4000k -maxrate 2064k -fflags +genpts+discardcorrupt -reset_timestamps 1 -movflags frag_keyframe+empty_moov+default_base_moof -map 0:a:0? -acodec copy -f mp4 pipe:1
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [tcp @ 0x56449face500] [verbose] Starting connection attempt to 192.168.1.1 port 7441
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [tcp @ 0x56449face500] [verbose] Successfully connected to 192.168.1.1 port 7441
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [rtsp @ 0x56449facac40] [verbose] SDP:
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: v=0
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: o=- 181 0 IN IP4 192.168.1.1
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: s=E438830D8D92_0
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: u=www.ui.com
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: e=info@ui.com
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: c=IN IP4 192.168.1.1
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: t=0 0
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: a=recvonly
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: a=control:*
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: a=range:npt=now-
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: m=audio 0 RTP/AVP 96
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: a=recvonly
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: a=rtpmap:96 mpeg4-generic/48000/1
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: a=control:trackID=0
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: a=fmtp:96 streamtype=5; profile-level-id=15; mode=AAC-hbr; config=1188; SizeLength=13; IndexLength=3; IndexDeltaLength=3;
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:eXqBEOdX6TSsV8gW8qeAB2YUUQ6UBHZruu22ehYW
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: m=audio 0 RTP/AVP 96
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: a=recvonly
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: a=rtpmap:96 opus/48000/2
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: a=control:trackID=1
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: a=fmtp:96
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:rBS/H9EaiD1F8LVJ8vDAdyda6kXePsda6u5JHUBP
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: m=video 0 RTP/AVP 97
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: a=recvonly
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: a=control:trackID=2
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: a=rtpmap:97 H264/90000
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: a=fmtp:97 profile-level-id=4d4028; packetization-mode=1; sprop-parameter-sets=Z01AKI2NQDIBL/4C3AQEBQAAAwPoAADqYJ2giEag,aO44gA==
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:4IGqGm1qrTAEW9ES2VCPP662ZUYSM+Iic6/oFIW4
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [rtsp @ 0x56449facac40] [verbose] setting jitter buffer size to 0
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [rtsp @ 0x56449facac40] [verbose] setting jitter buffer size to 0
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [rtsp @ 0x56449facac40] [verbose] setting jitter buffer size to 0
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [h264 @ 0x56449faf8f00] [verbose] Reinit context to 1600x1200, pix_fmt: yuvj420p
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [rtsp @ 0x56449facac40] [warning] Stream #2: not enough frames to estimate rate; consider increasing probesize
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [info] Input #0, rtsp, from 'rtsps://192.168.1.1:7441/dAmUrOBIEYi1IvZq?enableSrtp':
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [info]   Metadata:
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [info]     title           : E438830D8D92_0
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [info]   Duration: N/A, start: 0.000000, bitrate: N/A
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [info]   Stream #0:0: Audio: aac (LC), 48000 Hz, mono, fltp
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [info]   Stream #0:1: Audio: opus, 48000 Hz, stereo, fltp
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [info]   Stream #0:2: Video: h264 (Main), 1 reference frame, yuvj420p(pc, bt709, progressive, left), 1600x1200 [SAR 1:1 DAR 4:3], 30 fps, 30 tbr, 90k tbn
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [info] Stream mapping:
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [info]   Stream #0:2 -> #0:0 (h264 (native) -> h264 (libx264))
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [info]   Stream #0:0 -> #0:1 (copy)
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [info] Press [q] to stop, [?] for help
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [h264 @ 0x56449fb91600] [verbose] Reinit context to 1600x1200, pix_fmt: yuvj420p
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [Parsed_scale_1 @ 0x56449fb4bd40] [verbose] w:-2 h:min(ih,1080) flags:'' interl:0
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [graph 0 input from stream 0:2 @ 0x56449fc4b600] [verbose] w:1600 h:1200 pixfmt:yuvj420p tb:1/30 fr:30/1 sar:1/1
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [swscaler @ 0x56449fb95800] [swscaler @ 0x56449fba27c0] [warning] deprecated pixel format used, make sure you did set range correctly
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [swscaler @ 0x56449fb95800] [swscaler @ 0x5644a00b4280] [warning] deprecated pixel format used, make sure you did set range correctly
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [swscaler @ 0x56449fb95800] [swscaler @ 0x5644a0103a00] [warning] deprecated pixel format used, make sure you did set range correctly
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [Parsed_scale_1 @ 0x56449fb4bd40] [verbose] w:1600 h:1200 fmt:yuvj420p sar:1/1 -> w:1440 h:1080 fmt:yuvj420p sar:1/1 flags:0x0
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [libx264 @ 0x56449fb14b40] [info] using SAR=1/1
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [libx264 @ 0x56449fb14b40] [info] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [libx264 @ 0x56449fb14b40] [info] profile Main, level 4.0, 4:2:0, 8-bit
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [libx264 @ 0x56449fb14b40] [info] 264 - core 163 - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=120 keyint_min=12 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=20.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=2064 vbv_bufsize=4000 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [mp4 @ 0x56449fc4df00] [verbose] Empty MOOV enabled; disabling automatic bitstream filtering
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [info] Output #0, mp4, to 'pipe:1':
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [info]   Metadata:
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [info]     title           : 
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: E438830D8D92_0
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [info]     encoder         : Lavf59.16.100
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [info]   Stream #0:0: Video: h264, 1 reference frame (avc1 / 0x31637661), yuvj420p(pc, bt709, progressive, left), 1440x1080 (0x0) [SAR 1:1 DAR 4:3], q=2-31, 30 fps, 15360 tbn
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [info]     Metadata:
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [info]       encoder         : Lavc59.18.100 libx264
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [info]     Side data:
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [info]       cpb: bitrate max/min/avg: 2064000/0/0 buffer size: 4000000 vbv_delay: N/A
[5/10/2023, 6:44:07 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [info]   Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp
[5/10/2023, 6:44:12 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: HomeKit Secure Video has recorded an approximately 0.5 second motion event.
- [5/10/2023, 6:44:12 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: HomeKit Secure Video event recording ended early: An unexpected protocol failure has occured.
[5/10/2023, 6:44:12 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [info] video:1447kB audio:39kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[5/10/2023, 6:44:12 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [verbose] Input file #0 (rtsps://192.168.1.1:7441/dAmUrOBIEYi1IvZq?enableSrtp):
[5/10/2023, 6:44:12 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [verbose]   Input stream #0:0 (audio): 244 packets read (39963 bytes); 
[5/10/2023, 6:44:12 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [verbose]   Input stream #0:1 (audio): 261 packets read (42181 bytes); 
[5/10/2023, 6:44:12 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [verbose]   Input stream #0:2 (video): 157 packets read (2988792 bytes); 154 frames decoded; 
[5/10/2023, 6:44:12 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [verbose]   Total: 662 packets (3070936 bytes) demuxed
[5/10/2023, 6:44:12 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [verbose] Output file #0 (pipe:1):
[5/10/2023, 6:44:12 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [verbose]   Output stream #0:0 (video): 153 frames encoded; 153 packets muxed (1482100 bytes); 
[5/10/2023, 6:44:12 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [verbose]   Output stream #0:1 (audio): 244 packets muxed (39963 bytes); 
[5/10/2023, 6:44:12 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [verbose]   Total: 397 packets (1522063 bytes) muxed
[5/10/2023, 6:44:12 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [AVIOContext @ 0x56449fb11380] [verbose] Statistics: 1187445 bytes written, 0 seeks, 51 writeouts
[5/10/2023, 6:44:12 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [error] Error closing file pipe:1: Broken pipe
[5/10/2023, 6:44:12 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [libx264 @ 0x56449fb14b40] [info] frame I:2     Avg QP:29.33  size:173572
[5/10/2023, 6:44:12 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [libx264 @ 0x56449fb14b40] [info] frame P:38    Avg QP:25.79  size: 23526
[5/10/2023, 6:44:12 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [libx264 @ 0x56449fb14b40] [info] frame B:113   Avg QP:30.06  size:  2126
[5/10/2023, 6:44:12 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [libx264 @ 0x56449fb14b40] [info] consecutive B-frames:  1.3%  0.0%  2.0% 96.7%
[5/10/2023, 6:44:12 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [libx264 @ 0x56449fb14b40] [info] mb I  I16..4: 30.1%  0.0% 69.9%
[5/10/2023, 6:44:12 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [libx264 @ 0x56449fb14b40] [info] mb P  I16..4:  4.8%  0.0%  1.5%  P16..4: 32.2%  3.7%  2.3%  0.0%  0.0%    skip:55.5%
[5/10/2023, 6:44:12 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [libx264 @ 0x56449fb14b40] [info] mb B  I16..4:  0.2%  0.0%  0.0%  B16..8:  3.2%  1.4%  0.3%  direct: 2.0%  skip:92.8%  L0:30.9% L1:47.7% BI:21.4%
[5/10/2023, 6:44:12 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [libx264 @ 0x56449fb14b40] [info] coded y,uvDC,uvAC intra: 46.1% 53.9% 10.8% inter: 4.6% 4.5% 0.1%
[5/10/2023, 6:44:12 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [libx264 @ 0x56449fb14b40] [info] i16 v,h,dc,p: 37% 26% 21% 16%
[5/10/2023, 6:44:12 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [libx264 @ 0x56449fb14b40] [info] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 18% 18%  7%  9%  8%  9%  6%  9%
[5/10/2023, 6:44:12 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [libx264 @ 0x56449fb14b40] [info] i8c dc,h,v,p: 53% 22% 19%  6%
[5/10/2023, 6:44:12 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [libx264 @ 0x56449fb14b40] [info] Weighted P-Frames: Y:2.6% UV:0.0%
[5/10/2023, 6:44:12 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [libx264 @ 0x56449fb14b40] [info] kb/s:2323.70
[5/10/2023, 6:44:12 AM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE] G4 Doorbell Pro [G4 Doorbell Pro]: [info] Exiting normally, received signal 15.
```

**Homebridge Configuration:**
```json
        {
            "controllers": [
                {
                    "address": "192.168.1.1",
                    "password": edited,
                    "username": edited
                }
            ],
            "name": "UniFi Protect",
            "options": [
                "Disable.Doorbell.Messages.FromDoorbell",
                "Disable.Doorbell.Messages",
                "Disable.Doorbell.Messages.70A74168D7DA",
                "Disable.Doorbell.Messages.FromDoorbell.70A74168D7DA",
                "Disable.Doorbell.Messages.E438830D8D92",
                "Disable.Doorbell.Messages.FromDoorbell.E438830D8D92",
                "Disable.Video.HKSV.TimeshiftBuffer.E438830D8D92"
            ],
            "verboseFfmpeg": true,
            "_bridge": {
                "username": edited,
                "port": edited
            },
            "platform": "UniFi Protect"
        }
```

**Screenshots:**
Home app settings:
![IMG_2403](https://github.com/hjdhjd/homebridge-unifi-protect/assets/3452678/ee39e4a3-9427-49cb-88bb-60f98a9bd9c2)
![IMG_2404](https://github.com/hjdhjd/homebridge-unifi-protect/assets/3452678/2f127be1-8742-45db-a9d1-657d2cda9a10)
![IMG_2405](https://github.com/hjdhjd/homebridge-unifi-protect/assets/3452678/7853798e-1ccc-4561-bff4-71a44108ccd8)


**Environment:**
* **Homebridge Version:** v1.6.1
* **Node Version:** v18.16.0
* **Homebridge-UniFi-Protect Plugin Version:** v6.5.1
* **UniFi Protect Version:** 2.7.34
* **UniFi Protect Controller Type:** UDM-SE
* **UniFi Protect Controller Firmware Version:** UDM SE v3.0.18
* **Apple Device and iOS / macOS / iPadOS / tvOS Version:** iOS 16.4.1
* **Operating System and OS Version:** Debian 11

