Snapshots working but not live video
**Describe The Problem:**
I'm trying to setup a bunch of Reolink cameras into HomeKit and I'm unable to get live video working to any end device.
The snapshot function works fine.
If I try to access the video feed then it just times out after 30 seconds with the message;
"No Response This camera is not responding."
If I add the command "vcodec": "copy" to the config then it does work.
I've had a quick look with tcpdump and unless I add "vcodec": "copy" then no data stream flows from the homebridge docker to my Mac.
Something about FFmpeg running breaks the operation.
The issue is, that the camera is dumping an uncompressed h264 stream which chews about 7Mb/sec so being able to manipulate the frame rate, resolution, and compression would be valuable.

Any advice would be greatly appreciated. Thanks,

**To Reproduce:**
1. Open home app (Mac, iPhone, iPad)
2. See the still update (auto refreshes every 10sec)
3. Open the camera
4. Spinner for 30sec the get error "No Response This camera is not responding."

**Logs:**
ffprobe shows the following information about the camera stream;
```
Input #0, rtsp, from 'rtsp://xxx:xxx@192.168.178.142:554/h264Preview_01_main':
  Metadata:
    title           : Session streamed by "preview"
    comment         : h264Preview_01_main
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: h264 (High), yuv420p(progressive), 2560x1440, 30 tbr, 90k tbn, 180k tbc
    Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp
```

Homebridge Logs:
```
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] Video stream requested: 1280x720, 30 fps, 299 kbps
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] Starting video stream: 1280x720, 30 fps, 200 kbps
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] Stream command: /usr/lib/node_modules/homebridge-camera-ffmpeg/node_modules/ffmpeg-for-homebridge/ffmpeg -i rtsp://xxx:xxx@192.168.178.142:554/h264Preview_01_main -map 0:0 -vcodec libx264 -pix_fmt yuv420p -r 30 -f rawvideo -preset ultrafast -tune zerolatency -vf scale=1280:720 -b:v 200k -bufsize 400k -maxrate 200k -payload_type 99 -ssrc 2234451 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params 9uUdNN3OeB8pQ23mSz7eedgcRHTAFsTkHFwOpfqr srtp://192.168.178.4:64686?rtcpport=64686&localrtcpport=64686&pkt_size=1316 -map 0:1 -acodec libfdk_aac -profile:a aac_eld -flags +global_header -f null -ar 16k -b:a 24k -bufsize 24k -ac 1 -payload_type 110 -ssrc 1736348 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params tlITb0pedVZglGVuQN32/WQ2cOvxhpf7zxQNth9w srtp://192.168.178.4:64983?rtcpport=64983&localrtcpport=64983&pkt_size=188 -loglevel level+verbose
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] Received first frame.
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] [info] ffmpeg version 4.2.2-d1e8be3 Copyright (c) 2000-2019 the FFmpeg developers

[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] [info] built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] [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-indev=alsa --enable-outdev=alsa
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] [info] libavutil 56. 31.100 / 56. 31.100
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] [info] libavcodec 58. 54.100 / 58. 54.100
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] [info] libavformat 58. 29.100 / 58. 29.100
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] [info] libavdevice 58. 8.100 / 58. 8.100
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] [info] libavfilter 7. 57.100 / 7. 57.100
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] [info] libswscale 5. 5.100 / 5. 5.100
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] [info] libswresample 3. 5.100 / 3. 5.100
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] [info] libpostproc 55. 5.100 / 55. 5.100
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] [tcp @ 0x55cbe84ba900] [verbose] Starting connection attempt to 192.168.178.142 port 554
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] [tcp @ 0x55cbe84ba900] [verbose] Successfully connected to 192.168.178.142 port 554
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] [rtsp @ 0x55cbe84b8540] [verbose] SDP:
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] v=0
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] o=- 1596297647396054 1 IN IP4 192.168.178.142
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] s=Session streamed by "preview"
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] i=h264Preview_01_main
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] t=0 0
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] a=tool:LIVE555 Streaming Media v2013.04.08
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] a=type:broadcast
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] a=control:*
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] a=range:npt=0-
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] a=x-qt-text-nam:Session streamed by "preview"
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] a=x-qt-text-inf:h264Preview_01_main
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] m=video 0 RTP/AVP 96
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] c=IN IP4 0.0.0.0
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] b=AS:500
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] a=rtpmap:96 H264/90000
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] a=range:npt=0-
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] a=fmtp:96 packetization-mode=1;profile-level-id=640033;sprop-parameter-sets=Z2QAM6zoAoALWQ==,aO48MA==
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] a=control:trackID=1
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] m=audio 0 RTP/AVP 97
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] c=IN IP4 0.0.0.0
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] b=AS:256
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] a=rtpmap:97 MPEG4-GENERIC/16000
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] a=fmtp:97 streamtype=5;profile-level-id=15;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=1408; profile=1;
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] a=control:trackID=2
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] [rtsp @ 0x55cbe84b8540] [verbose] setting jitter buffer size to 500
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study] [rtsp @ 0x55cbe84b8540] [verbose] setting jitter buffer size to 500
[8/4/2020, 4:46:16 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:17 PM] [Camera-ffmpeg] [Study] [h264 @ 0x55cbe84bc340] [verbose] Reinit context to 2560x1440, pix_fmt: yuv420p
[8/4/2020, 4:46:17 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:17 PM] [Camera-ffmpeg] [Study] [rtsp @ 0x55cbe84b8540] [warning] max delay reached. need to consume packet

[8/4/2020, 4:46:17 PM] [Camera-ffmpeg] [Study] [rtsp @ 0x55cbe84b8540] [warning] RTP: missed 3 packets

[8/4/2020, 4:46:17 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [info] Input #0, rtsp, from 'rtsp://xxx:xxx@192.168.178.142:554/h264Preview_01_main':
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [info] Metadata:
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [info] title : Session streamed by "preview"
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [info] comment : h264Preview_01_main
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [info] Duration: N/A, start: 0.000000, bitrate: N/A
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [info] Stream #0:0: Video: h264 (High), 1 reference frame, yuv420p(progressive, left), 2560x1440, 30 tbr, 90k tbn, 180k tbc
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [info] Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [info] Stream mapping:
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [info] Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [info] Stream #0:1 -> #1:0 (aac (native) -> aac (libfdk_aac))
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [info] Press [q] to stop, [?] for help
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [graph_1_in_0_1 @ 0x55cbe88d7a40] [verbose] tb:1/16000 samplefmt:fltp samplerate:16000 chlayout:0x4
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [format_out_1_0 @ 0x55cbe84b8340] [verbose] auto-inserting filter 'auto_resampler_0' between the filter 'Parsed_anull_0' and the filter 'format_out_1_0'
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [auto_resampler_0 @ 0x55cbe88d93c0] [verbose] ch:1 chl:mono fmt:fltp r:16000Hz -> ch:1 chl:mono fmt:s16 r:16000Hz
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [info] Output #1, rtp, to 'srtp://192.168.178.4:64983?rtcpport=64983&localrtcpport=64983&pkt_size=188':
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [info] Metadata:
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [info] title : Session streamed by "preview"
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [info] comment : h264Preview_01_main
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [info] encoder : Lavf58.29.100
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [info] Stream #1:0: Audio: aac (libfdk_aac) (ELD), 16000 Hz, mono, s16, delay 288, 24 kb/s
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [info] Metadata:
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [info] encoder : Lavc58.54.100 libfdk_aac
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [h264 @ 0x55cbe8556780] [verbose] Reinit context to 2560x1440, pix_fmt: yuv420p
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [h264 @ 0x55cbe8644f80] [error] error while decoding MB 122 79, bytestream -7

[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [h264 @ 0x55cbe8644f80] [info] concealing 1687 DC, 1687 AC, 1687 MV errors in P frame
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [Parsed_scale_0 @ 0x55cbe8c142c0] [verbose] w:1280 h:720 flags:'bicubic' interl:0
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [graph 0 input from stream 0:0 @ 0x55cbe9e3d840] [verbose] w:2560 h:1440 pixfmt:yuv420p tb:1/90000 fr:30/1 sar:0/1 sws_param:flags=2
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [Parsed_scale_0 @ 0x55cbe8c142c0] [verbose] w:2560 h:1440 fmt:yuv420p sar:0/1 -> w:1280 h:720 fmt:yuv420p sar:0/1 flags:0x4
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [libx264 @ 0x55cbe8522ec0] [info] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [libx264 @ 0x55cbe8522ec0] [info] profile Constrained Baseline, level 3.1, 4:2:0, 8-bit
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [info] Output #0, rtp, to 'srtp://192.168.178.4:64686?rtcpport=64686&localrtcpport=64686&pkt_size=1316':
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [info] Metadata:
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [info] title : Session streamed by "preview"
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [info] comment : h264Preview_01_main
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [info] encoder : Lavf58.29.100
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [info] Stream #0:0: Video: h264 (libx264), 1 reference frame, yuv420p(left), 1280x720, q=-1--1, 200 kb/s, 30 fps, 90k tbn, 30 tbc
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [info] Metadata:
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [info] encoder : Lavc58.54.100 libx264
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [info] Side data:
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [info] cpb: bitrate max/min/avg: 200000/0/200000 buffer size: 400000 vbv_delay: -1
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [warning] rtsp://xxx:xxx@192.168.178.142:554/h264Preview_01_main: corrupt decoded frame in stream 0

[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:18 PM] [Camera-ffmpeg] [Study] [info] frame= 27 fps=0.0 q=41.0 size= 18kB time=00:00:01.51 bitrate= 97.1kbits/s speed=3.03x
[8/4/2020, 4:46:19 PM] [Camera-ffmpeg] [Study] [libfdk_aac @ 0x55cbe85509c0] [warning] Queue input is backward in time

[8/4/2020, 4:46:19 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:19 PM] [Camera-ffmpeg] [Study] [rtp @ 0x55cbe85503c0] [warning] Non-monotonous DTS in output stream 1:0; previous: 31456, current: 30909; changing to 31456. This may result in incorrect timestamps in the output file.

[8/4/2020, 4:46:19 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:19 PM] [Camera-ffmpeg] [Study] [info] frame= 42 fps= 42 q=40.0 size= 30kB time=00:00:01.99 bitrate= 122.3kbits/s speed=1.97x
[8/4/2020, 4:46:19 PM] [Camera-ffmpeg] [Study] [rtp @ 0x55cbe85503c0] [warning] Non-monotonous DTS in output stream 1:0; previous: 31456, current: 31421; changing to 31456. This may result in incorrect timestamps in the output file.

[8/4/2020, 4:46:19 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:19 PM] [Camera-ffmpeg] [Study] [info] frame= 59 fps= 39 q=33.0 size= 42kB time=00:00:02.47 bitrate= 137.4kbits/s speed=1.62x
[8/4/2020, 4:46:20 PM] [Camera-ffmpeg] [Study] [info] frame= 75 fps= 36 q=37.0 size= 52kB time=00:00:02.98 bitrate= 141.7kbits/s speed=1.43x
[8/4/2020, 4:46:20 PM] [Camera-ffmpeg] [Study] [info] frame= 75 fps= 36 q=37.0 size= 52kB time=00:00:02.98 bitrate= 141.7kbits/s speed=1.43x
[8/4/2020, 4:46:20 PM] [Camera-ffmpeg] [Study] [info] frame= 90 fps= 34 q=32.0 size= 61kB time=00:00:03.56 bitrate= 141.3kbits/s speed=1.36x
[8/4/2020, 4:46:21 PM] [Camera-ffmpeg] [Study] [info] frame= 107 fps= 34 q=31.0 size= 73kB time=00:00:04.07 bitrate= 146.8kbits/s speed= 1.3x
[8/4/2020, 4:46:21 PM] [Camera-ffmpeg] [Study] [info] frame= 123 fps= 34 q=28.0 size= 83kB time=00:00:04.58 bitrate= 148.9kbits/s speed=1.26x
[8/4/2020, 4:46:22 PM] [Camera-ffmpeg] [Study] [info] frame= 137 fps= 33 q=26.0 size= 93kB time=00:00:05.09 bitrate= 149.5kbits/s speed=1.23x
[8/4/2020, 4:46:22 PM] [Camera-ffmpeg] [Study] [info] frame= 153 fps= 33 q=28.0 size= 102kB time=00:00:05.54 bitrate= 151.3kbits/s speed=1.18x
[8/4/2020, 4:46:23 PM] [Camera-ffmpeg] [Study] [info] frame= 168 fps= 32 q=30.0 size= 112kB time=00:00:06.12 bitrate= 149.2kbits/s speed=1.18x
[8/4/2020, 4:46:23 PM] [Camera-ffmpeg] [Study] [info] frame= 184 fps= 32 q=27.0 size= 122kB time=00:00:06.63 bitrate= 150.3kbits/s speed=1.17x
[8/4/2020, 4:46:24 PM] [Camera-ffmpeg] [Study] [rtsp @ 0x55cbe84b8540] [warning] max delay reached. need to consume packet

[8/4/2020, 4:46:24 PM] [Camera-ffmpeg] [Study] [rtsp @ 0x55cbe84b8540] [warning] RTP: missed 4 packets

[8/4/2020, 4:46:24 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:24 PM] [Camera-ffmpeg] [Study] [h264 @ 0x55cbe8530340] [info] concealing 4786 DC, 4786 AC, 4786 MV errors in P frame
[8/4/2020, 4:46:24 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:24 PM] [Camera-ffmpeg] [Study] [info] frame= 199 fps= 32 q=30.0 size= 130kB time=00:00:07.21 bitrate= 147.8kbits/s speed=1.16x
[8/4/2020, 4:46:24 PM] [Camera-ffmpeg] [Study] [rtsp @ 0x55cbe84b8540] [warning] max delay reached. need to consume packet

[8/4/2020, 4:46:24 PM] [Camera-ffmpeg] [Study] [rtsp @ 0x55cbe84b8540] [warning] RTP: missed 4 packets

[8/4/2020, 4:46:24 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:24 PM] [Camera-ffmpeg] [Study] [h264 @ 0x55cbe8530340] [info] concealing 4786 DC, 4786 AC, 4786 MV errors in P frame
[8/4/2020, 4:46:24 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:24 PM] [Camera-ffmpeg] [Study] [info] frame= 199 fps= 32 q=30.0 size= 130kB time=00:00:07.21 bitrate= 147.8kbits/s speed=1.16x
[8/4/2020, 4:46:24 PM] [Camera-ffmpeg] [Study] [warning] rtsp://xxx:xxx@192.168.178.142:554/h264Preview_01_main: corrupt decoded frame in stream 0

[8/4/2020, 4:46:24 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:25 PM] [Camera-ffmpeg] [Study] [info] frame= 214 fps= 32 q=31.0 size= 141kB time=00:00:07.65 bitrate= 150.5kbits/s speed=1.14x
[8/4/2020, 4:46:25 PM] [Camera-ffmpeg] [Study] [info] frame= 230 fps= 32 q=26.0 size= 151kB time=00:00:08.17 bitrate= 151.1kbits/s speed=1.13x
[8/4/2020, 4:46:26 PM] [Camera-ffmpeg] [Study] [info] frame= 246 fps= 32 q=28.0 size= 160kB time=00:00:08.68 bitrate= 151.2kbits/s speed=1.12x
[8/4/2020, 4:46:26 PM] [Camera-ffmpeg] [Study] [info] frame= 260 fps= 31 q=32.0 size= 195kB time=00:00:09.19 bitrate= 173.7kbits/s speed=1.11x
[8/4/2020, 4:46:27 PM] [Camera-ffmpeg] [Study] [info] frame= 276 fps= 31 q=32.0 size= 201kB time=00:00:09.77 bitrate= 168.2kbits/s speed=1.11x
[8/4/2020, 4:46:27 PM] [Camera-ffmpeg] [Study] [info] frame= 276 fps= 31 q=32.0 size= 201kB time=00:00:09.77 bitrate= 168.2kbits/s speed=1.11x
[8/4/2020, 4:46:27 PM] [Camera-ffmpeg] [Study] [info] frame= 293 fps= 31 q=31.0 size= 210kB time=00:00:10.28 bitrate= 167.4kbits/s speed= 1.1x
[8/4/2020, 4:46:28 PM] [Camera-ffmpeg] [Study] [info] frame= 309 fps= 31 q=31.0 size= 216kB time=00:00:10.79 bitrate= 163.8kbits/s speed= 1.1x
[8/4/2020, 4:46:28 PM] [Camera-ffmpeg] [Study] [info] frame= 324 fps= 31 q=31.0 size= 230kB time=00:00:11.30 bitrate= 166.8kbits/s speed=1.09x
[8/4/2020, 4:46:29 PM] [Camera-ffmpeg] [Study] [info] frame= 338 fps= 31 q=31.0 size= 235kB time=00:00:11.81 bitrate= 162.8kbits/s speed=1.09x
[8/4/2020, 4:46:29 PM] [Camera-ffmpeg] [Study] [info] frame= 355 fps= 31 q=29.0 size= 248kB time=00:00:12.33 bitrate= 164.8kbits/s speed=1.08x
[8/4/2020, 4:46:30 PM] [Camera-ffmpeg] [Study] [info] frame= 369 fps= 31 q=30.0 size= 258kB time=00:00:12.77 bitrate= 165.3kbits/s speed=1.07x
[8/4/2020, 4:46:30 PM] [Camera-ffmpeg] [Study] [info] frame= 384 fps= 31 q=26.0 size= 267kB time=00:00:13.35 bitrate= 163.9kbits/s speed=1.08x
[8/4/2020, 4:46:31 PM] [Camera-ffmpeg] [Study] [rtsp @ 0x55cbe84b8540] [warning] max delay reached. need to consume packet

[8/4/2020, 4:46:31 PM] [Camera-ffmpeg] [Study] [rtsp @ 0x55cbe84b8540] [warning] RTP: missed 1 packets

[8/4/2020, 4:46:31 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:31 PM] [Camera-ffmpeg] [Study] [h264 @ 0x55cbe8644f80] [info] concealing 9009 DC, 9009 AC, 9009 MV errors in P frame
[8/4/2020, 4:46:31 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:31 PM] [Camera-ffmpeg] [Study] [info] frame= 399 fps= 31 q=28.0 size= 277kB time=00:00:13.80 bitrate= 164.2kbits/s speed=1.07x
[8/4/2020, 4:46:31 PM] [Camera-ffmpeg] [Study] [warning] rtsp://xxx:xxx@192.168.178.142:554/h264Preview_01_main: corrupt decoded frame in stream 0

[8/4/2020, 4:46:31 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:31 PM] [Camera-ffmpeg] [Study] [info] frame= 416 fps= 31 q=30.0 size= 290kB time=00:00:14.31 bitrate= 165.9kbits/s speed=1.06x
[8/4/2020, 4:46:32 PM] [Camera-ffmpeg] [Study] [info] frame= 431 fps= 31 q=27.0 size= 300kB time=00:00:14.82 bitrate= 165.9kbits/s speed=1.06x
[8/4/2020, 4:46:32 PM] [Camera-ffmpeg] [Study] [info] frame= 431 fps= 31 q=27.0 size= 300kB time=00:00:14.82 bitrate= 165.9kbits/s speed=1.06x
[8/4/2020, 4:46:32 PM] [Camera-ffmpeg] [Study] [info] frame= 446 fps= 31 q=27.0 size= 310kB time=00:00:15.40 bitrate= 164.9kbits/s speed=1.07x
[8/4/2020, 4:46:33 PM] [Camera-ffmpeg] [Study] [info] frame= 462 fps= 31 q=29.0 size= 321kB time=00:00:15.91 bitrate= 165.2kbits/s speed=1.06x
[8/4/2020, 4:46:33 PM] [Camera-ffmpeg] [Study] [info] frame= 477 fps= 31 q=29.0 size= 332kB time=00:00:16.42 bitrate= 165.4kbits/s speed=1.06x
[8/4/2020, 4:46:34 PM] [Camera-ffmpeg] [Study] [info] frame= 492 fps= 31 q=27.0 size= 342kB time=00:00:16.93 bitrate= 165.2kbits/s speed=1.06x
[8/4/2020, 4:46:34 PM] [Camera-ffmpeg] [Study] [info] frame= 508 fps= 31 q=32.0 size= 381kB time=00:00:17.38 bitrate= 179.7kbits/s speed=1.05x
[8/4/2020, 4:46:34 PM] [Camera-ffmpeg] [Study] [info] frame= 492 fps= 31 q=27.0 size= 342kB time=00:00:16.93 bitrate= 165.2kbits/s speed=1.06x
[8/4/2020, 4:46:34 PM] [Camera-ffmpeg] [Study] [info] frame= 508 fps= 31 q=32.0 size= 381kB time=00:00:17.38 bitrate= 179.7kbits/s speed=1.05x
[8/4/2020, 4:46:35 PM] [Camera-ffmpeg] [Study] [info] frame= 523 fps= 31 q=31.0 size= 393kB time=00:00:18.02 bitrate= 178.4kbits/s speed=1.06x
[8/4/2020, 4:46:35 PM] [Camera-ffmpeg] [Study] [info] frame= 541 fps= 31 q=33.0 size= 403kB time=00:00:18.53 bitrate= 177.9kbits/s speed=1.05x
[8/4/2020, 4:46:36 PM] [Camera-ffmpeg] [Study] [info] frame= 556 fps= 31 q=30.0 size= 411kB time=00:00:19.05 bitrate= 176.9kbits/s speed=1.05x
[8/4/2020, 4:46:36 PM] [Camera-ffmpeg] [Study] [info] frame= 573 fps= 31 q=29.0 size= 421kB time=00:00:19.56 bitrate= 176.4kbits/s speed=1.05x
[8/4/2020, 4:46:37 PM] [Camera-ffmpeg] [Study] [info] frame= 585 fps= 31 q=29.0 size= 428kB time=00:00:20.07 bitrate= 174.6kbits/s speed=1.05x
[8/4/2020, 4:46:37 PM] [Camera-ffmpeg] [Study] [info] frame= 602 fps= 31 q=32.0 size= 435kB time=00:00:20.58 bitrate= 173.2kbits/s speed=1.05x
[8/4/2020, 4:46:38 PM] [Camera-ffmpeg] [Study] [info] frame= 617 fps= 31 q=26.0 size= 445kB time=00:00:21.03 bitrate= 173.5kbits/s speed=1.04x
[8/4/2020, 4:46:38 PM] [Camera-ffmpeg] [Study] [info] frame= 632 fps= 31 q=29.0 size= 455kB time=00:00:21.54 bitrate= 172.9kbits/s speed=1.04x
[8/4/2020, 4:46:39 PM] [Camera-ffmpeg] [Study] [info] frame= 648 fps= 31 q=29.0 size= 469kB time=00:00:22.12 bitrate= 173.7kbits/s speed=1.04x
[8/4/2020, 4:46:39 PM] [Camera-ffmpeg] [Study] [info] frame= 648 fps= 31 q=29.0 size= 469kB time=00:00:22.12 bitrate= 173.7kbits/s speed=1.04x
[8/4/2020, 4:46:39 PM] [Camera-ffmpeg] [Study] [info] frame= 665 fps= 31 q=29.0 size= 480kB time=00:00:22.63 bitrate= 173.7kbits/s speed=1.04x
[8/4/2020, 4:46:40 PM] [Camera-ffmpeg] [Study] [info] frame= 680 fps= 31 q=28.0 size= 491kB time=00:00:23.14 bitrate= 173.9kbits/s speed=1.04x
[8/4/2020, 4:46:41 PM] [Camera-ffmpeg] [Study] [info] frame= 696 fps= 31 q=26.0 size= 503kB time=00:00:23.65 bitrate= 174.1kbits/s speed=1.04x
[8/4/2020, 4:46:41 PM] [Camera-ffmpeg] [Study] [info] frame= 711 fps= 31 q=28.0 size= 514kB time=00:00:24.23 bitrate= 173.8kbits/s speed=1.04x
[8/4/2020, 4:46:42 PM] [Camera-ffmpeg] [Study] [info] frame= 725 fps= 30 q=29.0 size= 523kB time=00:00:24.74 bitrate= 173.2kbits/s speed=1.04x
[8/4/2020, 4:46:42 PM] [Camera-ffmpeg] [Study] [info] frame= 742 fps= 31 q=28.0 size= 538kB time=00:00:25.19 bitrate= 174.8kbits/s speed=1.04x
[8/4/2020, 4:46:43 PM] [Camera-ffmpeg] [Study] [info] frame= 756 fps= 30 q=31.0 size= 577kB time=00:00:25.77 bitrate= 183.5kbits/s speed=1.04x
[8/4/2020, 4:46:43 PM] [Camera-ffmpeg] [Study] [info] frame= 771 fps= 30 q=31.0 size= 588kB time=00:00:26.34 bitrate= 182.9kbits/s speed=1.04x
[8/4/2020, 4:46:43 PM] [Camera-ffmpeg] [Study] [rtsp @ 0x55cbe84b8540] [warning] max delay reached. need to consume packet

[8/4/2020, 4:46:43 PM] [Camera-ffmpeg] [Study] [rtsp @ 0x55cbe84b8540] [warning] RTP: missed 4 packets

[8/4/2020, 4:46:43 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:43 PM] [Camera-ffmpeg] [Study] [h264 @ 0x55cbe8530340] [error] error while decoding MB 123 78, bytestream -23

[8/4/2020, 4:46:43 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:43 PM] [Camera-ffmpeg] [Study] [h264 @ 0x55cbe8530340] [info] concealing 1846 DC, 1846 AC, 1846 MV errors in P frame
[8/4/2020, 4:46:43 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:43 PM] [Camera-ffmpeg] [Study] [rtsp @ 0x55cbe84b8540] [warning] max delay reached. need to consume packet

[8/4/2020, 4:46:43 PM] [Camera-ffmpeg] [Study] [rtsp @ 0x55cbe84b8540] [warning] RTP: missed 19 packets

[8/4/2020, 4:46:43 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:43 PM] [Camera-ffmpeg] [Study] [h264 @ 0x55cbe863e4c0] [info] concealing 1996 DC, 1996 AC, 1996 MV errors in P frame
[8/4/2020, 4:46:43 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:44 PM] [Camera-ffmpeg] [Study] [warning] rtsp://xxx:xxx@192.168.178.142:554/h264Preview_01_main: corrupt decoded frame in stream 0

[8/4/2020, 4:46:44 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:44 PM] [Camera-ffmpeg] [Study] [info] frame= 788 fps= 30 q=30.0 size= 599kB time=00:00:26.73 bitrate= 183.5kbits/s speed=1.03x
[8/4/2020, 4:46:44 PM] [Camera-ffmpeg] [Study] [warning] rtsp://xxx:xxx@192.168.178.142:554/h264Preview_01_main: corrupt decoded frame in stream 0

[8/4/2020, 4:46:44 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:44 PM] [Camera-ffmpeg] [Study] [info] frame= 788 fps= 30 q=30.0 size= 599kB time=00:00:26.73 bitrate= 183.5kbits/s speed=1.03x
[8/4/2020, 4:46:44 PM] [Camera-ffmpeg] [Study] [warning] rtsp://xxx:xxx@192.168.178.142:554/h264Preview_01_main: corrupt decoded frame in stream 0

[8/4/2020, 4:46:44 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:44 PM] [Camera-ffmpeg] [Study] [verbose] *** 1 dup!
[8/4/2020, 4:46:44 PM] [Camera-ffmpeg] [Study]
[8/4/2020, 4:46:44 PM] [Camera-ffmpeg] [Study] [info] frame= 804 fps= 31 q=30.0 size= 614kB time=00:00:27.24 bitrate= 184.5kbits/s dup=1 drop=0 speed=1.03x
[8/4/2020, 4:46:45 PM] [Camera-ffmpeg] [Study] [info] frame= 820 fps= 31 q=29.0 size= 625kB time=00:00:27.75 bitrate= 184.5kbits/s dup=1 drop=0 speed=1.03x
[8/4/2020, 4:46:45 PM] [Camera-ffmpeg] [Study] [info] frame= 835 fps= 30 q=29.0 size= 636kB time=00:00:28.33 bitrate= 183.9kbits/s dup=1 drop=0 speed=1.03x
[8/4/2020, 4:46:46 PM] [Camera-ffmpeg] [Study] [info] frame= 850 fps= 30 q=29.0 size= 646kB time=00:00:28.84 bitrate= 183.5kbits/s dup=1 drop=0 speed=1.03x
[8/4/2020, 4:46:46 PM] [Camera-ffmpeg] [Study] Stopped video stream.
[8/4/2020, 4:46:46 PM] [Camera-ffmpeg] [Study] ffmpeg exited with code: null and signal: SIGKILL (Expected)
```

**Homebridge Config:**

```json
{
    "bridge": {
        "name": "Homebridge",
        "username": "CC:22:3D:E3:CE:33",
        "port": 51826,
        "pin": "xxx-xx-xxx"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8080,
            "auth": "form",
            "theme": "auto",
            "tempUnits": "c",
            "lang": "auto",
            "sudo": true,
            "log": {
                "method": "file",
                "path": "/var/log/homebridge.log"
            },
            "platform": "config"
        },
        {
            "cameras": [
                {
                    "name": "Study",
                    "manufacturer": "Reolink",
                    "model": "RLC-410",
                    "serialNumber": "ec:71:db:e5:44:aa",
                    "firmwareRevision": "19032101",
                    "videoConfig": {
                        "source": "-i rtsp://xxx:xxx@192.168.178.142:554/h264Preview_01_main",
                        "stillImageSource": "-i http://192.168.178.142:80/cgi-bin/api.cgi?cmd=Snap&channel=0&user=xxx&password=xxx",
                        "audio": true,
                        "debug": true,
                        "maxStreams": 2,
                        "maxWidth": 1280,
                        "maxHeight": 720,
                        "maxFPS": 30,
                        "maxBitrate": 200
                    }
                }
            ],
            "platform": "Camera-ffmpeg"
        }
    ]
}
```

**Environment:**

* **Node.js Version**: v12.15.0
* **NPM Version**: v6.13.4
* **Homebridge Version**: v1.1.1
* **Homebridge Camera FFmpeg Version**: v2.4.3
* **Homebridge Config UI X Plugin Version**: v4.24.0
* **Operating System**: Unraid Docker 4.19.107-Unraid