Constant camera disconnects
<!-- BUG REPORTS THAT ARE NOT FILLED OUT COMPLETELY WILL BE CLOSED AUTOMATICALLY WITHOUT WARNING AND WILL NOT RECEIVE A RESPONSE. THE FORM IS HERE FOR A REASON. :). -->
<!-- Please ensure you read the documentation before creating a support request, especially the Troubleshooting page. -->
<!-- BUG REPORTS ABOUT BETA VERSIONS OF UNIFI / UBIQUITI FIRMWARE OR EARLY-ACCESS/BETA HARDWARE WILL BE CLOSED WITHOUT A RESPONSE. ALL BETA RELEASES FROM UBIQUITI ARE UNSUPPORTED -->

**Describe The Problem:**
<!-- A clear and concise description of what the issue is. -->
I'm just going to apologize in advance for the lack on information in this bug because I'm at a loss. I have a singular G4 Doorbell Pro. I know it's not _technically_ supported yet but the camera does show up in the Home app and the main camera works, as well as the doorbell (just not the package cam). I just cannot get the thing to stay connected. Sometimes it will go for 4 days without disconnecting, other times it spends an hour disconnecting every other minute. This has been going for months. The camera itself in the UniFi portal never has any issues, it's just in Apple Home. Sometimes there are logs, most of the time there is not. The logs below are an aggregate of any issues I've seen and not necessarily correlated to a specific disconnect time, I'm just trying to provide as much info as possible. For example, the constant disconnects overnight had no logs associated. This has been occurring since June.

**To Reproduce:**

- My environment is a UDMP with a Lenovo Thinkstation running Ubuntu/homebridge directly plugged into the UDMP. The G4 Pro Doorbell is connected over WiFi but is fine in the Protect portal. I cannot find any consistency to the problem.

**Logs:**
<!-- In order to be helpful, include the relevant logs from Homebridge, if applicable. -->

```
[11/5/2022, 11:51:01 AM] [UniFi Protect] 14th Street Dream Machine Pro [UDM-PRO] Front Door [UVC G4 Doorbell Pro]: The Protect livestream API has closed unexpectedly and will retry again shortly. This is usually due to a controller or camera restart and can be safely ignored.
[11/5/2022, 11:51:01 AM] [UniFi Protect] 14th Street Dream Machine Pro [UDM-PRO] Front Door [UVC G4 Doorbell Pro]: The Protect livestream API has closed unexpectedly and will retry again shortly. This is usually due to a controller or camera restart and can be safely ignored.
[11/5/2022, 11:51:52 AM] [UniFi Protect] API access error: 503 - Service Unavailable
[11/5/2022, 11:51:52 AM] [UniFi Protect] 14th Street Dream Machine Pro [UDM-PRO]: API endpoint access error
[11/5/2022, 11:51:52 AM] [UniFi Protect] 14th Street Dream Machine Pro [UDM-PRO]: Unable to retrieve the livestream websocket API endpoint from the UniFi Protect controller.
[11/5/2022, 11:51:52 AM] [UniFi Protect] 14th Street Dream Machine Pro [UDM-PRO] Front Door [UVC G4 Doorbell Pro]: Unable to start the timeshift buffer for HomeKit Secure Video.
[11/5/2022, 11:51:52 AM] [UniFi Protect] API access error: 503 - Service Unavailable
[11/5/2022, 11:51:52 AM] [UniFi Protect] 14th Street Dream Machine Pro [UDM-PRO]: API endpoint access error
[11/5/2022, 11:51:52 AM] [UniFi Protect] 14th Street Dream Machine Pro [UDM-PRO]: Unable to retrieve the livestream websocket API endpoint from the UniFi Protect controller.
[11/5/2022, 11:51:52 AM] [UniFi Protect] 14th Street Dream Machine Pro [UDM-PRO] Front Door [UVC G4 Doorbell Pro]: Unable to start the timeshift buffer for HomeKit Secure Video.
[11/5/2022, 11:51:52 AM] [UniFi Protect] API access error: 503 - Service Unavailable
[11/5/2022, 11:51:52 AM] [UniFi Protect] 14th Street Dream Machine Pro [UDM-PRO]: API endpoint access error
[11/5/2022, 11:51:52 AM] [UniFi Protect] 14th Street Dream Machine Pro [UDM-PRO]: Unable to retrieve the livestream websocket API endpoint from the UniFi Protect controller.
[11/5/2022, 11:51:52 AM] [UniFi Protect] 14th Street Dream Machine Pro [UDM-PRO] Front Door [UVC G4 Doorbell Pro]: Unable to start the timeshift buffer for HomeKit Secure Video.
[11/5/2022, 11:53:36 AM] [UniFi Protect] API access error: 503 - Service Unavailable
[11/5/2022, 11:53:36 AM] [UniFi Protect] 14th Street Dream Machine Pro [UDM-PRO]: API endpoint access error
[11/5/2022, 11:53:36 AM] [UniFi Protect] 14th Street Dream Machine Pro [UDM-PRO]: Unable to retrieve the livestream websocket API endpoint from the UniFi Protect controller.
[11/5/2022, 11:53:36 AM] [UniFi Protect] 14th Street Dream Machine Pro [UDM-PRO] Front Door [UVC G4 Doorbell Pro]: Unable to start the timeshift buffer for HomeKit Secure Video.
[11/5/2022, 11:53:36 AM] [UniFi Protect] API access error: 503 - Service Unavailable
[11/5/2022, 11:53:36 AM] [UniFi Protect] 14th Street Dream Machine Pro [UDM-PRO]: API endpoint access error
[11/5/2022, 11:53:36 AM] [UniFi Protect] 14th Street Dream Machine Pro [UDM-PRO]: Unable to retrieve the livestream websocket API endpoint from the UniFi Protect controller.
[11/5/2022, 11:53:36 AM] [UniFi Protect] 14th Street Dream Machine Pro [UDM-PRO] Front Door [UVC G4 Doorbell Pro]: Unable to start the timeshift buffer for HomeKit Secure Video.
[11/5/2022, 11:53:37 AM] [UniFi Protect] API access error: 503 - Service Unavailable
[11/5/2022, 11:53:37 AM] [UniFi Protect] 14th Street Dream Machine Pro [UDM-PRO]: API endpoint access error
[11/5/2022, 11:53:37 AM] [UniFi Protect] 14th Street Dream Machine Pro [UDM-PRO]: Unable to retrieve the livestream websocket API endpoint from the UniFi Protect controller.
[11/5/2022, 11:53:37 AM] [UniFi Protect] 14th Street Dream Machine Pro [UDM-PRO] Front Door [UVC G4 Doorbell Pro]: Unable to start the timeshift buffer for HomeKit Secure Video.
[11/5/2022, 11:54:41 AM] [UniFi Protect] 14th Street Dream Machine Pro [UDM-PRO] Front Door [UVC G4 Doorbell Pro]: HomeKit Secure Video event recording ended abnormally: The request timed out
[11/6/2022, 8:55:01 AM] [UniFi Protect] 14th Street Dream Machine Pro [UDM-PRO] Front Door [UVC G4 Doorbell Pro]: FFmpeg process ended unexpectedly with an exit code of 0.
[11/6/2022, 8:55:01 AM] [UniFi Protect] 14th Street Dream Machine Pro [UDM-PRO] Front Door [UVC G4 Doorbell Pro]: FFmpeg command line that errored out was: /var/lib/homebridge/node_modules/homebridge-unifi-protect/node_modules/ffmpeg-for-homebridge/ffmpeg -hide_banner -fflags +discardcorrupt -r 30 -f mp4 -i pipe:0 -map 0:v:0 -max_muxing_queue_size 9999 -vcodec libx264 -pix_fmt yuvj420p -profile:v main -level:v 4.0 -preset veryfast -b:v 2000k -bufsize 4000k -maxrate 2000k -force_key_frames expr:gte(t, n_forced * 4) -fflags +genpts+discardcorrupt -reset_timestamps 1 -movflags frag_keyframe+empty_moov+default_base_moof -map 0:a:0 -acodec copy -f mp4 pipe:1
[11/6/2022, 8:55:01 AM] [UniFi Protect] Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'pipe:0':

[11/6/2022, 8:55:01 AM] [UniFi Protect]   Metadata:

[11/6/2022, 8:55:01 AM] [UniFi Protect]     major_brand     : dash

[11/6/2022, 8:55:01 AM] [UniFi Protect]     minor_version   : 0

[11/6/2022, 8:55:01 AM] [UniFi Protect]     compatible_brands: iso6avc1mp41

[11/6/2022, 8:55:01 AM] [UniFi Protect]     creation_time   : 2022-11-06T01:36:32.000000Z

[11/6/2022, 8:55:01 AM] [UniFi Protect]   Duration: 86:14:34.15, start: 310473.034122, bitrate: 

[11/6/2022, 8:55:01 AM] [UniFi Protect] N/A

[11/6/2022, 8:55:01 AM] [UniFi Protect]   Stream #0:0[0x1](und): Video: h264 (Main) (avc1 / 0x31637661), yuvj420p(pc, bt709, progressive), 1600x1200 [SAR 1:1 DAR 4:3], 30 fps, 30 tbr, 90k tbn (default)

[11/6/2022, 8:55:01 AM] [UniFi Protect]     Metadata:

[11/6/2022, 8:55:01 AM] [UniFi Protect]       creation_time   : 2022-11-06T01:36:32.000000Z

[11/6/2022, 8:55:01 AM] [UniFi Protect]       handler_name    : VideoHandler

[11/6/2022, 8:55:01 AM] [UniFi Protect]       vendor_id       : [0][0][0][0]

[11/6/2022, 8:55:01 AM] [UniFi Protect]       encoder         : EvoStream Media Server

[11/6/2022, 8:55:01 AM] [UniFi Protect]   Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp (default)

[11/6/2022, 8:55:01 AM] [UniFi Protect]     Metadata:

[11/6/2022, 8:55:01 AM] [UniFi Protect]       creation_time   : 2022-11-06T01:36:32.000000Z

[11/6/2022, 8:55:01 AM] [UniFi Protect]       handler_name    : SoundHandler

[11/6/2022, 8:55:01 AM] [UniFi Protect]       vendor_id       : [0][0][0][0]

[11/6/2022, 8:55:01 AM] [UniFi Protect] Stream mapping:

[11/6/2022, 8:55:01 AM] [UniFi Protect]   Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))

[11/6/2022, 8:55:01 AM] [UniFi Protect]   Stream #0:1 -> #0:1 (copy)

[11/6/2022, 8:55:01 AM] [UniFi Protect] [libx264 @ 0x55eccadb8c80] using SAR=1/1

[11/6/2022, 8:55:01 AM] [UniFi Protect] [libx264 @ 0x55eccadb8c80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX

[11/6/2022, 8:55:01 AM] [UniFi Protect] [libx264 @ 0x55eccadb8c80] profile Main, level 4.0, 4:2:0, 8-bit

[11/6/2022, 8:55:01 AM] [UniFi Protect] [libx264 @ 0x55eccadb8c80] 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=24 lookahead_threads=8 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=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=cbr mbtree=1 bitrate=2000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=2000 vbv_bufsize=4000 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00

[11/6/2022, 8:55:01 AM] [UniFi Protect] Output #0, mp4, to 'pipe:1':

[11/6/2022, 8:55:01 AM] [UniFi Protect]   Metadata:

[11/6/2022, 8:55:01 AM] [UniFi Protect]     major_brand     : dash

[11/6/2022, 8:55:01 AM] [UniFi Protect]     minor_version   : 0

[11/6/2022, 8:55:01 AM] [UniFi Protect]     compatible_brands: iso6avc1mp41

[11/6/2022, 8:55:01 AM] [UniFi Protect]     encoder         : Lavf59.16.100

[11/6/2022, 8:55:01 AM] [UniFi Protect]   Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuvj420p(pc, bt709, progressive), 1600x1200 [SAR 1:1 DAR 4:3], q=2-31, 2000 kb/s, 30 fps, 15360 tbn (default)

[11/6/2022, 8:55:01 AM] [UniFi Protect]     Metadata:

[11/6/2022, 8:55:01 AM] [UniFi Protect]       creation_time   : 2022-11-06T01:36:32.000000Z

[11/6/2022, 8:55:01 AM] [UniFi Protect]       handler_name    : VideoHandler

[11/6/2022, 8:55:01 AM] [UniFi Protect]       vendor_id       : [0][0][0][0]

[11/6/2022, 8:55:01 AM] [UniFi Protect]       encoder         : Lavc59.18.100 libx264

[11/6/2022, 8:55:01 AM] [UniFi Protect]     Side data:

[11/6/2022, 8:55:01 AM] [UniFi Protect]       cpb: bitrate max/min/avg: 2000000/0/2000000 buffer size: 4000000 vbv_delay: N/A

[11/6/2022, 8:55:01 AM] [UniFi Protect]   Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp (default)

[11/6/2022, 8:55:01 AM] [UniFi Protect]     Metadata:

[11/6/2022, 8:55:01 AM] [UniFi Protect]       creation_time   : 2022-11-06T01:36:32.000000Z

[11/6/2022, 8:55:01 AM] [UniFi Protect]       handler_name    : SoundHandler

[11/6/2022, 8:55:01 AM] [UniFi Protect]       vendor_id       : [0][0][0][0]

[11/6/2022, 8:55:01 AM] [UniFi Protect] [NULL @ 0x55eccacbb500] Invalid NAL unit size (1953653094 > 856).

[11/6/2022, 8:55:01 AM] [UniFi Protect] [NULL @ 0x55eccacbb500] missing picture in access unit with size 880

[11/6/2022, 8:55:01 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55eccaca9b40] DTS 27944304071 < 27944319071 out of order

[11/6/2022, 8:55:01 AM] [UniFi Protect] [h264 @ 0x55eccad43e40] Invalid NAL unit size (1953653094 > 856).

[11/6/2022, 8:55:01 AM] [UniFi Protect] [h264 @ 0x55eccad43e40] Error splitting the input into NAL units.

[11/6/2022, 8:55:01 AM] [UniFi Protect] [NULL @ 0x55eccacbb500] Invalid NAL unit size (-203268761 > 898).

[11/6/2022, 8:55:01 AM] [UniFi Protect] [NULL @ 0x55eccacbb500] missing picture in access unit with size 902

[11/6/2022, 8:55:01 AM] [UniFi Protect] [h264 @ 0x55eccb453a00] Invalid NAL unit size (-203268761 > 898).

[11/6/2022, 8:55:01 AM] [UniFi Protect] [h264 @ 0x55eccb453a00] Error splitting the input into NAL units.

[11/6/2022, 8:55:01 AM] [UniFi Protect] [NULL @ 0x55eccacbb500] Invalid NAL unit size (-1585765050 > 1042).

[11/6/2022, 8:55:01 AM] [UniFi Protect] [NULL @ 0x55eccacbb500] missing picture in access unit with size 1046

[11/6/2022, 8:55:01 AM] [UniFi Protect] [h264 @ 0x55eccb522a80] Invalid NAL unit size (-1585765050 > 1042).

[11/6/2022, 8:55:01 AM] [UniFi Protect] [h264 @ 0x55eccb522a80] Error splitting the input into NAL units.

[11/6/2022, 8:55:01 AM] [UniFi Protect] [NULL @ 0x55eccacbb500] Invalid NAL unit size (1322519370 > 346488).

[11/6/2022, 8:55:01 AM] [UniFi Protect] [NULL @ 0x55eccacbb500] missing picture in access unit with size 346492

[11/6/2022, 8:55:01 AM] [UniFi Protect] [h264 @ 0x55eccb5f1dc0] Invalid NAL unit size (1322519370 > 346488).

[11/6/2022, 8:55:01 AM] [UniFi Protect] [h264 @ 0x55eccb5f1dc0] Error splitting the input into NAL units.

[11/6/2022, 8:55:01 AM] [UniFi Protect] [NULL @ 0x55eccacbb500] Invalid NAL unit size (-172795510 > 578).

[11/6/2022, 8:55:01 AM] [UniFi Protect] [NULL @ 0x55eccacbb500] missing picture in access unit with size 582

[11/6/2022, 8:55:01 AM] [UniFi Protect] [h264 @ 0x55eccb6c1100] Invalid NAL unit size (-172795510 > 578).

[11/6/2022, 8:55:01 AM] [UniFi Protect] [h264 @ 0x55eccb6c1100] 

[11/6/2022, 8:55:01 AM] [UniFi Protect] Error splitting the input into NAL units.

[11/6/2022, 8:55:01 AM] [UniFi Protect] [NULL @ 0x55eccacbb500] Invalid NAL unit size (-1468130659 > 329).

[11/6/2022, 8:55:01 AM] [UniFi Protect] [NULL @ 0x55eccacbb500] missing picture in access unit with size 333

[11/6/2022, 8:55:01 AM] [UniFi Protect] [h264 @ 0x55eccb790440] Invalid NAL unit size (-1468130659 > 329).

[11/6/2022, 8:55:01 AM] [UniFi Protect] [h264 @ 0x55eccb790440] Error splitting the input into NAL units.

[11/6/2022, 8:55:01 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55eccaca9b40] stream 0, offset 0x2c339f: partial file

[11/6/2022, 8:55:01 AM] [UniFi Protect] pipe:0: Invalid data found when processing input

[11/6/2022, 8:55:01 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55eccaca9b40] stream 0, offset 0x2c339f: partial file

[11/6/2022, 8:55:01 AM] [UniFi Protect] pipe:0: Invalid data found when processing input

[11/6/2022, 8:55:01 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55eccaca9b40] stream 0, offset 0x2c339f: partial file

[11/6/2022, 8:55:01 AM] [UniFi Protect] pipe:0: Invalid data found when processing input

[11/6/2022, 8:55:01 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55eccaca9b40] 

[11/6/2022, 8:55:01 AM] [UniFi Protect] stream 0, offset 0x2c339f: partial file

[11/6/2022, 8:55:01 AM] [UniFi Protect] pipe:0: Invalid data found when processing input

[11/6/2022, 8:55:01 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55eccaca9b40] stream 0, offset 0x2c339f: partial file

[11/6/2022, 8:55:01 AM] [UniFi Protect] pipe:0: Invalid data found when processing input

[11/6/2022, 8:55:01 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55eccaca9b40] stream 0, offset 0x2c339f: partial file

[11/6/2022, 8:55:01 AM] [UniFi Protect] pipe:0: Invalid data found when processing input

[11/6/2022, 8:55:01 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55eccaca9b40] stream 0, offset 0x2c339f: partial file

[11/6/2022, 8:55:01 AM] [UniFi Protect] pipe:0: Invalid data found when processing input

[11/6/2022, 8:55:01 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55eccaca9b40] stream 0, offset 0x2c339f: partial file

[11/6/2022, 8:55:01 AM] [UniFi Protect] pipe:0: Invalid data found when processing input

[11/6/2022, 8:55:01 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55eccaca9b40] stream 0, offset 0x2c339f: partial file

[11/6/2022, 8:55:01 AM] [UniFi Protect] pipe:0: Invalid data found when processing input

[11/6/2022, 8:55:01 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55eccaca9b40] stream 0, offset 0x2c339f: partial file

[11/6/2022, 8:55:01 AM] [UniFi Protect] pipe:0: Invalid data found when processing input

[11/6/2022, 8:55:01 AM] [UniFi Protect] Error while decoding stream #0:0: Invalid data found when processing input

[11/6/2022, 8:55:01 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55eccaca9b40] stream 0, offset 0x2c339f: partial file

[11/6/2022, 8:55:01 AM] [UniFi Protect] pipe:0: Invalid data found when processing input

[11/6/2022, 8:55:01 AM] [UniFi Protect] Error while decoding stream #0:0: Invalid data found when processing input

[11/6/2022, 8:55:01 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55eccaca9b40] stream 0, offset 0x2c339f: partial file

[11/6/2022, 8:55:01 AM] [UniFi Protect] pipe:0: Invalid data found when processing input

[11/6/2022, 8:55:01 AM] [UniFi Protect] Error while decoding stream #0:0: Invalid data found when processing input

[11/6/2022, 8:55:01 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55eccaca9b40] stream 0, offset 0x2c339f: partial file

[11/6/2022, 8:55:01 AM] [UniFi Protect] pipe:0: Invalid data found when processing input

[11/6/2022, 8:55:01 AM] [UniFi Protect] Error while decoding stream #0:0: Invalid data found when processing input

[11/6/2022, 8:55:01 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55eccaca9b40] stream 0, offset 0x2c339f: partial file

[11/6/2022, 8:55:01 AM] [UniFi Protect] pipe:0: Invalid data found when processing input

[11/6/2022, 8:55:01 AM] [UniFi Protect] Error while decoding stream #0:0: Invalid data found when processing input

[11/6/2022, 8:55:01 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55eccaca9b40] stream 0, offset 0x2c339f: partial file

[11/6/2022, 8:55:01 AM] [UniFi Protect] pipe:0: Invalid data found when processing input

[11/6/2022, 8:55:01 AM] [UniFi Protect] Error while decoding stream #0:0: Invalid data found when processing input

[11/6/2022, 8:55:01 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55eccaca9b40] stream 0, offset 0x2c339f: partial file

[11/6/2022, 8:55:01 AM] [UniFi Protect] pipe:0: Invalid data found when processing input

[11/6/2022, 8:55:01 AM] [UniFi Protect] video:3448kB audio:146kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.290846%

[11/6/2022, 8:55:01 AM] [UniFi Protect] [libx264 @ 0x55eccadb8c80] frame I:5     Avg QP:24.59  size:249988

[11/6/2022, 8:55:01 AM] [UniFi Protect] [libx264 @ 0x55eccadb8c80] frame P:122   Avg QP:19.18  size: 16846

[11/6/2022, 8:55:01 AM] [UniFi Protect] [libx264 @ 0x55eccadb8c80] frame B:356   Avg QP:21.88  size:   631

[11/6/2022, 8:55:01 AM] [UniFi Protect] [libx264 @ 0x55eccadb8c80] consecutive B-frames:  1.0%  1.2%  2.5% 95.2%

[11/6/2022, 8:55:01 AM] [UniFi Protect] [libx264 @ 0x55eccadb8c80] mb I  I16..4: 20.6%  0.0% 79.4%

[11/6/2022, 8:55:01 AM] [UniFi Protect] [libx264 @ 0x55eccadb8c80] mb P  I16..4:  0.2%  0.0%  0.1%  P16..4: 27.6%  1.0%  0.8%  0.0%  0.0%    skip:70.3%

[11/6/2022, 8:55:01 AM] [UniFi Protect] [libx264 @ 0x55eccadb8c80] 

[11/6/2022, 8:55:01 AM] [UniFi Protect] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.9%  0.2%  0.0%  direct: 2.1%  skip:96.8%  L0:27.1% L1:64.4% BI: 8.5%

[11/6/2022, 8:55:01 AM] [UniFi Protect] [libx264 @ 0x55eccadb8c80] coded y,uvDC,uvAC intra: 84.4% 78.5% 32.8% inter: 2.9% 5.1% 0.4%

[11/6/2022, 8:55:01 AM] [UniFi Protect] [libx264 @ 0x55eccadb8c80] i16 v,h,dc,p: 36% 20% 32% 12%

[11/6/2022, 8:55:01 AM] [UniFi Protect] [libx264 @ 0x55eccadb8c80] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 16% 16%  5%  5%  5%  6%  8%  6%

[11/6/2022, 8:55:01 AM] [UniFi Protect] [libx264 @ 0x55eccadb8c80] i8c dc,h,v,p: 39% 24% 30%  6%

[11/6/2022, 8:55:01 AM] [UniFi Protect] [libx264 @ 0x55eccadb8c80] Weighted P-Frames: Y:0.0% UV:0.0%

[11/6/2022, 8:55:01 AM] [UniFi Protect] [libx264 @ 0x55eccadb8c80] kb/s:1754.02
[11/6/2022, 9:37:33 AM] [UniFi Protect] 14th Street Dream Machine Pro [UDM-PRO]: Controller API connection terminated because it was taking too long. This error can usually be safely ignored.
[11/6/2022, 9:37:33 AM] [UniFi Protect] 14th Street Dream Machine Pro [UDM-PRO]: Unable to retrieve NVR configuration information from UniFi Protect. Will retry again later.
[11/6/2022, 9:37:46 AM] [UniFi Protect] 192.168.1.1: Controller API connection terminated because it was taking too long. This error can usually be safely ignored.
[11/6/2022, 9:38:00 AM] [UniFi Protect] 192.168.1.1: Controller API connection terminated because it was taking too long. This error can usually be safely ignored.
[11/6/2022, 9:38:13 AM] [UniFi Protect] 192.168.1.1: Controller API connection terminated because it was taking too long. This error can usually be safely ignored.
[11/6/2022, 9:38:27 AM] [UniFi Protect] 192.168.1.1: Controller API connection terminated because it was taking too long. This error can usually be safely ignored.
[11/6/2022, 9:38:40 AM] [UniFi Protect] 192.168.1.1: Controller API connection terminated because it was taking too long. This error can usually be safely ignored.
[11/6/2022, 9:38:54 AM] [UniFi Protect] 192.168.1.1: Controller API connection terminated because it was taking too long. This error can usually be safely ignored.
[11/6/2022, 9:39:07 AM] [UniFi Protect] 192.168.1.1: Controller API connection terminated because it was taking too long. This error can usually be safely ignored.
[11/6/2022, 9:39:21 AM] [UniFi Protect] 192.168.1.1: Controller API connection terminated because it was taking too long. This error can usually be safely ignored.
[11/6/2022, 9:39:34 AM] [UniFi Protect] 192.168.1.1: Controller API connection terminated because it was taking too long. This error can usually be safely ignored.
[11/7/2022, 10:36:22 AM] [UniFi Protect] 14th Street Dream Machine Pro [UDM-PRO] Front Door [UVC G4 Doorbell Pro]: FFmpeg process ended unexpectedly with an exit code of 0.
[11/7/2022, 10:36:22 AM] [UniFi Protect] 14th Street Dream Machine Pro [UDM-PRO] Front Door [UVC G4 Doorbell Pro]: FFmpeg command line that errored out was: /var/lib/homebridge/node_modules/homebridge-unifi-protect/node_modules/ffmpeg-for-homebridge/ffmpeg -hide_banner -fflags +discardcorrupt -r 30 -f mp4 -i pipe:0 -map 0:v:0 -max_muxing_queue_size 9999 -vcodec libx264 -pix_fmt yuvj420p -profile:v main -level:v 4.0 -preset veryfast -b:v 2000k -bufsize 4000k -maxrate 2000k -force_key_frames expr:gte(t, n_forced * 4) -fflags +genpts+discardcorrupt -reset_timestamps 1 -movflags frag_keyframe+empty_moov+default_base_moof -map 0:a:0 -acodec copy -f mp4 pipe:1
[11/7/2022, 10:36:22 AM] [UniFi Protect] Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'pipe:0':

[11/7/2022, 10:36:22 AM] [UniFi Protect]   Metadata:

[11/7/2022, 10:36:22 AM] [UniFi Protect]     major_brand     : dash

[11/7/2022, 10:36:22 AM] [UniFi Protect]     minor_version   : 0

[11/7/2022, 10:36:22 AM] [UniFi Protect]     compatible_brands: iso6avc1mp41

[11/7/2022, 10:36:22 AM] [UniFi Protect]     creation_time   : 2022-11-07T14:12:41.000000Z

[11/7/2022, 10:36:22 AM] [UniFi Protect]   Duration: 

[11/7/2022, 10:36:22 AM] [UniFi Protect] 111:56:09.21, start: 402968.100789, bitrate: N/A

[11/7/2022, 10:36:22 AM] [UniFi Protect]   Stream #0:0[0x1](und): Video: h264 (Main) (avc1 / 0x31637661), yuvj420p(pc, bt709, progressive), 1600x1200 [SAR 1:1 DAR 4:3], 30 fps, 30 tbr, 90k tbn (default)

[11/7/2022, 10:36:22 AM] [UniFi Protect]     Metadata:

[11/7/2022, 10:36:22 AM] [UniFi Protect]       creation_time   : 2022-11-07T14:12:41.000000Z

[11/7/2022, 10:36:22 AM] [UniFi Protect]       handler_name    : VideoHandler

[11/7/2022, 10:36:22 AM] [UniFi Protect]       vendor_id       : [0][0][0][0]

[11/7/2022, 10:36:22 AM] [UniFi Protect]       encoder         : EvoStream Media Server

[11/7/2022, 10:36:22 AM] [UniFi Protect]   Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp (default)

[11/7/2022, 10:36:22 AM] [UniFi Protect]     Metadata:

[11/7/2022, 10:36:22 AM] [UniFi Protect]       creation_time   : 2022-11-07T14:12:41.000000Z

[11/7/2022, 10:36:22 AM] [UniFi Protect]       handler_name    : SoundHandler

[11/7/2022, 10:36:22 AM] [UniFi Protect]       vendor_id       : [0][0][0][0]

[11/7/2022, 10:36:22 AM] [UniFi Protect] Stream mapping:

[11/7/2022, 10:36:22 AM] [UniFi Protect]   Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))

[11/7/2022, 10:36:22 AM] [UniFi Protect]   Stream #0:1 -> #0:1 (copy)

[11/7/2022, 10:36:22 AM] [UniFi Protect] [libx264 @ 0x5574f3240c80] using SAR=1/1

[11/7/2022, 10:36:22 AM] [UniFi Protect] [libx264 @ 0x5574f3240c80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX

[11/7/2022, 10:36:22 AM] [UniFi Protect] [libx264 @ 0x5574f3240c80] profile Main, level 4.0, 4:2:0, 8-bit

[11/7/2022, 10:36:22 AM] [UniFi Protect] [libx264 @ 0x5574f3240c80] 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=24 lookahead_threads=8 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=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=cbr mbtree=1 bitrate=2000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=2000 vbv_bufsize=4000 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00

[11/7/2022, 10:36:22 AM] [UniFi Protect] Output #0, mp4, to 'pipe:1':

[11/7/2022, 10:36:22 AM] [UniFi Protect]   Metadata:

[11/7/2022, 10:36:22 AM] [UniFi Protect]     major_brand     : dash

[11/7/2022, 10:36:22 AM] [UniFi Protect]     minor_version   : 0

[11/7/2022, 10:36:22 AM] [UniFi Protect]     compatible_brands: iso6avc1mp41

[11/7/2022, 10:36:22 AM] [UniFi Protect]     encoder         : Lavf59.16.100

[11/7/2022, 10:36:22 AM] [UniFi Protect]   Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuvj420p(pc, bt709, progressive), 1600x1200 [SAR 1:1 DAR 4:3], q=2-31, 2000 kb/s, 30 fps, 15360 tbn (default)

[11/7/2022, 10:36:22 AM] [UniFi Protect]     Metadata:

[11/7/2022, 10:36:22 AM] [UniFi Protect]       creation_time   : 2022-11-07T14:12:41.000000Z

[11/7/2022, 10:36:22 AM] [UniFi Protect]       handler_name    : VideoHandler

[11/7/2022, 10:36:22 AM] [UniFi Protect]       vendor_id       : [0][0][0][0]

[11/7/2022, 10:36:22 AM] [UniFi Protect]       encoder         : Lavc59.18.100 libx264

[11/7/2022, 10:36:22 AM] [UniFi Protect]     Side data:

[11/7/2022, 10:36:22 AM] [UniFi Protect]       cpb: bitrate max/min/avg: 2000000/0/2000000 buffer size: 4000000 vbv_delay: N/A

[11/7/2022, 10:36:22 AM] [UniFi Protect]   Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp (default)

[11/7/2022, 10:36:22 AM] [UniFi Protect]     Metadata:

[11/7/2022, 10:36:22 AM] [UniFi Protect]       creation_time   : 2022-11-07T14:12:41.000000Z

[11/7/2022, 10:36:22 AM] [UniFi Protect]       handler_name    : SoundHandler

[11/7/2022, 10:36:22 AM] [UniFi Protect]       vendor_id       : [0][0][0][0]

[11/7/2022, 10:36:22 AM] [UniFi Protect] [NULL @ 0x5574f321d500] Invalid NAL unit size (1953653094 > 6400).

[11/7/2022, 10:36:22 AM] [UniFi Protect] [NULL @ 0x5574f321d500] missing picture in access unit with size 6424

[11/7/2022, 10:36:22 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x5574f320bb40] DTS 36267489072 < 36267507071 out of order

[11/7/2022, 10:36:22 AM] [UniFi Protect] [h264 @ 0x5574f3f591c0] Invalid NAL unit size (1953653094 > 6400).

[11/7/2022, 10:36:22 AM] [UniFi Protect] [h264 @ 0x5574f3f591c0] Error splitting the input into NAL units.

[11/7/2022, 10:36:22 AM] [UniFi Protect] [NULL @ 0x5574f321d500] Invalid NAL unit size (985710537 > 6426).

[11/7/2022, 10:36:22 AM] [UniFi Protect] [NULL @ 0x5574f321d500] missing picture in access unit with size 6430

[11/7/2022, 10:36:22 AM] [UniFi Protect] [h264 @ 0x5574f32bbfc0] Invalid NAL unit size (985710537 > 6426).

[11/7/2022, 10:36:22 AM] [UniFi Protect] [h264 @ 0x5574f32bbfc0] Error splitting the input into NAL units.

[11/7/2022, 10:36:22 AM] [UniFi Protect] [NULL @ 0x5574f321d500] Invalid NAL unit size (-770950745 > 6735).

[11/7/2022, 10:36:22 AM] [UniFi Protect] [NULL @ 0x5574f321d500] missing picture in access unit with size 6739

[11/7/2022, 10:36:22 AM] [UniFi Protect] [h264 @ 0x5574f3248680] Invalid NAL unit size (-770950745 > 6735).

[11/7/2022, 10:36:22 AM] [UniFi Protect] [h264 @ 0x5574f3248680] Error splitting the input into NAL units.

[11/7/2022, 10:36:22 AM] [UniFi Protect] [NULL @ 0x5574f321d500] Invalid NAL unit size (1505770494 > 6836).

[11/7/2022, 10:36:22 AM] [UniFi Protect] [NULL @ 0x5574f321d500] missing picture in access unit with size 6840

[11/7/2022, 10:36:22 AM] [UniFi Protect] [h264 @ 0x5574f32ca000] Invalid NAL unit size (1505770494 > 6836).

[11/7/2022, 10:36:22 AM] [UniFi Protect] [h264 @ 0x5574f32ca000] Error splitting the input into NAL units.

[11/7/2022, 10:36:22 AM] [UniFi Protect] [NULL @ 0x5574f321d500] Invalid NAL unit size (-1514058350 > 6274).

[11/7/2022, 10:36:22 AM] [UniFi Protect] [NULL @ 0x5574f321d500] missing picture in access unit with size 6278

[11/7/2022, 10:36:22 AM] [UniFi Protect] [h264 @ 0x5574f32e7840] Invalid NAL unit size (-1514058350 > 6274).

[11/7/2022, 10:36:22 AM] [UniFi Protect] [h264 @ 0x5574f32e7840] Error splitting the input into NAL units.

[11/7/2022, 10:36:22 AM] [UniFi Protect] [NULL @ 0x5574f321d500] Invalid NAL unit size (303944781 > 7012).

[11/7/2022, 10:36:22 AM] [UniFi Protect] [NULL @ 0x5574f321d500] missing picture in access unit with size 7016

[11/7/2022, 10:36:22 AM] [UniFi Protect] [h264 @ 0x5574f32cc380] Invalid NAL unit size (303944781 > 7012).

[11/7/2022, 10:36:22 AM] [UniFi Protect] [h264 @ 0x5574f32cc380] Error splitting the input into NAL units.

[11/7/2022, 10:36:22 AM] [UniFi Protect] [NULL @ 0x5574f321d500] Invalid NAL unit size (546456184 > 6002).

[11/7/2022, 10:36:22 AM] [UniFi Protect] [NULL @ 0x5574f321d500] missing picture in access unit with size 6006

[11/7/2022, 10:36:22 AM] [UniFi Protect] [h264 @ 0x5574f32c0a00] Invalid NAL unit size (546456184 > 6002).

[11/7/2022, 10:36:22 AM] [UniFi Protect] [h264 @ 0x5574f32c0a00] Error splitting the input into NAL units.

[11/7/2022, 10:36:22 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x5574f320bb40] stream 0, offset 0x9e7e0: partial file

[11/7/2022, 10:36:22 AM] [UniFi Protect] pipe:0: Invalid data found when processing input

[11/7/2022, 10:36:22 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x5574f320bb40] stream 0, offset 0x9e7e0: partial file

[11/7/2022, 10:36:22 AM] [UniFi Protect] pipe:0: Invalid data found when processing input

[11/7/2022, 10:36:22 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x5574f320bb40] stream 0, offset 0x9e7e0: partial file

[11/7/2022, 10:36:22 AM] [UniFi Protect] pipe:0: Invalid data found when processing input

[11/7/2022, 10:36:22 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x5574f320bb40] stream 0, offset 0x9e7e0: partial file

[11/7/2022, 10:36:22 AM] [UniFi Protect] pipe:0: Invalid data found when processing input

[11/7/2022, 10:36:22 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x5574f320bb40] stream 0, offset 0x9e7e0: partial file

[11/7/2022, 10:36:22 AM] [UniFi Protect] pipe:0: Invalid data found when processing input

[11/7/2022, 10:36:22 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x5574f320bb40] stream 0, offset 0x9e7e0: partial file

[11/7/2022, 10:36:22 AM] [UniFi Protect] pipe:0: Invalid data found when processing input

[11/7/2022, 10:36:22 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x5574f320bb40] stream 0, offset 0x9e7e0: partial file

[11/7/2022, 10:36:22 AM] [UniFi Protect] pipe:0: Invalid data found when processing input

[11/7/2022, 10:36:22 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x5574f320bb40] stream 0, offset 0x9e7e0: partial file

[11/7/2022, 10:36:22 AM] [UniFi Protect] pipe:0: Invalid data found when processing input

[11/7/2022, 10:36:22 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x5574f320bb40] stream 0, offset 0x9e7e0: partial file

[11/7/2022, 10:36:22 AM] [UniFi Protect] pipe:0: Invalid data found when processing input

[11/7/2022, 10:36:22 AM] [UniFi Protect] Error while decoding stream #0:0: Invalid data found when processing input

[11/7/2022, 10:36:22 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x5574f320bb40] stream 0, offset 0x9e7e0: partial file

[11/7/2022, 10:36:22 AM] [UniFi Protect] pipe:0: Invalid data found when processing input

[11/7/2022, 10:36:22 AM] [UniFi Protect] Error while decoding stream #0:0: Invalid data found when processing input

[11/7/2022, 10:36:22 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x5574f320bb40] stream 0, offset 0x9e7e0: partial file

[11/7/2022, 10:36:22 AM] [UniFi Protect] pipe:0: Invalid data found when processing input

[11/7/2022, 10:36:22 AM] [UniFi Protect] Error while decoding stream #0:0: Invalid data found when processing input

[11/7/2022, 10:36:22 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x5574f320bb40] stream 0, offset 0x9e7e0: partial file

[11/7/2022, 10:36:22 AM] [UniFi Protect] pipe:0: Invalid data found when processing input

[11/7/2022, 10:36:22 AM] [UniFi Protect] Error while decoding stream #0:0: Invalid data found when processing input

[11/7/2022, 10:36:22 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x5574f320bb40] 

[11/7/2022, 10:36:22 AM] [UniFi Protect] stream 0, offset 0x9e7e0: partial file

[11/7/2022, 10:36:22 AM] [UniFi Protect] pipe:0: Invalid data found when processing input

[11/7/2022, 10:36:22 AM] [UniFi Protect] Error while decoding stream #0:0: Invalid data found when processing input

[11/7/2022, 10:36:22 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x5574f320bb40] stream 0, offset 0x9e7e0: partial file

[11/7/2022, 10:36:22 AM] [UniFi Protect] pipe:0: Invalid data found when processing input

[11/7/2022, 10:36:22 AM] [UniFi Protect] Error while decoding stream #0:0: Invalid data found when processing input

[11/7/2022, 10:36:22 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x5574f320bb40] stream 0, offset 0x9e7e0: partial file

[11/7/2022, 10:36:22 AM] [UniFi Protect] pipe:0: Invalid data found when processing input

[11/7/2022, 10:36:22 AM] [UniFi Protect] Error while decoding stream #0:0: Invalid data found when processing input

[11/7/2022, 10:36:22 AM] [UniFi Protect] [mov,mp4,m4a,3gp,3g2,mj2 @ 0x5574f320bb40] stream 0, offset 0x9e7e0: partial file

[11/7/2022, 10:36:22 AM] [UniFi Protect] pipe:0: Invalid data found when processing input

[11/7/2022, 10:36:22 AM] [UniFi Protect] video:628kB audio:32kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.610938%

[11/7/2022, 10:36:22 AM] [UniFi Protect] [libx264 @ 0x5574f3240c80] frame I:1     Avg QP:28.11  size:250797

[11/7/2022, 10:36:22 AM] [UniFi Protect] [libx264 @ 0x5574f3240c80] frame P:38    Avg QP:23.89  size:  8904

[11/7/2022, 10:36:22 AM] [UniFi Protect] [libx264 @ 0x5574f3240c80] frame B:81    Avg QP:27.44  size:   661

[11/7/2022, 10:36:22 AM] [UniFi Protect] [libx264 @ 0x5574f3240c80] consecutive B-frames:  8.3%  3.3%  5.0% 83.3%

[11/7/2022, 10:36:22 AM] [UniFi Protect] [libx264 @ 0x5574f3240c80] mb I  I16..4: 19.0%  0.0% 81.0%

[11/7/2022, 10:36:22 AM] [UniFi Protect] [libx264 @ 0x5574f3240c80] mb P  I16..4:  0.1%  0.0%  0.3%  P16..4: 13.3%  0.7%  0.6%  0.0%  0.0%    skip:85.0%

[11/7/2022, 10:36:22 AM] [UniFi Protect] [libx264 @ 0x5574f3240c80] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.4%  0.3%  0.1%  direct: 0.4%  skip:98.9%  L0:35.3% L1:33.2% BI:31.4%

[11/7/2022, 10:36:22 AM] [UniFi Protect] [libx264 @ 0x5574f3240c80] coded y,uvDC,uvAC intra: 87.5% 75.2% 33.3% inter: 1.9% 2.2% 0.1%

[11/7/2022, 10:36:22 AM] [UniFi Protect] [libx264 @ 0x5574f3240c80] i16 v,h,dc,p: 27% 28% 31% 13%

[11/7/2022, 10:36:22 AM] [UniFi Protect] [libx264 @ 0x5574f3240c80] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 20% 15%  5%  5%  5%  7%  7%  8%

[11/7/2022, 10:36:22 AM] [UniFi Protect] [libx264 @ 0x5574f3240c80] i8c dc,h,v,p: 40% 27% 26%  7%

[11/7/2022, 10:36:22 AM] [UniFi Protect] [libx264 @ 0x5574f3240c80] Weighted P-Frames: Y:0.0% UV:0.0%

[11/7/2022, 10:36:22 AM] [UniFi Protect] [libx264 @ 0x5574f3240c80] kb/s:1285.45
[11/7/2022, 10:36:31 AM] [UniFi Protect] 14th Street Dream Machine Pro [UDM-PRO] Front Door [UVC G4 Doorbell Pro]: HomeKit Secure Video event recording ended abnormally: The request timed out.
```

**Homebridge Configuration:**

```json
{
    "bridge": {
        "name": "Homebridge A7A9",
        "username": "*****",
        "port": 51621,
        "pin": "*****",
        "advertiser": "avahi"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
        {
            "controllers": [
                {
                    "address": "192.168.1.1",
                    "password": "********",
                    "username": "homebridge"
                }
            ],
            "platform": "UniFi Protect"
        }
    ]
}
```

**Screenshots:**
<!-- If applicable, add screenshots to help explain your problem. -->
![Screenshot 2022-11-07 at 9 10 39 AM](https://user-images.githubusercontent.com/6820226/200402562-bd1d2778-a28a-4430-b5e1-b3f527c52470.jpeg)

**Environment:**

* **Homebridge Version:** <!-- homebridge -V --> 1.5.1
* **Node Version:** <!-- node -v --> v16.18.0
* **Homebridge-UniFi-Protect Plugin Version:** v5.5.4
* **UniFi Protect Version:** <!-- Read the Protect version line from https://unifi-controller/protect/settings --> 2.2.6
* **UniFi Protect Controller Type:** <!-- UCKgen2+, UDMP, UNVR, etc. --> UDMP
* **UniFi Protect Controller Firmware Version:** <!-- Read the firmware line from https://unifi-controller/settings/general --> 1.12.30
* **Apple Device and iOS / macOS / iPadOS / tvOS Version:**<!-- Type of Apple device you're using and associated OS version --> iPhone 13 Pro 16.1, iPad Pro 10.5 16.1, 1 original HomePod and 2 HomePod mini running 16.1.
* **Operating System and OS Version:** <!-- Raspbian / Ubuntu / Debian / Windows / macOS / Docker --> Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-52-generic x86_64)

<!-- Click the "Preview" tab before you submit to ensure the formatting is correct. -->
