Issues with Reolink Stream
So I've got 3 SOLID days into this configuration... I cant get a clean stream from homebridge with this plug-in and I'm really confused as to why. I have tested the camera streams with both VLC and the reolink app on an iPhone xs with no issues. I can pull the feed on wifi with no problems. I have opened a port (just for testing) and port forwarded to the camera to test the reolink app on cellular and it works perfect. I'm using the sub stream 640x480 and it even has a real time bitrate meter showing somewhere in the 210-300kbps range (with audio). I have also confirmed through VLC that the stream is a H.264 Mpeg-10 stream. So I thought this should be an easy "Copy" application... wrong! So then I thought I would just setup a soft h264 setup... wrong!... so 3 days later I have some settings that work. But they're kinda crap. I think there is something wrong with the pushing the stream out of homebridge. 

My setup is on a Xeon E3-1260L, 16gb Ram, on SSD (which should be over kill for this) 1gb Ethernet connection.

To reproduce my issue I just need to get "away" from these settings (this is basicly all that will work for me):
"name": "Camera FFmpeg",
            "videoProcessor": "/home/ffmpeg/ffmpeg",
            "mqtt": "x.x.x.201",
            "portmqtt": 1883,
            "usermqtt": "<XXX>",
            "cameras": [
                {
                    "name": "Front",
                    "motion": true,
                    "switches": true,
                    "motionTimeout": 60,
                    "unbridge": true,
                    "videoConfig": {
                        "source": "-i rtmp://X.X.X.224/bcs/channel0_sub.bcs?channel=0&stream=2&user=<XXX>&password=<XXX> -map 0:0 -an -dn -flags -global_header",
                        "stillImageSource": "-i http://X.X.X.224/cgi-bin/api.cgi?cmd=Snap&channel=0&rs=wuuPhkmUCeI9WG7C&user=<XXX>&password=<XXX>",
                        "maxStreams": 8,
                        "maxWidth": 640,
                        "maxHeight": 360,
                        "maxFPS": 15,
                        "maxBitrate": 299,
                        "forceMax": true,
                        "vcodec": "libx264",
                        "packetSize": 940,
                        "videoFilter": "none",
                        "encoderOptions": "-crf 40 -preset ultrafast -tune fastdecode ",
                        "audio": false,
                        "debug": true
                    },
                    "mqtt": {
                        "motionTopic": "ai/Front/motion",
                        "motionMessage": "motion",
                        "motionResetTopic": "ai/Front/motioncancel",
                        "motionResetMessage": "cancel"
                    }
                }
            ],
            "platform": "Camera-ffmpeg"
        }

So I re-compiled my own ffmpeg just to see if it would help (as you can see in the config), this didnt make any difference. If i dont force the setting the quality is just terrible... Big blocks of digital trash, cars that just hang in the stream, sometimes it will start the stream but it dies after <10 seconds. The crazy thing is there not much to report in the logs... the systems starts streaming no matter what settings I put in the config. It just wont play on the phone (i've also tested with wifes iphone xs max and kids iphone 7). So the systems says that its sending the stream but the phone never start, just wheel of death.

This Log is based on the working settings:
[5/28/2021, 12:56:11 PM] [Camera FFmpeg] [Front] Resize command: /home/ffmpeg/ffmpeg -i pipe: -frames:v 1 -f image2 -
[5/28/2021, 12:56:13 PM] [Camera FFmpeg] [Front] Video stream requested: 1280 x 720, 30 fps, 299 kbps
[5/28/2021, 12:56:13 PM] [Camera FFmpeg] [Front] Starting video stream: 640 x 360, 15 fps, 299 kbps
[5/28/2021, 12:56:13 PM] [Camera FFmpeg] [Front] Stream command: /home/ffmpeg/ffmpeg -i rtmp://x.x.x.224/bcs/channel0_sub.bcs?channel=0&stream=2&user=<xxx>&password=<xxx> -map 0:0 -an -dn -flags -global_header -an -sn -dn -codec:v libx264 -pix_fmt yuv420p -color_range mpeg -r 15 -f rawvideo -crf 40 -preset ultrafast -tune fastdecode  -b:v 299k -payload_type 99 -ssrc 13013253 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params lw3rFJNPAjfhQBMeOIxGpTqIDm7zSS8Pb1/Uuar3 srtp://x.x.x.150:50157?rtcpport=50157&pkt_size=940 -loglevel level+verbose -progress pipe:1
[5/28/2021, 12:56:13 PM] [Camera FFmpeg] [Front] [info] ffmpeg version N-102611-g918fc9a0ed Copyright (c) 2000-2021 the FFmpeg developers
[5/28/2021, 12:56:13 PM] [Camera FFmpeg] [Front] [info]   built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
[5/28/2021, 12:56:13 PM] [Camera FFmpeg] [Front] [info]   configuration: --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libgsm --enable-postproc --enable-libxvid --enable-libfdk-aac --enable-pthreads --enable-libvorbis --enable-gpl --enable-nonfree
[5/28/2021, 12:56:13 PM] [Camera FFmpeg] [Front] [info]   libavutil      57.  0.100 / 57.  0.100
[5/28/2021, 12:56:13 PM] [Camera FFmpeg] [Front] [info]   libavcodec     59.  1.100 / 59.  1.100
[5/28/2021, 12:56:13 PM] [Camera FFmpeg] [Front] [info]   libavformat    59.  2.101 / 59.  2.101
[5/28/2021, 12:56:13 PM] [Camera FFmpeg] [Front] [info]   libavdevice    59.  0.100 / 59.  0.100
[5/28/2021, 12:56:13 PM] [Camera FFmpeg] [Front] [info]   libavfilter     8.  0.101 /  8.  0.101
[5/28/2021, 12:56:13 PM] [Camera FFmpeg] [Front] [info]   libswscale      6.  0.100 /  6.  0.100
[5/28/2021, 12:56:13 PM] [Camera FFmpeg] [Front] [info]   libswresample   4.  0.100 /  4.  0.100
[5/28/2021, 12:56:13 PM] [Camera FFmpeg] [Front] [info]   libpostproc    56.  0.100 / 56.  0.100
[5/28/2021, 12:56:13 PM] [Camera FFmpeg] [Front] [tcp @ 0x56034fd117c0] [verbose] Starting connection attempt to x.x.x.224 port 1935
[5/28/2021, 12:56:13 PM] [Camera FFmpeg] [Front] [tcp @ 0x56034fd117c0] [verbose] Successfully connected to x.x.x.224 port 1935
[5/28/2021, 12:56:16 PM] [Camera FFmpeg] [Front] [h264 @ 0x56034fd13d80] [verbose] Reinit context to 640x480, pix_fmt: yuv420p
[5/28/2021, 12:56:19 PM] [Camera FFmpeg] [Front] [info] Input #0, flv, from 'rtmp://x.x.x.224/bcs/channel0_sub.bcs?channel=0&stream=2&user=<xxx>&password=<xxx>':
[5/28/2021, 12:56:19 PM] [Camera FFmpeg] [Front] [info]   Metadata:
[5/28/2021, 12:56:19 PM] [Camera FFmpeg] [Front] [info]     |RtmpSampleAccess: true
[5/28/2021, 12:56:19 PM] [Camera FFmpeg] [Front] [info]     displayWidth    : 640
[5/28/2021, 12:56:19 PM] [Camera FFmpeg] [Front] [info]     displayHeight   : 480
[5/28/2021, 12:56:19 PM] [Camera FFmpeg] [Front] [info]   Duration: 00:00:00.00, start: 85542.215000, bitrate: N/A
[5/28/2021, 12:56:19 PM] [Camera FFmpeg] [Front] [info]   Stream #0:0: Video: h264 (High), 1 reference frame, yuv420p(progressive), 640x480, 14 fps, 30 tbr, 1k tbn
[5/28/2021, 12:56:19 PM] [Camera FFmpeg] [Front] [info]   Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp
[5/28/2021, 12:56:19 PM] [Camera FFmpeg] [Front] [info] Stream mapping:
[5/28/2021, 12:56:19 PM] [Camera FFmpeg] [Front] [info]   Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
[5/28/2021, 12:56:19 PM] [Camera FFmpeg] [Front] [info] Press [q] to stop, [?] for help
[5/28/2021, 12:56:19 PM] [Camera FFmpeg] [Front] [h264 @ 0x56034fd3fa00] [verbose] Reinit context to 640x480, pix_fmt: yuv420p
[5/28/2021, 12:56:19 PM] [Camera FFmpeg] [Front] [graph 0 input from stream 0:0 @ 0x56034fd3c880] [verbose] w:640 h:480 pixfmt:yuv420p tb:1/1000 fr:30/1 sar:0/1
[5/28/2021, 12:56:19 PM] [Camera FFmpeg] [Front] [libx264 @ 0x56034fd35d00] [info] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[5/28/2021, 12:56:19 PM] [Camera FFmpeg] [Front] [libx264 @ 0x56034fd35d00] [info] profile Constrained Baseline, level 2.2
[5/28/2021, 12:56:19 PM] [Camera FFmpeg] [Front] [info] Output #0, rtp, to 'srtp://x.x.x.150:50157?rtcpport=50157&pkt_size=940':
[5/28/2021, 12:56:19 PM] [Camera FFmpeg] [Front] [info]   Metadata:
[5/28/2021, 12:56:19 PM] [Camera FFmpeg] [Front] [info]     |RtmpSampleAccess: true
[5/28/2021, 12:56:19 PM] [Camera FFmpeg] [Front] [info]     displayWidth    : 640
[5/28/2021, 12:56:19 PM] [Camera FFmpeg] [Front] [info]     displayHeight   : 480
[5/28/2021, 12:56:19 PM] [Camera FFmpeg] [Front] [info]     encoder         : Lavf59.2.101
[5/28/2021, 12:56:19 PM] [Camera FFmpeg] [Front] [info]   Stream #0:0: Video: h264, 1 reference frame, yuv420p(tv, progressive), 640x480 (0x0), q=2-31, 299 kb/s, 15 fps, 90k tbn
[5/28/2021, 12:56:19 PM] [Camera FFmpeg] [Front] [info]     Metadata:
[5/28/2021, 12:56:19 PM] [Camera FFmpeg] [Front] [info]       encoder         : Lavc59.1.100 libx264
[5/28/2021, 12:56:19 PM] [Camera FFmpeg] [Front] [info]     Side data:
[5/28/2021, 12:56:19 PM] [Camera FFmpeg] [Front] [info]       cpb: bitrate max/min/avg: 0/0/299000 buffer size: 0 vbv_delay: N/A
[5/28/2021, 12:56:19 PM] [Camera FFmpeg] [Front] [info] frame=    1 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
[5/28/2021, 12:56:19 PM] [Camera FFmpeg] [Front] Getting the first frames took 5.749 seconds.
[5/28/2021, 12:56:20 PM] [Camera FFmpeg] [Front] [info] frame=   46 fps=0.0 q=31.0 size=      82kB time=00:00:02.53 bitrate= 266.4kbits/s speed=4.77x    
[5/28/2021, 12:56:20 PM] [Camera FFmpeg] [Front] [info] frame=   54 fps= 51 q=30.0 size=      86kB time=00:00:03.06 bitrate= 230.4kbits/s speed=2.88x    
[5/28/2021, 12:56:21 PM] [Camera FFmpeg] [Front] [info] frame=   62 fps= 39 q=30.0 size=      89kB time=00:00:03.60 bitrate= 203.0kbits/s speed=2.26x    
[5/28/2021, 12:56:21 PM] [Camera FFmpeg] [Front] [info] frame=   70 fps= 33 q=33.0 size=      94kB time=00:00:04.13 bitrate= 185.9kbits/s speed=1.95x    
[5/28/2021, 12:56:22 PM] [Camera FFmpeg] [Front] [info] frame=   78 fps= 29 q=34.0 size=     110kB time=00:00:04.66 bitrate= 192.3kbits/s speed=1.76x    
[5/28/2021, 12:56:22 PM] [Camera FFmpeg] [Front] [info] frame=   86 fps= 27 q=36.0 size=     115kB time=00:00:05.20 bitrate= 181.0kbits/s speed=1.63x    
[5/28/2021, 12:56:23 PM] [Camera FFmpeg] [Front] [info] frame=   94 fps= 25 q=34.0 size=     121kB time=00:00:05.73 bitrate= 172.7kbits/s speed=1.54x    
[5/28/2021, 12:56:23 PM] [Camera FFmpeg] [Front] [info] frame=  102 fps= 24 q=34.0 size=     128kB time=00:00:06.26 bitrate= 166.8kbits/s speed=1.47x    
[5/28/2021, 12:56:24 PM] [Camera FFmpeg] [Front] [info] frame=  110 fps= 23 q=33.0 size=     134kB time=00:00:06.80 bitrate= 161.4kbits/s speed=1.42x    
[5/28/2021, 12:56:24 PM] [Camera FFmpeg] [Front] [info] frame=  118 fps= 22 q=33.0 size=     140kB time=00:00:07.33 bitrate= 155.9kbits/s speed=1.37x    
[5/28/2021, 12:56:25 PM] [Camera FFmpeg] [Front] [info] frame=  126 fps= 21 q=36.0 size=     146kB time=00:00:07.86 bitrate= 151.6kbits/s speed=1.34x    
[5/28/2021, 12:56:25 PM] [Camera FFmpeg] [Front] [info] frame=  134 fps= 21 q=34.0 size=     154kB time=00:00:08.40 bitrate= 149.9kbits/s speed=1.32x    
[5/28/2021, 12:56:26 PM] [Camera FFmpeg] [Front] [info] frame=  142 fps= 20 q=33.0 size=     172kB time=00:00:08.93 bitrate= 157.6kbits/s speed=1.29x    
[5/28/2021, 12:56:27 PM] [Camera FFmpeg] [Front] [info] frame=  151 fps= 20 q=30.0 size=     185kB time=00:00:09.53 bitrate= 159.2kbits/s speed=1.27x    
[5/28/2021, 12:56:27 PM] [Camera FFmpeg] [Front] [info] frame=  159 fps= 20 q=30.0 size=     196kB time=00:00:10.06 bitrate= 159.2kbits/s speed=1.25x    
[5/28/2021, 12:56:28 PM] [Camera FFmpeg] [Front] [info] frame=  167 fps= 19 q=33.0 size=     201kB time=00:00:10.60 bitrate= 155.2kbits/s speed=1.23x    
[5/28/2021, 12:56:28 PM] [Camera FFmpeg] [Front] [info] frame=  175 fps= 19 q=32.0 size=     205kB time=00:00:11.13 bitrate= 151.1kbits/s speed=1.22x    
[5/28/2021, 12:56:29 PM] [Camera FFmpeg] [Front] [info] frame=  183 fps= 19 q=39.0 size=     209kB time=00:00:11.66 bitrate= 147.1kbits/s speed=1.21x    
[5/28/2021, 12:56:29 PM] [Camera FFmpeg] [Front] [info] frame=  191 fps= 19 q=31.0 size=     217kB time=00:00:12.20 bitrate= 145.4kbits/s speed= 1.2x    
[5/28/2021, 12:56:30 PM] [Camera FFmpeg] [Front] [info] frame=  199 fps= 19 q=30.0 size=     240kB time=00:00:12.73 bitrate= 154.3kbits/s speed=1.19x    
[5/28/2021, 12:56:30 PM] [Camera FFmpeg] [Front] [info] frame=  207 fps= 18 q=31.0 size=     243kB time=00:00:13.26 bitrate= 150.0kbits/s speed=1.18x    
[5/28/2021, 12:56:31 PM] [Camera FFmpeg] [Front] [info] frame=  215 fps= 18 q=31.0 size=     247kB time=00:00:13.80 bitrate= 146.5kbits/s speed=1.17x    
[5/28/2021, 12:56:31 PM] [Camera FFmpeg] [Front] [info] frame=  223 fps= 18 q=31.0 size=     251kB time=00:00:14.33 bitrate= 143.3kbits/s speed=1.16x    
[5/28/2021, 12:56:32 PM] [Camera FFmpeg] [Front] [info] frame=  231 fps= 18 q=31.0 size=     254kB time=00:00:14.86 bitrate= 140.1kbits/s speed=1.16x    
[5/28/2021, 12:56:32 PM] [Camera FFmpeg] [Front] [info] frame=  238 fps= 18 q=31.0 size=     257kB time=00:00:15.33 bitrate= 137.3kbits/s speed=1.15x    
[5/28/2021, 12:56:33 PM] [Camera FFmpeg] [Front] [info] frame=  247 fps= 18 q=33.0 size=     261kB time=00:00:15.93 bitrate= 134.1kbits/s speed=1.14x    
[5/28/2021, 12:56:34 PM] [Camera FFmpeg] [Front] [info] frame=  256 fps= 18 q=38.0 size=     280kB time=00:00:16.53 bitrate= 138.5kbits/s speed=1.14x    
[5/28/2021, 12:56:34 PM] [Camera FFmpeg] [Front] [info] frame=  264 fps= 18 q=31.0 size=     341kB time=00:00:17.06 bitrate= 163.8kbits/s speed=1.13x    
[5/28/2021, 12:56:35 PM] [Camera FFmpeg] [Front] [info] frame=  272 fps= 17 q=32.0 size=     345kB time=00:00:17.60 bitrate= 160.7kbits/s speed=1.13x    
[5/28/2021, 12:56:35 PM] [Camera FFmpeg] [Front] [info] frame=  280 fps= 17 q=30.0 size=     349kB time=00:00:18.13 bitrate= 157.5kbits/s speed=1.13x    
[5/28/2021, 12:56:36 PM] [Camera FFmpeg] [Front] [info] frame=  288 fps= 17 q=29.0 size=     353kB time=00:00:18.66 bitrate= 154.8kbits/s speed=1.12x    
[5/28/2021, 12:56:36 PM] [Camera FFmpeg] [Front] [info] frame=  296 fps= 17 q=31.0 size=     358kB time=00:00:19.20 bitrate= 152.9kbits/s speed=1.12x    
[5/28/2021, 12:56:37 PM] [Camera FFmpeg] [Front] [info] frame=  304 fps= 17 q=37.0 size=     362kB time=00:00:19.73 bitrate= 150.3kbits/s speed=1.11x    
[5/28/2021, 12:56:37 PM] [Camera FFmpeg] [Front] [info] frame=  312 fps= 17 q=29.0 size=     386kB time=00:00:20.26 bitrate= 156.1kbits/s speed=1.11x    
[5/28/2021, 12:56:38 PM] [Camera FFmpeg] [Front] [info] frame=  320 fps= 17 q=28.0 size=     403kB time=00:00:20.80 bitrate= 158.6kbits/s speed=1.11x    
[5/28/2021, 12:56:38 PM] [Camera FFmpeg] [Front] [info] frame=  328 fps= 17 q=28.0 size=     414kB time=00:00:21.33 bitrate= 159.0kbits/s speed= 1.1x    
[5/28/2021, 12:56:39 PM] [Camera FFmpeg] [Front] [info] frame=  336 fps= 17 q=28.0 size=     416kB time=00:00:21.86 bitrate= 155.7kbits/s speed= 1.1x    
[5/28/2021, 12:56:40 PM] [Camera FFmpeg] [Front] [info] frame=  344 fps= 17 q=29.0 size=     417kB time=00:00:22.40 bitrate= 152.5kbits/s speed= 1.1x    
[5/28/2021, 12:56:40 PM] [Camera FFmpeg] [Front] [info] frame=  352 fps= 17 q=30.0 size=     419kB time=00:00:22.93 bitrate= 149.6kbits/s speed= 1.1x    
[5/28/2021, 12:56:41 PM] [Camera FFmpeg] [Front] [info] frame=  361 fps= 17 q=29.0 size=     422kB time=00:00:23.53 bitrate= 146.9kbits/s speed=1.09x    
[5/28/2021, 12:56:41 PM] [Camera FFmpeg] [Front] [info] frame=  369 fps= 17 q=29.0 size=     423kB time=00:00:24.06 bitrate= 144.0kbits/s speed=1.09x    
[5/28/2021, 12:56:42 PM] [Camera FFmpeg] [Front] [info] frame=  377 fps= 17 q=28.0 size=     457kB time=00:00:24.60 bitrate= 152.1kbits/s speed=1.09x    
[5/28/2021, 12:56:42 PM] [Camera FFmpeg] [Front] [info] frame=  385 fps= 17 q=28.0 size=     458kB time=00:00:25.13 bitrate= 149.3kbits/s speed=1.09x    
[5/28/2021, 12:56:43 PM] [Camera FFmpeg] [Front] [info] frame=  393 fps= 17 q=28.0 size=     459kB time=00:00:25.66 bitrate= 146.6kbits/s speed=1.09x    
[5/28/2021, 12:56:43 PM] [Camera FFmpeg] [Front] [info] frame=  401 fps= 17 q=28.0 size=     460kB time=00:00:26.20 bitrate= 144.0kbits/s speed=1.08x    
[5/28/2021, 12:56:44 PM] [Camera FFmpeg] [Front] [info] frame=  409 fps= 17 q=28.0 size=     461kB time=00:00:26.73 bitrate= 141.4kbits/s speed=1.08x    
[5/28/2021, 12:56:44 PM] [Camera FFmpeg] [Front] [info] frame=  417 fps= 17 q=28.0 size=     463kB time=00:00:27.26 bitrate= 139.0kbits/s speed=1.08x    
[5/28/2021, 12:56:45 PM] [Camera FFmpeg] [Front] [info] frame=  425 fps= 16 q=34.0 size=     464kB time=00:00:27.80 bitrate= 136.7kbits/s speed=1.08x    
[5/28/2021, 12:56:45 PM] [Camera FFmpeg] [Front] [info] frame=  433 fps= 16 q=28.0 size=     473kB time=00:00:28.33 bitrate= 136.8kbits/s speed=1.08x    
[5/28/2021, 12:56:46 PM] [Camera FFmpeg] [Front] [info] frame=  441 fps= 16 q=28.0 size=     487kB time=00:00:28.86 bitrate= 138.3kbits/s speed=1.08x    
[5/28/2021, 12:56:47 PM] [Camera FFmpeg] [Front] [info] frame=  449 fps= 16 q=28.0 size=     488kB time=00:00:29.40 bitrate= 136.0kbits/s speed=1.07x    
[5/28/2021, 12:56:47 PM] [Camera FFmpeg] [Front] [info] frame=  457 fps= 16 q=28.0 size=     489kB time=00:00:29.93 bitrate= 133.8kbits/s speed=1.07x    
[5/28/2021, 12:56:48 PM] [Camera FFmpeg] [Front] [info] frame=  466 fps= 16 q=28.0 size=     490kB time=00:00:30.53 bitrate= 131.5kbits/s speed=1.07x    
[5/28/2021, 12:56:48 PM] [Camera FFmpeg] [Front] [info] frame=  474 fps= 16 q=28.0 size=     491kB time=00:00:31.06 bitrate= 129.5kbits/s speed=1.07x    
[5/28/2021, 12:56:49 PM] [Camera FFmpeg] [Front] [info] frame=  482 fps= 16 q=28.0 size=     492kB time=00:00:31.60 bitrate= 127.5kbits/s speed=1.07x    
[5/28/2021, 12:56:49 PM] [Camera FFmpeg] [Front] [info] frame=  490 fps= 16 q=28.0 size=     493kB time=00:00:32.13 bitrate= 125.6kbits/s speed=1.07x    
[5/28/2021, 12:56:50 PM] [Camera FFmpeg] [Front] [info] frame=  498 fps= 16 q=28.0 size=     513kB time=00:00:32.66 bitrate= 128.7kbits/s speed=1.07x    
[5/28/2021, 12:56:50 PM] [Camera FFmpeg] [Front] [info] frame=  506 fps= 16 q=37.0 size=     514kB time=00:00:33.20 bitrate= 126.8kbits/s speed=1.06x    
[5/28/2021, 12:56:51 PM] [Camera FFmpeg] [Front] [info] frame=  514 fps= 16 q=28.0 size=     606kB time=00:00:33.73 bitrate= 147.1kbits/s speed=1.06x    
[5/28/2021, 12:56:51 PM] [Camera FFmpeg] [Front] [info] frame=  522 fps= 16 q=28.0 size=     606kB time=00:00:34.26 bitrate= 144.9kbits/s speed=1.06x    
[5/28/2021, 12:56:52 PM] [Camera FFmpeg] [Front] [info] frame=  530 fps= 16 q=28.0 size=     607kB time=00:00:34.80 bitrate= 142.8kbits/s speed=1.06x    
[5/28/2021, 12:56:52 PM] [Camera FFmpeg] [Front] [info] frame=  538 fps= 16 q=27.0 size=     607kB time=00:00:35.33 bitrate= 140.7kbits/s speed=1.06x    
[5/28/2021, 12:56:53 PM] [Camera FFmpeg] [Front] [info] frame=  546 fps= 16 q=33.0 size=     607kB time=00:00:35.86 bitrate= 138.7kbits/s speed=1.06x    
[5/28/2021, 12:56:53 PM] [Camera FFmpeg] [Front] [info] frame=  554 fps= 16 q=29.0 size=     618kB time=00:00:36.40 bitrate= 139.1kbits/s speed=1.06x    
[5/28/2021, 12:56:54 PM] [Camera FFmpeg] [Front] [info] frame=  562 fps= 16 q=29.0 size=     635kB time=00:00:36.93 bitrate= 140.9kbits/s speed=1.06x    
[5/28/2021, 12:56:55 PM] [Camera FFmpeg] [Front] [info] frame=  570 fps= 16 q=29.0 size=     637kB time=00:00:37.46 bitrate= 139.2kbits/s speed=1.06x    
[5/28/2021, 12:56:55 PM] [Camera FFmpeg] [Front] [info] frame=  578 fps= 16 q=28.0 size=     638kB time=00:00:38.00 bitrate= 137.4kbits/s speed=1.06x    
[5/28/2021, 12:56:56 PM] [Camera FFmpeg] [Front] [info] frame=  586 fps= 16 q=28.0 size=     641kB time=00:00:38.53 bitrate= 136.2kbits/s speed=1.06x    
[5/28/2021, 12:56:56 PM] [Camera FFmpeg] [Front] [info] frame=  594 fps= 16 q=29.0 size=     642kB time=00:00:39.06 bitrate= 134.6kbits/s speed=1.05x    
[5/28/2021, 12:56:57 PM] [Camera FFmpeg] [Front] [info] frame=  602 fps= 16 q=28.0 size=     643kB time=00:00:39.60 bitrate= 133.1kbits/s speed=1.05x    
[5/28/2021, 12:56:57 PM] [Camera FFmpeg] [Front] [info] frame=  610 fps= 16 q=29.0 size=     645kB time=00:00:40.13 bitrate= 131.6kbits/s speed=1.05x    
[5/28/2021, 12:56:58 PM] [Camera FFmpeg] [Front] [info] frame=  618 fps= 16 q=28.0 size=     665kB time=00:00:40.66 bitrate= 134.0kbits/s speed=1.05x    
[5/28/2021, 12:56:58 PM] [Camera FFmpeg] [Front] [info] frame=  626 fps= 16 q=29.0 size=     667kB time=00:00:41.20 bitrate= 132.6kbits/s speed=1.05x    
[5/28/2021, 12:56:59 PM] [Camera FFmpeg] [Front] [info] frame=  634 fps= 16 q=29.0 size=     669kB time=00:00:41.73 bitrate= 131.3kbits/s speed=1.05x    
[5/28/2021, 12:56:59 PM] [Camera FFmpeg] [Front] [info] frame=  642 fps= 16 q=28.0 size=     670kB time=00:00:42.26 bitrate= 129.9kbits/s speed=1.05x    
[5/28/2021, 12:57:00 PM] [Camera FFmpeg] [Front] [info] frame=  650 fps= 16 q=28.0 size=     672kB time=00:00:42.80 bitrate= 128.5kbits/s speed=1.05x    
[5/28/2021, 12:57:00 PM] [Camera FFmpeg] [Front] [info] frame=  658 fps= 16 q=28.0 size=     673kB time=00:00:43.33 bitrate= 127.2kbits/s speed=1.05x    
[5/28/2021, 12:57:01 PM] [Camera FFmpeg] [Front] [info] frame=  666 fps= 16 q=33.0 size=     674kB time=00:00:43.86 bitrate= 125.9kbits/s speed=1.05x    
[5/28/2021, 12:57:01 PM] [Camera FFmpeg] [Front] Stopped video stream.
[5/28/2021, 12:57:01 PM] [Camera FFmpeg] [Front] FFmpeg exited with code: null and signal: SIGKILL (Expected)

** This also takes about 15-20 seconds to start streaming video, but it works and can be watched for extended time

This is with "copy" turned on:
[5/28/2021, 1:48:56 PM] [Camera FFmpeg] [Front] Video stream requested: 1280 x 720, 30 fps, 299 kbps
[5/28/2021, 1:48:56 PM] [Camera FFmpeg] [Front] Starting video stream: native x native, native fps, ??? kbps
[5/28/2021, 1:48:56 PM] [Camera FFmpeg] [Front] Stream command: /home/ffmpeg/ffmpeg -i rtmp://x.x.x.224/bcs/channel0_sub.bcs?channel=0&stream=2&user=<xxx>&password=<xxx> -map 0:0 -an -dn -flags -global_header -an -sn -dn -codec:v copy -pix_fmt yuv420p -color_range mpeg -f rawvideo -crf 40 -preset ultrafast -tune fastdecode  -payload_type 99 -ssrc 1808113 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params H1ZoaxrqZFMrBh7HCj+ouKcmPbwvUWXlFBQfpcU5 srtp://x.x.x.150:53884?rtcpport=53884&pkt_size=940 -loglevel level+verbose -progress pipe:1
[5/28/2021, 1:48:56 PM] [Camera FFmpeg] [Front] [info] ffmpeg version N-102611-g918fc9a0ed Copyright (c) 2000-2021 the FFmpeg developers
[5/28/2021, 1:48:56 PM] [Camera FFmpeg] [Front] [info]   built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
[5/28/2021, 1:48:56 PM] [Camera FFmpeg] [Front] [info]   configuration: --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libgsm --enable-postproc --enable-libxvid --enable-libfdk-aac --enable-pthreads --enable-libvorbis --enable-gpl --enable-nonfree
[5/28/2021, 1:48:56 PM] [Camera FFmpeg] [Front] [info]   libavutil      57.  0.100 / 57.  0.100
[5/28/2021, 1:48:56 PM] [Camera FFmpeg] [Front] [info]   libavcodec     59.  1.100 / 59.  1.100
[5/28/2021, 1:48:56 PM] [Camera FFmpeg] [Front] [info]   libavformat    59.  2.101 / 59.  2.101
[5/28/2021, 1:48:56 PM] [Camera FFmpeg] [Front] [info]   libavdevice    59.  0.100 / 59.  0.100
[5/28/2021, 1:48:56 PM] [Camera FFmpeg] [Front] [info]   libavfilter     8.  0.101 /  8.  0.101
[5/28/2021, 1:48:56 PM] [Camera FFmpeg] [Front] [info]   libswscale      6.  0.100 /  6.  0.100
[5/28/2021, 1:48:56 PM] [Camera FFmpeg] [Front] [info]   libswresample   4.  0.100 /  4.  0.100
[5/28/2021, 1:48:56 PM] [Camera FFmpeg] [Front] [info]   libpostproc    56.  0.100 / 56.  0.100
[5/28/2021, 1:48:56 PM] [Camera FFmpeg] [Front] [tcp @ 0x55f772d37680] [verbose] Starting connection attempt to x.x.x.224 port 1935
[5/28/2021, 1:48:56 PM] [Camera FFmpeg] [Front] [tcp @ 0x55f772d37680] [verbose] Successfully connected to x.x.x.224 port 1935
[5/28/2021, 1:48:59 PM] [Camera FFmpeg] [Front] [h264 @ 0x55f772d39c40] [verbose] Reinit context to 640x480, pix_fmt: yuv420p
[5/28/2021, 1:49:02 PM] [Camera FFmpeg] [Front] [info] Input #0, flv, from 'rtmp://x.x.x.224/bcs/channel0_sub.bcs?channel=0&stream=2&user=<xxx>&password=<xxx>':
[5/28/2021, 1:49:02 PM] [Camera FFmpeg] [Front] [info]   Metadata:
[5/28/2021, 1:49:02 PM] [Camera FFmpeg] [Front] [info]     |RtmpSampleAccess: true
[5/28/2021, 1:49:02 PM] [Camera FFmpeg] [Front] [info]     displayWidth    : 640
[5/28/2021, 1:49:02 PM] [Camera FFmpeg] [Front] [info]     displayHeight   : 480
[5/28/2021, 1:49:02 PM] [Camera FFmpeg] [Front] [info]   Duration: 00:00:00.00, start: 88705.318000, bitrate: N/A
[5/28/2021, 1:49:02 PM] [Camera FFmpeg] [Front] [info]   Stream #0:0: Video: h264 (High), 1 reference frame, yuv420p(progressive), 640x480, 14 fps, 30 tbr, 1k tbn
[5/28/2021, 1:49:02 PM] [Camera FFmpeg] [Front] [info]   Stream #0:1: Audio: aac (LC), 16000 Hz, mono, fltp
[5/28/2021, 1:49:02 PM] [Camera FFmpeg] [Front] [info] Output #0, rtp, to 'srtp://x.x.x.150:53884?rtcpport=53884&pkt_size=940':
[5/28/2021, 1:49:02 PM] [Camera FFmpeg] [Front] [info]   Metadata:
[5/28/2021, 1:49:02 PM] [Camera FFmpeg] [Front] [info]     |RtmpSampleAccess: true
[5/28/2021, 1:49:02 PM] [Camera FFmpeg] [Front] [info]     displayWidth    : 640
[5/28/2021, 1:49:02 PM] [Camera FFmpeg] [Front] [info]     displayHeight   : 480
[5/28/2021, 1:49:02 PM] [Camera FFmpeg] [Front] [info]     encoder         : Lavf59.2.101
[5/28/2021, 1:49:02 PM] [Camera FFmpeg] [Front] [info]   Stream #0:0: Video: h264 (High), 1 reference frame, yuv420p(tv, progressive), 640x480 (0x0), q=2-31, 14 fps, 30 tbr, 90k tbn
[5/28/2021, 1:49:02 PM] [Camera FFmpeg] [Front] [info] Stream mapping:
[5/28/2021, 1:49:02 PM] [Camera FFmpeg] [Front] [info]   Stream #0:0 -> #0:0 (copy)
[5/28/2021, 1:49:02 PM] [Camera FFmpeg] [Front] [info] Press [q] to stop, [?] for help
[5/28/2021, 1:49:02 PM] [Camera FFmpeg] [Front] [info] frame=    1 fps=0.0 q=-1.0 size=      78kB time=00:00:00.00 bitrate=58444363.6kbits/s speed=N/A    
[5/28/2021, 1:49:02 PM] [Camera FFmpeg] [Front] Getting the first frames took 6.178 seconds.
[5/28/2021, 1:49:03 PM] [Camera FFmpeg] [Front] [info] frame=   50 fps=0.0 q=-1.0 size=      81kB time=00:00:03.26 bitrate= 203.5kbits/s speed=5.91x    
[5/28/2021, 1:49:03 PM] [Camera FFmpeg] [Front] [info] frame=   58 fps= 54 q=-1.0 size=      81kB time=00:00:03.79 bitrate= 175.5kbits/s speed=3.52x    
[5/28/2021, 1:49:04 PM] [Camera FFmpeg] [Front] [info] frame=   66 fps= 41 q=-1.0 size=     141kB time=00:00:04.33 bitrate= 266.4kbits/s speed= 2.7x    
[5/28/2021, 1:49:04 PM] [Camera FFmpeg] [Front] [info] frame=   74 fps= 35 q=-1.0 size=     144kB time=00:00:04.86 bitrate= 241.9kbits/s speed=2.27x    
[5/28/2021, 1:49:05 PM] [Camera FFmpeg] [Front] [info] frame=   82 fps= 31 q=-1.0 size=     149kB time=00:00:05.39 bitrate= 226.7kbits/s speed=2.02x    
[5/28/2021, 1:49:05 PM] [Camera FFmpeg] [Front] [info] frame=   90 fps= 28 q=-1.0 size=     153kB time=00:00:05.93 bitrate= 211.6kbits/s speed=1.84x    
[5/28/2021, 1:49:06 PM] [Camera FFmpeg] [Front] [info] frame=   98 fps= 26 q=-1.0 size=     156kB time=00:00:06.46 bitrate= 197.3kbits/s speed=1.73x    
[5/28/2021, 1:49:06 PM] [Camera FFmpeg] [Front] [info] frame=  106 fps= 25 q=-1.0 size=     158kB time=00:00:06.99 bitrate= 184.6kbits/s speed=1.63x    
[5/28/2021, 1:49:07 PM] [Camera FFmpeg] [Front] [info] frame=  114 fps= 24 q=-1.0 size=     160kB time=00:00:07.53 bitrate= 173.6kbits/s speed=1.57x    
[5/28/2021, 1:49:08 PM] [Camera FFmpeg] [Front] [info] frame=  122 fps= 23 q=-1.0 size=     241kB time=00:00:08.06 bitrate= 244.6kbits/s speed= 1.5x    
[5/28/2021, 1:49:08 PM] [Camera FFmpeg] [Front] [info] frame=  131 fps= 22 q=-1.0 size=     242kB time=00:00:08.66 bitrate= 228.3kbits/s speed=1.46x    
[5/28/2021, 1:49:09 PM] [Camera FFmpeg] [Front] [info] frame=  139 fps= 22 q=-1.0 size=     242kB time=00:00:09.19 bitrate= 215.6kbits/s speed=1.43x    
[5/28/2021, 1:49:09 PM] [Camera FFmpeg] [Front] [info] frame=  146 fps= 21 q=-1.0 size=     242kB time=00:00:09.66 bitrate= 205.5kbits/s speed=1.39x    
[5/28/2021, 1:49:10 PM] [Camera FFmpeg] [Front] [info] frame=  155 fps= 21 q=-1.0 size=     243kB time=00:00:10.26 bitrate= 193.9kbits/s speed=1.36x    
[5/28/2021, 1:49:10 PM] [Camera FFmpeg] [Front] [info] frame=  163 fps= 20 q=-1.0 size=     243kB time=00:00:10.79 bitrate= 184.6kbits/s speed=1.34x    
[5/28/2021, 1:49:10 PM] [Camera FFmpeg] [Front] Stopped video stream.
[5/28/2021, 1:49:10 PM] [Camera FFmpeg] [Front] FFmpeg exited with code: null and signal: SIGKILL (Expected)

Like i said the plug-in appears to be working, but I never get the stream on the phone side. This is the same for anything i put in the settings. If I put a 1280x720 @ 30 setting in, it will start the stream but wont play on the phone side. If i take away the force settings it will play "sometimes", but it looks horible and it wont update the screen at all. I've run through the network setup in the house with a fine tooth comb, adding QOS for the stream removing devices to see if the wifi it getting delayed... nothing has worked. This was my final ditch effort to see if I'm just not using the application correctly or if there was a piece i was missing. I have two homepods in the house (even tried switching the primary with no luck) the one I'm testing with here is basically right under my wifi. Everything in the house is ubiquiti (switch, router, wifi) with fiber uplinks to a 200/15 internet connection. But even if I had an issue on the internet side the wifi should still work. So am I missing something with these phones? a setting or does the stream really need to be tiny to get it to work?

Just for extra information I have tried both the ext scream and the main stream with h264 encoding just to see if it was a stream issue. I even pulled up reolinks software and 4 versions of VLC to see if I could pull the camera down with that many streams running... and no was the answer. If this is the stream I have to deal with i guess its ok... but can I make it come up any faster?

I'm not sure which homebridge logs you need... the above is contained in there... there are no errors... please explain.

**Environment:**

* **Node.js Version**: 14.17.0
* **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**: Ubuntu Server 20.04
