HomeKitSecure video recording fails on RasperryPi 4 with latest ffmpeg binaries.
<!-- 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:**
HomeKitSecure video recording fails on RasperryPi 4 with latest ffmpeg binaries.

<!-- A clear and concise description of what the issue is. -->

When I enable HKS recording, the plugin fails and the recording request is ended.


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

Trigger motion after enabling HKS recording

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

```
Show the Homebridge logs here.
Remove any sensitive information.
```

[20/03/2022, 22:25:12] [homebridge-unifi-protect] The Dream [UDM-PRO] Gio’s Room [UVC G4 Pro]: FFmpeg process ended unexpectedly with an exit code of 1.
[20/03/2022, 22:25:12] [homebridge-unifi-protect] The Dream [UDM-PRO] Gio’s Room [UVC G4 Pro]: FFmpeg command line that errored out was: /usr/lib/node_modules/homebridge-unifi-protect/node_modules/ffmpeg-for-homebridge/ffmpeg -hide_banner -fflags +discardcorrupt -r 24 -f mp4 -i pipe:0 -map 0:v -max_muxing_queue_size 9999 -vcodec h264_v4l2m2m -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 -acodec copy -f mp4 pipe:1
[20/03/2022, 22:25:12] [homebridge-unifi-protect] Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'pipe:0':

[20/03/2022, 22:25:12] [homebridge-unifi-protect]   Metadata:

[20/03/2022, 22:25:12] [homebridge-unifi-protect]     major_brand     : dash

[20/03/2022, 22:25:12] [homebridge-unifi-protect]     minor_version   : 0

[20/03/2022, 22:25:12] [homebridge-unifi-protect]     compatible_brands: iso6avc1mp41

[20/03/2022, 22:25:12] [homebridge-unifi-protect]     creation_time   : 2022-03-20T22:24:43.000000Z

[20/03/2022, 22:25:12] [homebridge-unifi-protect]   Duration: 18:05:19.45, start: 65118.059111, bitrate: N/A

[20/03/2022, 22:25:12] [homebridge-unifi-protect]     Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuvj420p(pc, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 0 kb/s, 24 fps, 24 tbr, 90k tbn, 48 tbc (default)

[20/03/2022, 22:25:12] [homebridge-unifi-protect]     Metadata:

[20/03/2022, 22:25:12] [homebridge-unifi-protect]       creation_time   : 2022-03-20T22:24:43.000000Z

[20/03/2022, 22:25:12] [homebridge-unifi-protect]       handler_name    : VideoHandler

[20/03/2022, 22:25:12] [homebridge-unifi-protect]       encoder         : EvoStream Media Server

[20/03/2022, 22:25:12] [homebridge-unifi-protect]     Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp (default)

[20/03/2022, 22:25:12] [homebridge-unifi-protect]     Metadata:

[20/03/2022, 22:25:12] [homebridge-unifi-protect]       creation_time   : 2022-03-20T22:24:43.000000Z

[20/03/2022, 22:25:12] [homebridge-unifi-protect]       handler_name    : SoundHandler

[20/03/2022, 22:25:12] [homebridge-unifi-protect] Stream mapping:

[20/03/2022, 22:25:12] [homebridge-unifi-protect]   Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_v4l2m2m))

[20/03/2022, 22:25:12] [homebridge-unifi-protect]   Stream #0:1 -> #0:1 (copy)

[20/03/2022, 22:25:12] [homebridge-unifi-protect] [h264_v4l2m2m @ 0x55ae4738d0] [Eval @ 0x7fd8aac7e8] Undefined constant or missing '(' in 'main'

[20/03/2022, 22:25:12] [homebridge-unifi-protect] [h264_v4l2m2m @ 0x55ae4738d0] Unable to parse option value "main"

[20/03/2022, 22:25:12] [homebridge-unifi-protect] [h264_v4l2m2m @ 0x55ae4738d0] Error setting option profile to value main.

[20/03/2022, 22:25:12] [homebridge-unifi-protect] Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

[20/03/2022, 22:25:12] [homebridge-unifi-protect] Conversion failed!

[20/03/2022, 22:25:13] [homebridge-unifi-protect] The Dream [UDM-PRO] Gio’s Room [UVC G4 Pro]: Streaming request from 10.0.10.150: 1280x720@30fps, 299 kbps. Using 1280x720@24fps (Medium), 2000 kbps.
[20/03/2022, 22:25:15] [homebridge-unifi-protect] The Dream [UDM-PRO] Gio’s Room [UVC G4 Pro]: Stopped video streaming session.
[20/03/2022, 22:25:16] [homebridge-unifi-protect] The Dream [UDM-PRO] Gio’s Room [UVC G4 Pro]: Streaming request from 10.0.10.150: 1280x720@30fps, 299 kbps. Using 1280x720@24fps (Medium), 2000 kbps.
[20/03/2022, 22:25:18] [homebridge-unifi-protect] The Dream [UDM-PRO] Gio’s Room [UVC G4 Pro]: HomeKit Secure Video event recording ended abnormally: HomeKit canceled the request.


**Homebridge Configuration:**

```json
Show the relevant portion of your homebridge config.json here, if needed.
Remove any sensitive information.
```

  {
            "controllers": [
                {
                    "address": "10.0.0.1",
                    "password": "xxx",
                    "username": "xxx"
                }
            ],
            "videoEncoder": "h264_v4l2m2m",
            "_bridge": {
                "username": "0E:D4:82:6F:67:1E",
                "port": 57763
            },
            "platform": "UniFi Protect"
        },

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

**Environment:**

* **Homebridge Version:** <!-- homebridge -V -->
latest
* **Node Version:** <!-- node -v -->
*latest
* **Homebridge-UniFi-Protect Plugin Version:**
* latest
* **UniFi Protect Version:** <!-- Read the Protect version line from https://unifi-controller/protect/settings -->
latest
* **UniFi Protect Controller Type:** <!-- UCKgen2+, UDMP, UNVR, etc. -->
latest
* **UniFi Protect Controller Firmware Version:** <!-- Read the firmware line from https://unifi-controller/settings/general -->
latest
* **Apple Device and iOS / macOS / iPadOS / tvOS Version:**<!-- Type of Apple device you're using and associated OS version -->
any
* **Operating System and OS Version:** <!-- Raspbian / Ubuntu / Debian / Windows / macOS / Docker -->
raspbian
<!-- Click the "Preview" tab before you submit to ensure the formatting is correct. -->
