Snapshot works but almost always no video

**Describe The Problem:**
The snapshot of the camera works, but almost always no video, like I tried 50 times only one time success.

**To Reproduce:**
Add camera to homebridge

**Logs:**

```
[7/26/2021, 8:30:47 PM] [Camera FFmpeg] [Camera1] Fetching snapshot took 5.296 seconds.
[7/26/2021, 8:30:47 PM] [Camera FFmpeg] [Camera1] Sending snapshot: 1280 x 720
[7/26/2021, 8:30:47 PM] [Camera FFmpeg] [Camera1] Resize command: /homebridge/node_modules/homebridge-camera-ffmpeg/node_modules/ffmpeg-for-homebridge/ffmpeg -i pipe: -frames:v 1 -filter:v scale='min(1280,iw)':'min(720,ih)':force_original_aspect_ratio=decrease -f image2 -
[7/26/2021, 8:30:49 PM] [Camera FFmpeg] [Camera1] Video stream requested: 1920 x 1080, 30 fps, 802 kbps
[7/26/2021, 8:30:49 PM] [Camera FFmpeg] [Camera1] Starting video stream: native x native, native fps, ??? kbps
[7/26/2021, 8:30:49 PM] [Camera FFmpeg] [Camera1] Stream command: /homebridge/node_modules/homebridge-camera-ffmpeg/node_modules/ffmpeg-for-homebridge/ffmpeg -i rtsp://xxxxxx:xxxxxxx@192.168.1.30:554/chID=1 -an -sn -dn -codec:v copy -pix_fmt yuv420p -color_range mpeg -f rawvideo -payload_type 99 -ssrc 6232537 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params taN5nBalxbiWmIn4QZUOB14ceb8MAUTIL4wb7lVi srtp://198.18.0.1:53471?rtcpport=53471&pkt_size=188 -loglevel level+verbose -progress pipe:1
[7/26/2021, 8:30:49 PM] [Camera FFmpeg] [Camera1] [info] ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
[7/26/2021, 8:30:49 PM] [Camera FFmpeg] [Camera1] [info]   built with gcc 9.3.0 (Alpine 9.3.0)
[7/26/2021, 8:30:49 PM] [Camera FFmpeg] [Camera1] [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
[7/26/2021, 8:30:49 PM] [Camera FFmpeg] [Camera1] [info]   libavutil      56. 51.100 / 56. 51.100
[7/26/2021, 8:30:49 PM] [Camera FFmpeg] [Camera1] [info]   libavcodec     58. 91.100 / 58. 91.100
[7/26/2021, 8:30:49 PM] [Camera FFmpeg] [Camera1] [info]   libavformat    58. 45.100 / 58. 45.100
[7/26/2021, 8:30:49 PM] [Camera FFmpeg] [Camera1] [info]   libavdevice    58. 10.100 / 58. 10.100
[7/26/2021, 8:30:49 PM] [Camera FFmpeg] [Camera1] [info]   libavfilter     7. 85.100 /  7. 85.100
[7/26/2021, 8:30:49 PM] [Camera FFmpeg] [Camera1] [info]   libswscale      5.  7.100 /  5.  7.100
[7/26/2021, 8:30:49 PM] [Camera FFmpeg] [Camera1] [info]   libswresample   3.  7.100 /  3.  7.100
[7/26/2021, 8:30:49 PM] [Camera FFmpeg] [Camera1] [info]   libpostproc    55.  7.100 / 55.  7.100
[7/26/2021, 8:30:49 PM] [Camera FFmpeg] [Camera1] [tcp @ 0x7f5b7c8d16c0] [verbose] Starting connection attempt to 192.168.1.30 port 554
[7/26/2021, 8:30:49 PM] [Camera FFmpeg] [Camera1] [tcp @ 0x7f5b7c8d16c0] [verbose] Successfully connected to 192.168.1.30 port 554
[7/26/2021, 8:30:50 PM] [Camera FFmpeg] [Camera1] [rtsp @ 0x7f5b7c8d1080] [verbose] SDP:
[7/26/2021, 8:30:50 PM] [Camera FFmpeg] [Camera1] v=0
[7/26/2021, 8:30:50 PM] [Camera FFmpeg] [Camera1] o=- 6126538 1 IN IP4 0.0.0.0
[7/26/2021, 8:30:50 PM] [Camera FFmpeg] [Camera1] s=RTSP SESSION
[7/26/2021, 8:30:50 PM] [Camera FFmpeg] [Camera1] u=http:///
[7/26/2021, 8:30:50 PM] [Camera FFmpeg] [Camera1] e=admin@
[7/26/2021, 8:30:50 PM] [Camera FFmpeg] [Camera1] t=0 0
[7/26/2021, 8:30:50 PM] [Camera FFmpeg] [Camera1] a=control:*
[7/26/2021, 8:30:50 PM] [Camera FFmpeg] [Camera1] a=range:npt=00.000- 
[7/26/2021, 8:30:50 PM] [Camera FFmpeg] [Camera1] m=video 0 RTP/AVP 96
[7/26/2021, 8:30:50 PM] [Camera FFmpeg] [Camera1] a=control:trackID=0
[7/26/2021, 8:30:50 PM] [Camera FFmpeg] [Camera1] a=rtpmap:96 H264/90000
[7/26/2021, 8:30:50 PM] [Camera FFmpeg] [Camera1] a=fmtp:60 profile-level-id=676400; sprop-parameter-sets=Z2QAH6wsaoFAFum4CAgIEA==,aO48sA==; packetization-mode=1
[7/26/2021, 8:30:50 PM] [Camera FFmpeg] [Camera1] m=audio 0 RTP/AVP 8
[7/26/2021, 8:30:50 PM] [Camera FFmpeg] [Camera1] a=control:trackID=1
[7/26/2021, 8:30:50 PM] [Camera FFmpeg] [Camera1] a=rtpmap:8 PCMA/8000
[7/26/2021, 8:30:50 PM] [Camera FFmpeg] [Camera1] a=ptime:40
[7/26/2021, 8:30:50 PM] [Camera FFmpeg] [Camera1] 
[7/26/2021, 8:30:50 PM] [Camera FFmpeg] [Camera1] [rtsp @ 0x7f5b7c8d1080] [verbose] setting jitter buffer size to 500
[7/26/2021, 8:30:50 PM] [Camera FFmpeg] [Camera1] [rtsp @ 0x7f5b7c8d1080] [verbose] setting jitter buffer size to 500
[7/26/2021, 8:30:50 PM] [Camera FFmpeg] [Camera1] [h264 @ 0x7f5b8042b240] [verbose] Reinit context to 1280x720, pix_fmt: yuvj420p
[7/26/2021, 8:30:55 PM] [Camera FFmpeg] [Camera1] [rtsp @ 0x7f5b7c8d1080] [verbose] max_analyze_duration 5000000 reached at 5016500 microseconds st:1
[7/26/2021, 8:30:55 PM] [Camera FFmpeg] [Camera1] [warning] Guessed Channel Layout for Input Stream #0.1 : mono
[7/26/2021, 8:30:55 PM] [Camera FFmpeg] [Camera1] [info] Input #0, rtsp, from 'rtsp://xxxxxxxxx:xxxxxxxxx@192.168.1.30:554/chID=1':
[7/26/2021, 8:30:55 PM] [Camera FFmpeg] [Camera1] [info]   Metadata:
[7/26/2021, 8:30:55 PM] [Camera FFmpeg] [Camera1] [info]     title           : RTSP SESSION
[7/26/2021, 8:30:55 PM] [Camera FFmpeg] [Camera1] [info]   Duration: N/A, start: 0.200100, bitrate: N/A
[7/26/2021, 8:30:55 PM] [Camera FFmpeg] [Camera1] [info]     Stream #0:0: Video: h264 (High), 1 reference frame, yuvj420p(pc, bt709, progressive, left), 1280x720, 5 tbr, 90k tbn, 180k tbc
[7/26/2021, 8:30:55 PM] [Camera FFmpeg] [Camera1] [info]     Stream #0:1: Audio: pcm_alaw, 8000 Hz, mono, s16, 64 kb/s
[7/26/2021, 8:30:55 PM] [Camera FFmpeg] [Camera1] [info] Output #0, rtp, to 'srtp://198.18.0.1:53471?rtcpport=53471&pkt_size=188':
[7/26/2021, 8:30:55 PM] [Camera FFmpeg] [Camera1] [info]   Metadata:
[7/26/2021, 8:30:55 PM] [Camera FFmpeg] [Camera1] [info]     title           : RTSP SESSION
[7/26/2021, 8:30:55 PM] [Camera FFmpeg] [Camera1] [info]     encoder         : Lavf58.45.100
[7/26/2021, 8:30:55 PM] [Camera FFmpeg] [Camera1] [info]     Stream #0:0: Video: h264 (High), 1 reference frame, yuvj420p(tv, bt709, progressive, left), 1280x720 (0x0), q=2-31, 5 tbr, 90k tbn, 90k tbc
[7/26/2021, 8:30:55 PM] [Camera FFmpeg] [Camera1] [info] Stream mapping:
[7/26/2021, 8:30:55 PM] [Camera FFmpeg] [Camera1] [info]   Stream #0:0 -> #0:0 (copy)
[7/26/2021, 8:30:55 PM] [Camera FFmpeg] [Camera1] [info] Press [q] to stop, [?] for help
[7/26/2021, 8:30:55 PM] [Camera FFmpeg] [Camera1] [rtp @ 0x7f5b805d4880] [warning] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[7/26/2021, 8:30:55 PM] [Camera FFmpeg] [Camera1] [info] frame=   25 fps=0.0 q=-1.0 size=     282kB time=00:00:04.60 bitrate= 501.4kbits/s speed=8.88x    
[7/26/2021, 8:30:55 PM] [Camera FFmpeg] [Camera1] Getting the first frames took 5.822 seconds.
[7/26/2021, 8:30:56 PM] [Camera FFmpeg] [Camera1] [info] frame=   27 fps= 26 q=-1.0 size=     290kB time=00:00:05.00 bitrate= 474.9kbits/s speed=4.82x    
[7/26/2021, 8:30:56 PM] [Camera FFmpeg] [Camera1] [info] frame=   30 fps= 19 q=-1.0 size=     300kB time=00:00:05.60 bitrate= 439.2kbits/s speed=3.59x    
[7/26/2021, 8:30:57 PM] [Camera FFmpeg] [Camera1] [info] frame=   32 fps= 15 q=-1.0 size=     373kB time=00:00:06.00 bitrate= 509.5kbits/s speed=2.89x    
[7/26/2021, 8:30:57 PM] [Camera FFmpeg] [Camera1] [info] frame=   35 fps= 13 q=-1.0 size=     381kB time=00:00:06.60 bitrate= 473.3kbits/s speed= 2.5x    
[7/26/2021, 8:30:58 PM] [Camera FFmpeg] [Camera1] [info] frame=   38 fps= 12 q=-1.0 size=     390kB time=00:00:07.20 bitrate= 444.2kbits/s speed=2.29x    
[7/26/2021, 8:30:58 PM] [Camera FFmpeg] [Camera1] [info] frame=   40 fps= 11 q=-1.0 size=     397kB time=00:00:07.60 bitrate= 428.1kbits/s speed=2.07x    
[7/26/2021, 8:30:59 PM] [Camera FFmpeg] [Camera1] [info] frame=   43 fps= 10 q=-1.0 size=     410kB time=00:00:08.20 bitrate= 409.7kbits/s speed=1.96x    
[7/26/2021, 8:30:59 PM] [Camera FFmpeg] [Camera1] [info] frame=   45 fps=9.6 q=-1.0 size=     416kB time=00:00:08.60 bitrate= 396.7kbits/s speed=1.83x    
[7/26/2021, 8:31:00 PM] [Camera FFmpeg] [Camera1] [info] frame=   48 fps=9.1 q=-1.0 size=     427kB time=00:00:09.20 bitrate= 380.1kbits/s speed=1.75x    
[7/26/2021, 8:31:00 PM] [Camera FFmpeg] [Camera1] [info] frame=   51 fps=8.9 q=-1.0 size=     468kB time=00:00:09.80 bitrate= 390.9kbits/s speed= 1.7x    
[7/26/2021, 8:31:01 PM] [Camera FFmpeg] [Camera1] [info] frame=   53 fps=8.4 q=-1.0 size=     504kB time=00:00:10.20 bitrate= 405.1kbits/s speed=1.63x    
[7/26/2021, 8:31:01 PM] [Camera FFmpeg] [Camera1] [info] frame=   56 fps=8.2 q=-1.0 size=     539kB time=00:00:10.80 bitrate= 408.9kbits/s speed=1.59x    
[7/26/2021, 8:31:02 PM] [Camera FFmpeg] [Camera1] [info] frame=   59 fps=8.1 q=-1.0 size=     582kB time=00:00:11.40 bitrate= 418.5kbits/s speed=1.56x    
[7/26/2021, 8:31:02 PM] [Camera FFmpeg] [Camera1] [info] frame=   61 fps=7.8 q=-1.0 size=     658kB time=00:00:11.80 bitrate= 456.5kbits/s speed= 1.5x    
[7/26/2021, 8:31:03 PM] [Camera FFmpeg] [Camera1] [info] frame=   64 fps=7.6 q=-1.0 size=     681kB time=00:00:12.40 bitrate= 450.0kbits/s speed=1.48x    
[7/26/2021, 8:31:03 PM] [Camera FFmpeg] [Camera1] [info] frame=   67 fps=7.5 q=-1.0 size=     704kB time=00:00:13.00 bitrate= 443.8kbits/s speed=1.46x    
[7/26/2021, 8:31:04 PM] [Camera FFmpeg] [Camera1] [info] frame=   69 fps=7.3 q=-1.0 size=     725kB time=00:00:13.40 bitrate= 443.3kbits/s speed=1.42x    
[7/26/2021, 8:31:04 PM] [Camera FFmpeg] [Camera1] [info] frame=   72 fps=7.2 q=-1.0 size=     759kB time=00:00:13.99 bitrate= 444.1kbits/s speed=1.41x    
[7/26/2021, 8:31:05 PM] [Camera FFmpeg] [Camera1] [info] frame=   74 fps=7.1 q=-1.0 size=     781kB time=00:00:14.40 bitrate= 444.5kbits/s speed=1.37x    
[7/26/2021, 8:31:06 PM] [Camera FFmpeg] [Camera1] [info] frame=   77 fps=7.0 q=-1.0 size=     822kB time=00:00:15.00 bitrate= 448.7kbits/s speed=1.36x    
[7/26/2021, 8:31:06 PM] [Camera FFmpeg] [Camera1] [info] frame=   80 fps=6.9 q=-1.0 size=     857kB time=00:00:15.60 bitrate= 450.0kbits/s speed=1.35x    
[7/26/2021, 8:31:07 PM] [Camera FFmpeg] [Camera1] [info] frame=   82 fps=6.8 q=-1.0 size=     878kB time=00:00:16.00 bitrate= 449.6kbits/s speed=1.32x    
[7/26/2021, 8:31:07 PM] [Camera FFmpeg] [Camera1] [info] frame=   85 fps=6.7 q=-1.0 size=     913kB time=00:00:16.60 bitrate= 450.6kbits/s speed=1.32x    
[7/26/2021, 8:31:08 PM] [Camera FFmpeg] [Camera1] [info] frame=   88 fps=6.7 q=-1.0 size=     948kB time=00:00:17.20 bitrate= 451.5kbits/s speed=1.31x    
[7/26/2021, 8:31:08 PM] [Camera FFmpeg] [Camera1] [info] frame=   90 fps=6.6 q=-1.0 size=     970kB time=00:00:17.60 bitrate= 451.7kbits/s speed=1.29x    
[7/26/2021, 8:31:09 PM] [Camera FFmpeg] [Camera1] [info] frame=   93 fps=6.6 q=-1.0 size=    1038kB time=00:00:18.20 bitrate= 467.2kbits/s speed=1.29x    
[7/26/2021, 8:31:09 PM] [Camera FFmpeg] [Camera1] [info] frame=   95 fps=6.5 q=-1.0 size=    1041kB time=00:00:18.60 bitrate= 458.3kbits/s speed=1.27x    
[7/26/2021, 8:31:10 PM] [Camera FFmpeg] [Camera1] [info] frame=   98 fps=6.4 q=-1.0 size=    1046kB time=00:00:19.20 bitrate= 446.2kbits/s speed=1.26x    
[7/26/2021, 8:31:10 PM] [Camera FFmpeg] [Camera1] [info] frame=  101 fps=6.4 q=-1.0 size=    1056kB time=00:00:19.80 bitrate= 436.8kbits/s speed=1.26x    
[7/26/2021, 8:31:11 PM] [Camera FFmpeg] [Camera1] [info] frame=  103 fps=6.3 q=-1.0 size=    1067kB time=00:00:20.20 bitrate= 432.8kbits/s speed=1.24x    
[7/26/2021, 8:31:11 PM] [Camera FFmpeg] [Camera1] [info] frame=  106 fps=6.3 q=-1.0 size=    1079kB time=00:00:20.79 bitrate= 424.9kbits/s speed=1.24x    
[7/26/2021, 8:31:12 PM] [Camera FFmpeg] [Camera1] [info] frame=  109 fps=6.3 q=-1.0 size=    1089kB time=00:00:21.40 bitrate= 416.9kbits/s speed=1.24x    
[7/26/2021, 8:31:12 PM] [Camera FFmpeg] [Camera1] [info] frame=  111 fps=6.2 q=-1.0 size=    1095kB time=00:00:21.80 bitrate= 411.5kbits/s speed=1.22x    
[7/26/2021, 8:31:13 PM] [Camera FFmpeg] [Camera1] [info] frame=  114 fps=6.2 q=-1.0 size=    1103kB time=00:00:22.40 bitrate= 403.2kbits/s speed=1.22x    
[7/26/2021, 8:31:13 PM] [Camera FFmpeg] [Camera1] [info] frame=  116 fps=6.1 q=-1.0 size=    1108kB time=00:00:22.80 bitrate= 398.0kbits/s speed=1.21x    
[7/26/2021, 8:31:14 PM] [Camera FFmpeg] [Camera1] [info] frame=  119 fps=6.1 q=-1.0 size=    1116kB time=00:00:23.40 bitrate= 390.7kbits/s speed=1.21x    
[7/26/2021, 8:31:14 PM] [Camera FFmpeg] [Camera1] [info] frame=  122 fps=6.1 q=-1.0 size=    1190kB time=00:00:24.00 bitrate= 406.3kbits/s speed= 1.2x    
[7/26/2021, 8:31:15 PM] [Camera FFmpeg] [Camera1] [info] frame=  124 fps=6.1 q=-1.0 size=    1194kB time=00:00:24.40 bitrate= 400.9kbits/s speed=1.19x    
[7/26/2021, 8:31:16 PM] [Camera FFmpeg] [Camera1] [info] frame=  127 fps=6.1 q=-1.0 size=    1202kB time=00:00:25.00 bitrate= 393.8kbits/s speed=1.19x    
[7/26/2021, 8:31:16 PM] [Camera FFmpeg] [Camera1] [info] frame=  129 fps=6.0 q=-1.0 size=    1208kB time=00:00:25.40 bitrate= 389.6kbits/s speed=1.18x    
[7/26/2021, 8:31:17 PM] [Camera FFmpeg] [Camera1] [info] frame=  132 fps=6.0 q=-1.0 size=    1217kB time=00:00:26.00 bitrate= 383.6kbits/s speed=1.18x    
[7/26/2021, 8:31:17 PM] [Camera FFmpeg] [Camera1] [info] frame=  135 fps=6.0 q=-1.0 size=    1228kB time=00:00:26.60 bitrate= 378.2kbits/s speed=1.18x    
[7/26/2021, 8:31:18 PM] [Camera FFmpeg] [Camera1] [info] frame=  138 fps=6.0 q=-1.0 size=    1237kB time=00:00:27.20 bitrate= 372.4kbits/s speed=1.18x    
[7/26/2021, 8:31:18 PM] [Camera FFmpeg] [Camera1] [info] frame=  140 fps=5.9 q=-1.0 size=    1242kB time=00:00:27.60 bitrate= 368.5kbits/s speed=1.17x    
[7/26/2021, 8:31:19 PM] [Camera FFmpeg] [Camera1] [info] frame=  143 fps=5.9 q=-1.0 size=    1249kB time=00:00:28.20 bitrate= 362.9kbits/s speed=1.17x    
[7/26/2021, 8:31:19 PM] [Camera FFmpeg] [Camera1] Stopped video stream.
[7/26/2021, 8:31:19 PM] [Camera FFmpeg] [Camera1] FFmpeg exited with code: null and signal: SIGKILL (Expected)
```

**Homebridge Config:**

```json
{
                    "name": "Camera1",
                    "unbridge": true,
                    "videoConfig": {
                        "source": "-i rtsp://xxxxx:xxxxxxxx@192.168.1.30:554/chID=1",
                        "maxWidth": 720,
                        "maxHeight": 480,
                        "maxFPS": 30,
                        "preserveRatio": true,
                        "vcodec": "copy",
                        "packetSize": 188,
                        "debug": true
                    }
                },
```


**Environment:**

* **Node.js Version**: 14.17.3
* **NPM Version**: 6.14.13
* **Homebridge Version**: 1.3.4
* **Homebridge Camera FFmpeg Version**:3.1.2
* **Homebridge Config UI X Plugin Version**:4.41.1
* **Operating System**: Docker

