Slow stream start - max_analyze_duration reached leads to stream decode failure
Thanks for this amazing plugin. 

**Describe The Problem:**

Streams are frequently slow to start and, sometimes, error out without starting at all. Cameras are 2 G4 Pros and one G3 Micro.

**To Reproduce:**

With the plugin configured, and cameras appearing in Home, select a UniFi camera and attempt to watch the stream. Aside from setting up the Homebridge plugin to authenticate to a local UniFi Protect admin account, no customizations have been made.

**Logs:**

Here's a log with verbose ffmpeg enabled. Note the error at 8:42:20 AM.

```
[3/1/2021, 8:42:14 AM] [UniFi Protect] {site_name} [UDM-PRO] Front [UVC G4 Pro]: Streaming request from 192.168.20.84: 1280x720@30fps, 299 kbps. Using RTSP stream profile: 1280x720@24fps (Medium), 2000 kbps.
[3/1/2021, 8:42:14 AM] [UniFi Protect] {site_name} [UDM-PRO] Front [UVC G4 Pro]: ffmpeg command: /homebridge/node_modules/homebridge-unifi-protect/node_modules/ffmpeg-for-homebridge/ffmpeg -hide_banner -rtsp_transport tcp -i rtsp://192.168.20.1:7447/TPf9FzZAf51387bw -map 0:v -vcodec copy -payload_type 99 -ssrc 10082692 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params wGelq9geHUtsIGkhTej93EnERv3xMnN7IWsxYZT5 srtp://192.168.20.84:54062?rtcpport=54062&localrtcpport=54062&pkt_size=564 -map 0:a -acodec libfdk_aac -profile:a aac_eld -flags +global_header -f null -ar 16k -b:a 24k -bufsize 48k -ac 1 -payload_type 110 -ssrc 14112752 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params qmM9j5oK1KWwly2kbGJv4Hoe3vQaa6hq57rpFRc3 srtp://192.168.20.84:51714?rtcpport=51714&localrtcpport=51714&pkt_size=188 -loglevel level+verbose
[3/1/2021, 8:42:14 AM] [UniFi Protect] [tcp @ 0x7ff859820780] [verbose] Starting connection attempt to 192.168.20.1 port 7447
[3/1/2021, 8:42:14 AM] [UniFi Protect] 
[3/1/2021, 8:42:14 AM] [UniFi Protect] [tcp @ 0x7ff859820780] [verbose] Successfully connected to 192.168.20.1 port 7447
[3/1/2021, 8:42:14 AM] [UniFi Protect] 
[3/1/2021, 8:42:15 AM] [UniFi Protect] [rtsp @ 0x7ff859820080] [verbose] SDP:
[3/1/2021, 8:42:15 AM] [UniFi Protect] v=0
[3/1/2021, 8:42:15 AM] [UniFi Protect] o=- 1042 0 IN IP4 192.168.20.1
[3/1/2021, 8:42:15 AM] [UniFi Protect] s=E063DA01BF75_1
[3/1/2021, 8:42:15 AM] [UniFi Protect] u=www.evostream.com
[3/1/2021, 8:42:15 AM] [UniFi Protect] e=contact@evostream.com
[3/1/2021, 8:42:15 AM] [UniFi Protect] c=IN IP4 192.168.20.1
[3/1/2021, 8:42:15 AM] [UniFi Protect] t=0 0
[3/1/2021, 8:42:15 AM] [UniFi Protect] a=recvonly
[3/1/2021, 8:42:15 AM] [UniFi Protect] a=control:*
[3/1/2021, 8:42:15 AM] [UniFi Protect] a=range:npt=now-
[3/1/2021, 8:42:15 AM] [UniFi Protect] m=audio 0 RTP/AVP 96
[3/1/2021, 8:42:15 AM] [UniFi Protect] a=recvonly
[3/1/2021, 8:42:15 AM] [UniFi Protect] a=rtpmap:96 mpeg4-generic/48000/1
[3/1/2021, 8:42:15 AM] [UniFi Protect] a=control:trackID=1
[3/1/2021, 8:42:15 AM] [UniFi Protect] a=fmtp:96 streamtype=5; profile-level-id=15; mode=AAC-hbr; config=1188; SizeLength=13; IndexLength=3; IndexDeltaLength=3;
[3/1/2021, 8:42:15 AM] [UniFi Protect] m=video 0 RTP/AVP 97
[3/1/2021, 8:42:15 AM] [UniFi Protect] a=recvonly
[3/1/2021, 8:42:15 AM] [UniFi Protect] a=control:trackID=2
[3/1/2021, 8:42:15 AM] [UniFi Protect] a=rtpmap:97 H264/90000
[3/1/2021, 8:42:15 AM] [UniFi Protect] a=fmtp:97 profile-level-id=4d401f; packetization-mode=1; sprop-parameter-sets=Z01AH42NQCgC3/gLcBAQFAAAD6AAAu4CdoIhGoA=,aO44gA==
[3/1/2021, 8:42:15 AM] [UniFi Protect] 
[3/1/2021, 8:42:15 AM] [UniFi Protect] 
[3/1/2021, 8:42:15 AM] [UniFi Protect] [rtsp @ 0x7ff859820080] [verbose] setting jitter buffer size to 0
[3/1/2021, 8:42:15 AM] [UniFi Protect] 
[3/1/2021, 8:42:15 AM] [UniFi Protect] [rtsp @ 0x7ff859820080] [verbose] setting jitter buffer size to 0
[3/1/2021, 8:42:15 AM] [UniFi Protect] 
[3/1/2021, 8:42:15 AM] [UniFi Protect] [h264 @ 0x5600393dd980] [verbose] Reinit context to 1280x720, pix_fmt: yuvj420p
[3/1/2021, 8:42:15 AM] [UniFi Protect] 
[3/1/2021, 8:42:20 AM] [UniFi Protect] [rtsp @ 0x7ff859820080] [verbose] max_analyze_duration 5000000 reached at 5013333 microseconds st:0
[3/1/2021, 8:42:20 AM] [UniFi Protect] [rtsp @ 0x7ff859820080] [info] decoding for stream 1 failed
[3/1/2021, 8:42:20 AM] [UniFi Protect] 
[3/1/2021, 8:42:20 AM] [UniFi Protect] [info] Input #0, rtsp, from 'rtsp://192.168.20.1:7447/TPf9FzZAf51387bw':
[3/1/2021, 8:42:20 AM] [UniFi Protect] [info]   Metadata:
[3/1/2021, 8:42:20 AM] [UniFi Protect] [info]     title           : E063DA01BF75_1
[3/1/2021, 8:42:20 AM] [UniFi Protect] [info]   Duration: N/A, start: 0.000000, bitrate: N/A
[3/1/2021, 8:42:20 AM] [UniFi Protect] [info]     Stream #0:0: Audio: aac (LC), 48000 Hz, mono, fltp
[3/1/2021, 8:42:20 AM] [UniFi Protect] 
[3/1/2021, 8:42:20 AM] [UniFi Protect] [info]     Stream #0:1: Video: h264 (Main), 1 reference frame, yuvj420p(pc, bt709, progressive, left), 1280x720 [SAR 1:1 DAR 16:9], 24 fps, 24 tbr, 90k tbn, 48 tbc
[3/1/2021, 8:42:20 AM] [UniFi Protect] 
[3/1/2021, 8:42:20 AM] [UniFi Protect] [info] Output #0, rtp, to 'srtp://192.168.20.84:54062?rtcpport=54062&localrtcpport=54062&pkt_size=564':
[3/1/2021, 8:42:20 AM] [UniFi Protect] [info]   Metadata:
[3/1/2021, 8:42:20 AM] [UniFi Protect] [info]     title           : E063DA01BF75_1
[3/1/2021, 8:42:20 AM] [UniFi Protect] [info]     encoder         : Lavf58.45.100
[3/1/2021, 8:42:20 AM] [UniFi Protect] 
[3/1/2021, 8:42:20 AM] [UniFi Protect] [info]     Stream #0:0: Video: h264 (Main), 1 reference frame, yuvj420p(pc, bt709, progressive, left), 1280x720 (0x0) [SAR 1:1 DAR 16:9], q=2-31, 24 fps, 24 tbr, 90k tbn, 24 tbc
[3/1/2021, 8:42:20 AM] [UniFi Protect] [info] Stream mapping:
[3/1/2021, 8:42:20 AM] [UniFi Protect] [info]   Stream #0:1 -> #0:0 (copy)
[3/1/2021, 8:42:20 AM] [UniFi Protect] [info]   Stream #0:0 -> #1:0 (aac (native) -> aac (libfdk_aac))
[3/1/2021, 8:42:20 AM] [UniFi Protect] [info] Press [q] to stop, [?] for help
[3/1/2021, 8:42:20 AM] [UniFi Protect] [graph_0_in_0_0 @ 0x5600394fb1c0] [verbose] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x4
[3/1/2021, 8:42:20 AM] [UniFi Protect] 
[3/1/2021, 8:42:20 AM] [UniFi Protect] [format_out_1_0 @ 0x560039570680] [verbose] auto-inserting filter 'auto_resampler_0' between the filter 'Parsed_anull_0' and the filter 'format_out_1_0'
[3/1/2021, 8:42:20 AM] [UniFi Protect] [auto_resampler_0 @ 0x56003943ae40] [verbose] ch:1 chl:mono fmt:fltp r:48000Hz -> ch:1 chl:mono fmt:s16 r:16000Hz
[3/1/2021, 8:42:20 AM] [UniFi Protect] [info] Output #1, rtp, to 'srtp://192.168.20.84:51714?rtcpport=51714&localrtcpport=51714&pkt_size=188':
[3/1/2021, 8:42:20 AM] [UniFi Protect] [info]   Metadata:
[3/1/2021, 8:42:20 AM] [UniFi Protect] [info]     title           : E063DA01BF75_1
[3/1/2021, 8:42:20 AM] [UniFi Protect] [info]     encoder         : Lavf58.45.100
[3/1/2021, 8:42:20 AM] [UniFi Protect] [info]     Stream #1:0: Audio: aac (libfdk_aac) (ELD), 16000 Hz, mono, s16, delay 288, 24 kb/s
[3/1/2021, 8:42:20 AM] [UniFi Protect] [info]     Metadata:
[3/1/2021, 8:42:20 AM] [UniFi Protect] [info]       encoder         : Lavc58.91.100 libfdk_aac
[3/1/2021, 8:42:20 AM] [UniFi Protect] 
[3/1/2021, 8:42:20 AM] [UniFi Protect] [info] frame=   11 fps=0.0 q=-1.0 size=      95kB time=00:00:05.62 bitrate= 138.6kbits/s speed= 9.8x    
[3/1/2021, 8:42:21 AM] [UniFi Protect] [info] frame=   26 fps= 24 q=-1.0 size=      98kB time=00:00:06.10 bitrate= 131.6kbits/s speed=5.64x    
[3/1/2021, 8:42:22 AM] [UniFi Protect] [info] frame=   35 fps= 22 q=-1.0 size=     102kB time=00:00:06.55 bitrate= 127.0kbits/s speed=4.14x    
[3/1/2021, 8:42:22 AM] [UniFi Protect] [info] frame=   50 fps= 24 q=-1.0 size=     103kB time=00:00:07.16 bitrate= 118.0kbits/s speed=3.38x    
[3/1/2021, 8:42:23 AM] [UniFi Protect] [info] frame=   62 fps= 24 q=-1.0 size=     105kB time=00:00:07.67 bitrate= 111.6kbits/s speed=2.92x    
[3/1/2021, 8:42:23 AM] [UniFi Protect] [info] frame=   75 fps= 24 q=-1.0 size=     106kB time=00:00:08.18 bitrate= 106.3kbits/s speed=2.59x    
[3/1/2021, 8:42:24 AM] [UniFi Protect] [info] frame=   87 fps= 24 q=-1.0 size=     108kB time=00:00:08.70 bitrate= 101.3kbits/s speed=2.37x    
[3/1/2021, 8:42:24 AM] [UniFi Protect] [info] frame=  101 fps= 24 q=-1.0 size=     110kB time=00:00:09.27 bitrate=  96.8kbits/s speed= 2.2x    
[3/1/2021, 8:42:25 AM] [UniFi Protect] [info] frame=  114 fps= 24 q=-1.0 size=     115kB time=00:00:09.75 bitrate=  96.2kbits/s speed=2.07x    
[3/1/2021, 8:42:25 AM] [UniFi Protect] [info] frame=  126 fps= 24 q=-1.0 size=     308kB time=00:00:10.30 bitrate= 245.3kbits/s speed=1.96x    
[3/1/2021, 8:42:26 AM] [UniFi Protect] [info] frame=  138 fps= 24 q=-1.0 size=     309kB time=00:00:10.81 bitrate= 234.3kbits/s speed=1.88x    
[3/1/2021, 8:42:26 AM] [UniFi Protect] [info] frame=  151 fps= 24 q=-1.0 size=     310kB time=00:00:11.29 bitrate= 224.8kbits/s speed=1.81x    
[3/1/2021, 8:42:27 AM] [UniFi Protect] [info] frame=  163 fps= 24 q=-1.0 size=     311kB time=00:00:11.80 bitrate= 215.5kbits/s speed=1.75x    
[3/1/2021, 8:42:27 AM] [UniFi Protect] [info] frame=  175 fps= 24 q=-1.0 size=     311kB time=00:00:12.34 bitrate= 206.5kbits/s speed=1.69x    
[3/1/2021, 8:42:28 AM] [UniFi Protect] [info] frame=  187 fps= 24 q=-1.0 size=     312kB time=00:00:12.86 bitrate= 198.7kbits/s speed=1.65x    
[3/1/2021, 8:42:28 AM] [UniFi Protect] [info] frame=  200 fps= 24 q=-1.0 size=     313kB time=00:00:13.37 bitrate= 191.5kbits/s speed= 1.6x    
[3/1/2021, 8:42:29 AM] [UniFi Protect] [info] frame=  212 fps= 24 q=-1.0 size=     313kB time=00:00:13.88 bitrate= 184.8kbits/s speed=1.57x    
[3/1/2021, 8:42:29 AM] [UniFi Protect] [info] frame=  224 fps= 24 q=-1.0 size=     322kB time=00:00:14.39 bitrate= 183.5kbits/s speed=1.54x    
[3/1/2021, 8:42:30 AM] [UniFi Protect] [info] frame=  237 fps= 24 q=-1.0 size=     324kB time=00:00:14.90 bitrate= 178.2kbits/s speed=1.51x    
[3/1/2021, 8:42:30 AM] [UniFi Protect] {site_name} [UDM-PRO] Front [UVC G4 Pro]: Stopped video streaming session.
[3/1/2021, 8:42:30 AM] [UniFi Protect] [info] frame=  243 fps= 24 q=-1.0 Lsize=     643kB time=00:00:15.19 bitrate= 346.7kbits/s speed=1.49x    
[3/1/2021, 8:42:30 AM] [UniFi Protect] [info] video:625kB audio:45kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[3/1/2021, 8:42:30 AM] [UniFi Protect] [verbose] Input file #0 (rtsp://192.168.20.1:7447/TPf9FzZAf51387bw):
[3/1/2021, 8:42:30 AM] [UniFi Protect] [verbose]   Input stream #0:0 (audio): 714 packets read (116858 bytes); 714 frames decoded (731136 samples); 
[3/1/2021, 8:42:30 AM] [UniFi Protect] [verbose]   Input stream #0:1 (video): 361 packets read (706492 bytes); 
[3/1/2021, 8:42:30 AM] [UniFi Protect] [verbose]   Total: 1075 packets (823350 bytes) demuxed
[3/1/2021, 8:42:30 AM] [UniFi Protect] [verbose] Output file #0 (srtp://192.168.20.84:54062?rtcpport=54062&localrtcpport=54062&pkt_size=564):
[3/1/2021, 8:42:30 AM] [UniFi Protect] [verbose]   Output stream #0:0 (video): 243 packets muxed (640286 bytes); 
[3/1/2021, 8:42:30 AM] [UniFi Protect] [verbose]   Total: 243 packets (640286 bytes) muxed
[3/1/2021, 8:42:30 AM] [UniFi Protect] [verbose] 
[3/1/2021, 8:42:30 AM] [UniFi Protect] Output file #1 (srtp://192.168.20.84:51714?rtcpport=51714&localrtcpport=51714&pkt_size=188):
[3/1/2021, 8:42:30 AM] [UniFi Protect] [verbose]   Output stream #1:0 (audio): 475 frames encoded (243200 samples); 476 packets muxed (45809 bytes); 
[3/1/2021, 8:42:30 AM] [UniFi Protect] [verbose]   Total: 476 packets (45809 bytes) muxed
[3/1/2021, 8:42:30 AM] [UniFi Protect] [AVIOContext @ 0x5600394e91c0] [verbose] Statistics: 0 seeks, 1404 writeouts
[3/1/2021, 8:42:30 AM] [UniFi Protect] [AVIOContext @ 0x5600394ee400] [verbose] Statistics: 0 seeks, 479 writeouts
[3/1/2021, 8:42:30 AM] [UniFi Protect] [info] Exiting normally, received signal 15.
[3/1/2021, 8:42:30 AM] [UniFi Protect] 
```

**Homebridge Configuration:**

Relying on auto config. No config customization.

```json
        {
            "controllers": [
                {
                    "address": "192.168.20.1",
                    "password": "{redacted}",
                    "username": "homebridge"
                }
            ],
            "verboseFfmpeg": true,
            "platform": "UniFi Protect"
        }

```

**Environment:**

* **Homebridge Version:** 1.3.1
* **Node Version:** v14.16.0
* **Homebridge-UniFi-Protect Plugin Version:** v4.3.5
* **UniFi Protect Version:** 1.17.3
* **UniFi Protect Controller Type:** UDM Pro
* **UniFi Protect Controller Firmware Version:** 1.8.6
* **Apple Device and iOS / macOS / iPadOS / tvOS Version:** Hub = HomePod Mini. Client = various Macs, iPhones, iPads all on current OS. This log was generated with an iPhone 12 Pro running iOS 14.4
* **Operating System and OS Version:** Docker on a Synology RS1221+. OS is Alpine 3.12.4

