TP-Link C200 stream not loading with FFmpeg error
<!-- You must use the issue template below -->

**Describe The Problem:**
<!-- A clear and concise description of what the bug is. -->

The TP-Link C200 doesn't load the stream in HomeKit. The snapshot within the HomeKit app works, but when opening the actual stream it loads without end. A look into the logs suggest an issue with FFmpeg.

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

It basically happens every single time.

**Logs:**
<!-- Bug reports that do not contain logs may be closed without warning. -->

```
[1/11/2021, 11:35:25] [Camera-ffmpeg] [Doggie Cam] Snapshot requested: 640 x 360
[1/11/2021, 11:35:25] [Camera-ffmpeg] [Doggie Cam] Sending snapshot: 640 x 360
[1/11/2021, 11:35:25] [Camera-ffmpeg] [Doggie Cam] Snapshot command: /usr/local/lib/node_modules/homebridge-camera-ffmpeg/node_modules/ffmpeg-for-homebridge/ffmpeg -i rtsp://[USER]:[PASSWORD]@192.168.178.36:554/stream2 -frames:v 1 -filter:v scale='min(640,iw)':'min(360,ih)':force_original_aspect_ratio=decrease,scale=trunc(iw/2)*2:trunc(ih/2)*2 -f image2 -
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] Video stream requested: 1280 x 720, 30 fps, 299 kbps
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] Starting video stream: 1280 x 720, 10 fps, 299 kbps
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] Stream command: /usr/local/lib/node_modules/homebridge-camera-ffmpeg/node_modules/ffmpeg-for-homebridge/ffmpeg -re -i rtsp://[USER]:[PASSWORD]@192.168.178.36:554/stream2 -an -sn -dn -codec:v libx264 -pix_fmt yuv420p -color_range mpeg -r 10 -f rawvideo -preset ultrafast -tune zerolatency -filter:v scale='min(1280,iw)':'min(720,ih)':force_original_aspect_ratio=decrease,scale=trunc(iw/2)*2:trunc(ih/2)*2 -b:v 299k -payload_type 99 -ssrc 4856896 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params qcQ+MJySW8TQycoDHHyxZp9Jeny0ezIZBMWCb7h1 srtp://192.168.178.23:53164?rtcpport=53164&pkt_size=1316 -vn -sn -dn -codec:a libfdk_aac -profile:a aac_eld -flags +global_header -f null -ar 16k -b:a 24k -ac 1 -payload_type 110 -ssrc 1083248 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params HzfiBwT9ygP4qg5UkdwiB+57hCla1Zcx71ZU5ak3 srtp://192.168.178.23:59731?rtcpport=59731&pkt_size=188 -loglevel level+verbose
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] [info]
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] [info]   built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1+deb9u1) 20170516
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] [info]   configuration: --pkgconfigdir=/build/workspace/lib/pkgconfig --prefix=/build/workspace --pkg-config-flags=--static --extra-cflags=-I/build/workspace/include --extra-ldflags=-L/build/workspace/lib --extra-libs='-lpthread -lm' --enable-static --disable-debug --disable-shared --disable-ffplay --disable-doc --enable-openssl --enable-gpl --enable-version3 --enable-nonfree --enable-pthreads --enable-libvpx --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libx264 --enable-runtime-cpudetect --enable-libfdk-aac --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-decoder=h264 --enable-network --enable-protocol=tcp --enable-libspeex --enable-demuxer=rtsp --enable-omx-rpi --enable-mmal --enable-indev=alsa --enable-outdev=alsa
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] [info]   libavutil      56. 51.100 / 56. 51.100
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] [info]   libavcodec     58. 91.100 / 58. 91.100
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] [info]   libavformat    58. 45.100 / 58. 45.100
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] [info]   libavdevice    58. 10.100 / 58. 10.100
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] [info]   libavfilter     7. 85.100 /  7. 85.100
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] [info]   libswscale      5.  7.100 /  5.  7.100
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] [info]   libswresample   3.  7.100 /  3.  7.100
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] [info]   libpostproc    55.  7.100 / 55.  7.100
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam]
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] [tcp @ 0x2a129e0]
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] [verbose]
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] Starting connection attempt to 192.168.178.36 port 554
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam]
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] [tcp @ 0x2a129e0] [verbose] Successfully connected to 192.168.178.36 port 554
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam]
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] [rtsp @ 0x2a10a00]
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] [verbose] SDP:
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] v=0
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] o=- 31479371 1 IN IP4 192.168.178.36
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] s=Session streamed by "TP-LINK RTSP Server"
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] i=stream2
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] t=0 0
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] a=tool:TP-LINK Streaming Media v2015.05.12
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] a=type:broadcast
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] a=control:*
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] a=range:npt=0-
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] a=x-qt-text-nam:Session streamed by "TP-LINK RTSP Server"
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] m=video 0 RTP/AVP 96
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] c=IN IP4 0.0.0.0
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] b=AS:4096
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] a=rtpmap:96 H264/90000
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] a=fmtp:96 packetization-mode=1; profile-level-id=640016; sprop-parameter-sets=Z2QAFqwa0BQF/yzcBAQFAAADAAEAAAMAHo8UIqA=,aO4CskiQ
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] a=control:track1
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] m=audio 0 RTP/AVP 8
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] c=IN IP4 0.0.0.0
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] b=AS:64
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] a=rtpmap:8 PCMA/8000
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] a=control:track2
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam]
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] [udp @ 0x2a15910] [warning] attempted to set receive buffer to size 393216 but it only ended up set as 327680
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] [udp @ 0x2a25c60] [warning] attempted to set receive buffer to size 393216 but it only ended up set as 327680
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam]
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] [rtsp @ 0x2a10a00] [verbose] setting jitter buffer size to 500
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] [udp @ 0x2a36910] [warning] attempted to set receive buffer to size 393216 but it only ended up set as 327680
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] [udp @ 0x2a46c60] [warning] attempted to set receive buffer to size 393216 but it only ended up set as 327680
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam] [rtsp @ 0x2a10a00] [verbose] setting jitter buffer size to 500
[1/11/2021, 11:35:41] [Camera-ffmpeg] [Doggie Cam]
[1/11/2021, 11:35:42] [Camera-ffmpeg] [Doggie Cam] [h264 @ 0x2a13e50]
[1/11/2021, 11:35:42] [Camera-ffmpeg] [Doggie Cam] [verbose] Reinit context to 640x368, pix_fmt: yuvj420p
[1/11/2021, 11:35:42] [Camera-ffmpeg] [Doggie Cam]
[1/11/2021, 11:35:43] [Camera-ffmpeg] [Doggie Cam] [warning]
[1/11/2021, 11:35:43] [Camera-ffmpeg] [Doggie Cam] Guessed Channel Layout for Input Stream #0.1 : mono
[1/11/2021, 11:35:43] [Camera-ffmpeg] [Doggie Cam] [info] Input #0, rtsp, from 'rtsp://[USER]:[PASSWORD]@192.168.178.36:554/stream2':
[1/11/2021, 11:35:43] [Camera-ffmpeg] [Doggie Cam] [info]   Metadata:
[1/11/2021, 11:35:43] [Camera-ffmpeg] [Doggie Cam] [info]     title           : Session streamed by "TP-LINK RTSP Server"
[1/11/2021, 11:35:43] [Camera-ffmpeg] [Doggie Cam] [info]     comment         : stream2
[1/11/2021, 11:35:43] [Camera-ffmpeg] [Doggie Cam] [info]   Duration: N/A, start: 0.000000, bitrate: N/A
[1/11/2021, 11:35:43] [Camera-ffmpeg] [Doggie Cam] [info]     Stream #0:0: Video: h264 (High), 1 reference frame, yuvj420p(pc, bt709, progressive, left), 640x360 (640x368), 15 fps, 28.58 tbr, 90k tbn, 30 tbc
[1/11/2021, 11:35:43] [Camera-ffmpeg] [Doggie Cam] [info]     Stream #0:1: Audio: pcm_alaw, 8000 Hz, mono, s16, 64 kb/s
[1/11/2021, 11:35:43] [Camera-ffmpeg] [Doggie Cam]
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam] [info]
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam] Stream mapping:
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam]
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam] [info]   Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam] [info]   Stream #0:1 -> #1:0 (pcm_alaw (native) -> aac (libfdk_aac))
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam] [info] Press [q] to stop, [?] for help
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam]
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam] [graph_1_in_0_1 @ 0x2a101a0] [verbose] tb:1/8000 samplefmt:s16 samplerate:8000 chlayout:0x4
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam] [format_out_1_0 @ 0x2a6f460] [verbose] auto-inserting filter 'auto_resampler_0' between the filter 'Parsed_anull_0' and the filter 'format_out_1_0'
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam] [auto_resampler_0 @ 0x2b21b70] [verbose] ch:1 chl:mono fmt:s16 r:8000Hz -> ch:1 chl:mono fmt:s16 r:16000Hz
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam]
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam] [info]
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam] Output #1, rtp, to 'srtp://192.168.178.23:59731?rtcpport=59731&pkt_size=188':
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam]
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam] [info]   Metadata:
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam] [info]     title           : Session streamed by "TP-LINK RTSP Server"
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam] [info]     comment         : stream2
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam] [info]     encoder         : Lavf58.45.100
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam] [info]     Stream #1:0: Audio: aac (libfdk_aac) (ELD), 16000 Hz, mono, s16, delay 288, 24 kb/s
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam] [info]     Metadata:
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam] [info]       encoder         : Lavc58.91.100 libfdk_aac
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam]
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam] [h264 @ 0x2b4a710]
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam] [verbose]
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam] Reinit context to 640x368, pix_fmt: yuvj420p
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam]
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam] [Parsed_scale_0 @ 0x2b22190]
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam] [verbose]
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam] w:min(1280,iw) h:min(720,ih) flags:'bicubic' interl:0
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam] [Parsed_scale_1 @ 0x2ade470] [verbose] w:trunc(iw/2)*2 h:trunc(ih/2)*2 flags:'bicubic' interl:0
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam] [graph 0 input from stream 0:0 @ 0x2af0700] [verbose] w:640 h:360 pixfmt:yuvj420p tb:1/90000 fr:15/1 sar:0/1
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam]
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam] [Parsed_scale_0 @ 0x2b22190]
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam] [verbose]
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam] w:640 h:360 fmt:yuvj420p sar:0/1 -> w:640 h:360 fmt:yuvj420p sar:0/1 flags:0x4
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam] [swscaler @ 0x2b97ef0] [warning] deprecated pixel format used, make sure you did set range correctly
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam]
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam] [Parsed_scale_1 @ 0x2ade470] [verbose] w:640 h:360 fmt:yuvj420p sar:0/1 -> w:640 h:360 fmt:yuv420p sar:0/1 flags:0x4
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam]
[1/11/2021, 11:35:44] [Camera-ffmpeg] [Doggie Cam] FFmpeg exited with code: null and signal: SIGILL (Unexpected)
```

**Homebridge Config:**

```json
{
            "cameras": [
                {
                    "name": "Doggie Cam",
                    "manufacturer": "TP-Link",
                    "model": "C200",
                    "firmwareRevision": "1.0.7",
                    "videoConfig": {
                        "source": "-re -i rtsp://[USER]:[PASSWORD]@192.168.178.36:554/stream2",
                        "stillImageSource": "-i rtsp://[USER]:[PASSWORD]@192.168.178.36:554/stream2",
                        "maxStreams": 2,
                        "maxWidth": 1280,
                        "maxHeight": 720,
                        "maxFPS": 10,
                        "maxBitrate": 300,
                        "vcodec": "libx264",
                        "packetSize": 1316,
                        "audio": true,
                        "debug": true
                    }
                }
            ],
            "platform": "Camera-ffmpeg"
        }
```

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

**Environment:**

* **Node.js Version**: <!-- node -v --> 12.13.0
* **NPM Version**: <!-- npm -v --> 6.12.0
* **Homebridge Version**: <!-- homebridge -V --> 1.1.7
* **Homebridge Camera FFmpeg Version**: 3.0.3
* **Homebridge Config UI X Plugin Version**: 4.6.3
* **Operating System**: <!-- Raspbian / Ubuntu / Debian / Windows / macOS / Docker --> Raspbian


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