FFmpeg ended unexpectedly due to issues processing the media stream provided by the UniFi Protect livestream API.
<!-- 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. -->
Recently started throwing the bellow errors. Used to run stable for weeks.

**To Reproduce:**
<!-- Steps to reproduce the behavior. -->


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

```
[19/10/2023, 13:56:46] [UniFi Protect] 10.0.0.1: Connected to the UniFi Protect API at 10.0.0.1.
[19/10/2023, 13:56:46] [UniFi Protect] Home: Discovered nvr: Home [UDM SE] (address: 10.0.0.1 mac: 70A7416FA539).
[19/10/2023, 13:56:46] [UniFi Protect] Home: Discovered camera: G4 Instant [G4 Instant] (address: 10.0.0.32 mac: D021F999B6B3).
[19/10/2023, 13:56:46] [UniFi Protect] Home: Discovered camera: G4 Instant [G4 Instant] (address: 10.0.0.14 mac: D021F9967489).
[19/10/2023, 13:56:46] [UniFi Protect] Home [UDM-PRO-SE] G4 Instant [G4 Instant]: Syncing Protect device name to HomeKit.
[19/10/2023, 13:56:46] [UniFi Protect] Home [UDM-PRO-SE] G4 Instant [G4 Instant]: Dynamic streaming bitrate adjustment on the UniFi Protect controller enabled.
[19/10/2023, 13:56:47] [UniFi Protect] Home [UDM-PRO-SE] G4 Instant [G4 Instant]: HomeKit Secure Video event recording enabled: 2688x1512@30fps (High), 2,000 kbps (4 second timeshift buffer).
[19/10/2023, 13:57:25] [UniFi Protect] Home [UDM-PRO-SE] G4 Instant [G4 Instant]: Unable to begin transmitting the stream to HomeKit Secure Video. Cannot retrieve initialization data from the UniFi Protect controller. This error is typically due to either an issue connecting to the Protect controller, or a problem on the Protect controller.
[19/10/2023, 13:57:25] [UniFi Protect] Home [UDM-PRO-SE] G4 Instant [G4 Instant]: FFmpeg ended unexpectedly due to issues processing the media stream provided by the UniFi Protect livestream API. This error can be safely ignored - they will occur occasionally.
[HDS ::ffff:10.0.2.84] Delegate finished recording stream 1 without sending anything out.       Controller will CANCEL.
[19/10/2023, 13:57:31] [UniFi Protect] Home [UDM-PRO-SE] G4 Instant [G4 Instant]: HomeKit Secure Video recording event ended early: The request timed out.
[19/10/2023, 13:57:36] [UniFi Protect] Home [UDM-PRO-SE] G4 Instant [G4 Instant]: Unable to begin transmitting the stream to HomeKit Secure Video. Cannot retrieve initialization data from the UniFi Protect controller. This error is typically due to either an issue connecting to the Protect controller, or a problem on the Protect controller.
[19/10/2023, 13:57:36] [UniFi Protect] Home [UDM-PRO-SE] G4 Instant [G4 Instant]: FFmpeg ended unexpectedly due to issues processing the media stream provided by the UniFi Protect livestream API. This error can be safely ignored - they will occur occasionally.
[HDS ::ffff:10.0.2.84] Delegate finished recording stream 2 without sending anything out.       Controller will CANCEL.
[19/10/2023, 13:57:42] [UniFi Protect] Home [UDM-PRO-SE] G4 Instant [G4 Instant]: HomeKit Secure Video recording event ended early: The request timed out.
[19/10/2023, 13:57:47] [UniFi Protect] Home [UDM-PRO-SE] G4 Instant [G4 Instant]: Unable to begin transmitting the stream to HomeKit Secure Video. Cannot retrieve initialization data from the UniFi Protect controller. This error is typically due to either an issue connecting to the Protect controller, or a problem on the Protect controller.
[19/10/2023, 13:57:47] [UniFi Protect] Home [UDM-PRO-SE] G4 Instant [G4 Instant]: FFmpeg ended unexpectedly due to issues processing the media stream provided by the UniFi Protect livestream API. This error can be safely ignored - they will occur occasionally.
[HDS ::ffff:10.0.2.84] Delegate finished recording stream 3 without sending anything out.       Controller will CANCEL.
[19/10/2023, 13:57:53] [UniFi Protect] Home [UDM-PRO-SE] G4 Instant [G4 Instant]: HomeKit Secure Video recording event ended early: The request timed out.
```

**Homebridge Configuration:**

```json
{
    "bridge": {
        "name": "Homebridge F51E",
        "username": "0E:6F:D2:59:F5:1E",
        "port": 51387,
        "pin": "251-13-182",
        "advertiser": "avahi",
        "bind": [
            "eth0"
        ]
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
        {
            "controllers": [
                {
                    "address": "10.0.0.1",
                    "password": "XXX",
                    "username": "XXX"
                }
            ],
            "name": "UniFi Protect",
            "options": [
                "Enable.Device.SyncName",
                "Disable.Device.D021F999B6B3",
                "Enable.Video.DynamicBitrate"
            ],
            "platform": "UniFi Protect"
        }
    ]
}
```

**Screenshots:**
<!-- If applicable, add screenshots to help explain your problem. -->

**Environment:**

* **Homebridge Version:** <!-- homebridge -V --> v1.6.1
* **Node Version:** <!-- node -v --> v18.18.2
* **Homebridge-UniFi-Protect Plugin Version:** v6.15.1
* **UniFi Protect Version:** <!-- Read the Protect version line from https://unifi-controller/protect/settings --> Version 2.8.35
* **UniFi Protect Controller Type:** <!-- UCKgen2+, UDMP, UNVR, etc. --> UDM-SE
* **UniFi Protect Controller Firmware Version:** <!-- Read the firmware line from https://unifi-controller/settings/general --> v3.1.16
* **Apple Device and iOS / macOS / iPadOS / tvOS Version:**<!-- Type of Apple device you're using and associated OS version --> iOS 17.0.3
* **Operating System and OS Version:** <!-- Raspbian / Ubuntu / Debian / Windows / macOS / Docker --> Raspbian GNU/Linux Bullseye (11)

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