Camera is not responding
Hello,

**Describe The Problem:**

I have installed iPCamera - High-End NetworkCam on Iphone6. I'm also using Homebridge on Raspberry Pi Zero.
The problem, snapshot ok but Live camera is not responding. It only displayed the spinning loading icon.
Please help.

**To Reproduce:**
Open Home app, Click on the IP Camera. 
 
**Logs:**

```
[17/01/2022, 21:45:05] [Camera FFmpeg] [Aki Camera] Snapshot requested: 1280 x 720
[17/01/2022, 21:45:05] [Camera FFmpeg] [Aki Camera] Snapshot command: /usr/local/lib/node_modules/homebridge-camera-ffmpeg/node_modules/ffmpeg-for-homebridge/ffmpeg -i http://192.168.0.229/live -frames:v 1 -f image2 - -hide_banner -loglevel error
[17/01/2022, 21:45:05] [Camera FFmpeg] [Aki Camera] Fetching snapshot took 0.284 seconds.
[17/01/2022, 21:45:05] [Camera FFmpeg] [Aki Camera] Sending snapshot: 1280 x 720
[17/01/2022, 21:45:05] [Camera FFmpeg] [Aki Camera] Resize command: /usr/local/lib/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 -
[17/01/2022, 21:45:12] [Camera FFmpeg] [Aki Camera] Video stream requested: 1280 x 720, 30 fps, 299 kbps
[17/01/2022, 21:45:12] [Camera FFmpeg] [Aki Camera] Starting video stream: native x native, native fps, ??? kbps
[17/01/2022, 21:45:12] [Camera FFmpeg] [Aki Camera] Stream command: /usr/local/lib/node_modules/homebridge-camera-ffmpeg/node_modules/ffmpeg-for-homebridge/ffmpeg -i http://192.168.0.229/live -an -sn -dn -codec:v copy -pix_fmt yuv420p -color_range mpeg -f rawvideo -payload_type 99 -ssrc 16614717 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params JnS2AIh1klQK8rtEXn6egc8BA6CB84/JItReqhkT srtp://192.168.0.172:57288?rtcpport=57288&pkt_size=1316 -loglevel level+verbose -progress pipe:1
[17/01/2022, 21:45:12] [Camera FFmpeg] [Aki Camera] [info] ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
[17/01/2022, 21:45:12] [Camera FFmpeg] [Aki Camera] [info]   built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1+deb9u1) 20170516
[17/01/2022, 21:45:12] [Camera FFmpeg] [Aki Camera] [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
[17/01/2022, 21:45:12] [Camera FFmpeg] [Aki Camera] [info]   libavutil      56. 51.100 / 56. 51.100
[17/01/2022, 21:45:12] [Camera FFmpeg] [Aki Camera] [info]   libavcodec     58. 91.100 / 58. 91.100
[17/01/2022, 21:45:12] [Camera FFmpeg] [Aki Camera] [info]   libavformat    58. 45.100 / 58. 45.100
[17/01/2022, 21:45:12] [Camera FFmpeg] [Aki Camera] [info]   libavdevice    58. 10.100 / 58. 10.100
[17/01/2022, 21:45:12] [Camera FFmpeg] [Aki Camera] [info]   libavfilter     7. 85.100 /  7. 85.100
[17/01/2022, 21:45:12] [Camera FFmpeg] [Aki Camera] [info]   libswscale      5.  7.100 /  5.  7.100
[17/01/2022, 21:45:12] [Camera FFmpeg] [Aki Camera] [info]   libswresample   3.  7.100 /  3.  7.100
[17/01/2022, 21:45:12] [Camera FFmpeg] [Aki Camera] [info]   libpostproc    55.  7.100 / 55.  7.100
[17/01/2022, 21:45:12] [Camera FFmpeg] [Aki Camera] [tcp @ 0x2aeaca0] [verbose] Starting connection attempt to 192.168.0.229 port 80
[17/01/2022, 21:45:12] [Camera FFmpeg] [Aki Camera] [tcp @ 0x2aeaca0] [verbose] Successfully connected to 192.168.0.229 port 80
[17/01/2022, 21:45:12] [Camera FFmpeg] [Aki Camera] [info] Input #0, mpjpeg, from 'http://192.168.0.229/live':
[17/01/2022, 21:45:12] [Camera FFmpeg] [Aki Camera] [info]   Duration: N/A, bitrate: N/A
[17/01/2022, 21:45:12] [Camera FFmpeg] [Aki Camera] [info]     Stream #0:0: Video: mjpeg (Baseline), 1 reference frame, yuvj420p(pc, bt470bg/unknown/unknown, center), 640x480 [SAR 72:72 DAR 4:3], 25 tbr, 25 tbn, 25 tbc
[17/01/2022, 21:45:12] [Camera FFmpeg] [Aki Camera] [info] Output #0, rtp, to 'srtp://192.168.0.172:57288?rtcpport=57288&pkt_size=1316':
[17/01/2022, 21:45:12] [Camera FFmpeg] [Aki Camera] [info]   Metadata:
[17/01/2022, 21:45:12] [Camera FFmpeg] [Aki Camera] [info]     encoder         : Lavf58.45.100
[17/01/2022, 21:45:12] [Camera FFmpeg] [Aki Camera] [info]     Stream #0:0: Video: mjpeg (Baseline), 1 reference frame, yuvj420p(tv, bt470bg/unknown/unknown, center), 640x480 (0x0) [SAR 72:72 DAR 4:3], q=2-31, 25 tbr, 90k tbn, 25 tbc
[17/01/2022, 21:45:12] [Camera FFmpeg] [Aki Camera] [info] Stream mapping:
[17/01/2022, 21:45:12] [Camera FFmpeg] [Aki Camera] [info]   Stream #0:0 -> #0:0 (copy)
[17/01/2022, 21:45:12] [Camera FFmpeg] [Aki Camera] [info] Press [q] to stop, [?] for help
[17/01/2022, 21:45:13] [Camera FFmpeg] [Aki Camera] [info] frame=    8 fps=0.0 q=-1.0 size=     162kB time=00:00:00.28 bitrate=4730.7kbits/s speed=0.53x    
[17/01/2022, 21:45:13] [Camera FFmpeg] [Aki Camera] Getting the first frames took 0.979 seconds.
[17/01/2022, 21:45:14] [Camera FFmpeg] [Aki Camera] [info] frame=   14 fps= 12 q=-1.0 size=     283kB time=00:00:00.52 bitrate=4459.1kbits/s speed=0.462x    
[17/01/2022, 21:45:14] [Camera FFmpeg] [Aki Camera] [info] frame=   19 fps= 12 q=-1.0 size=     384kB time=00:00:00.72 bitrate=4369.7kbits/s speed=0.441x    
[17/01/2022, 21:45:15] [Camera FFmpeg] [Aki Camera] [info] frame=   25 fps= 11 q=-1.0 size=     505kB time=00:00:00.96 bitrate=4310.1kbits/s speed=0.432x    
[17/01/2022, 21:45:15] [Camera FFmpeg] [Aki Camera] [info] frame=   30 fps= 11 q=-1.0 size=     606kB time=00:00:01.16 bitrate=4279.3kbits/s speed=0.423x    
[17/01/2022, 21:45:16] [Camera FFmpeg] [Aki Camera] [info] frame=   36 fps= 11 q=-1.0 size=     727kB time=00:00:01.40 bitrate=4253.8kbits/s speed=0.421x    
[17/01/2022, 21:45:16] [Camera FFmpeg] [Aki Camera] [info] frame=   42 fps= 11 q=-1.0 size=     848kB time=00:00:01.64 bitrate=4236.0kbits/s speed=0.417x    
[17/01/2022, 21:45:17] [Camera FFmpeg] [Aki Camera] [info] frame=   48 fps= 11 q=-1.0 size=     969kB time=00:00:01.88 bitrate=4222.7kbits/s speed=0.415x    
[17/01/2022, 21:45:18] [Camera FFmpeg] [Aki Camera] [info] frame=   54 fps= 11 q=-1.0 size=    1090kB time=00:00:02.12 bitrate=4211.0kbits/s speed=0.413x    
[17/01/2022, 21:45:18] [Camera FFmpeg] [Aki Camera] [info] frame=   60 fps= 10 q=-1.0 size=    1211kB time=00:00:02.36 bitrate=4201.9kbits/s speed=0.413x    
[17/01/2022, 21:45:19] [Camera FFmpeg] [Aki Camera] [info] frame=   65 fps= 10 q=-1.0 size=    1311kB time=00:00:02.56 bitrate=4194.0kbits/s speed=0.41x    
[17/01/2022, 21:45:19] [Camera FFmpeg] [Aki Camera] [info] frame=   71 fps= 10 q=-1.0 size=    1431kB time=00:00:02.80 bitrate=4187.1kbits/s speed=0.409x    
[17/01/2022, 21:45:20] [Camera FFmpeg] [Aki Camera] [info] frame=   77 fps= 10 q=-1.0 size=    1552kB time=00:00:03.04 bitrate=4181.2kbits/s speed=0.409x    
[17/01/2022, 21:45:20] [Camera FFmpeg] [Aki Camera] [info] frame=   83 fps= 10 q=-1.0 size=    1672kB time=00:00:03.28 bitrate=4176.5kbits/s speed=0.409x    
[17/01/2022, 21:45:21] [Camera FFmpeg] [Aki Camera] [info] frame=   88 fps= 10 q=-1.0 size=    1773kB time=00:00:03.48 bitrate=4173.3kbits/s speed=0.408x    
[17/01/2022, 21:45:21] [Camera FFmpeg] [Aki Camera] [info] frame=   93 fps= 10 q=-1.0 size=    1873kB time=00:00:03.68 bitrate=4170.5kbits/s speed=0.408x    
[17/01/2022, 21:45:22] [Camera FFmpeg] [Aki Camera] [info] frame=   98 fps= 10 q=-1.0 size=    1974kB time=00:00:03.88 bitrate=4167.7kbits/s speed=0.407x    
[17/01/2022, 21:45:22] [Camera FFmpeg] [Aki Camera] [info] frame=  104 fps= 10 q=-1.0 size=    2095kB time=00:00:04.12 bitrate=4165.1kbits/s speed=0.407x    
[17/01/2022, 21:45:23] [Camera FFmpeg] [Aki Camera] [info] frame=  109 fps= 10 q=-1.0 size=    2195kB time=00:00:04.32 bitrate=4163.3kbits/s speed=0.406x    
[17/01/2022, 21:45:24] [Camera FFmpeg] [Aki Camera] [info] frame=  115 fps= 10 q=-1.0 size=    2316kB time=00:00:04.56 bitrate=4161.0kbits/s speed=0.406x    
[17/01/2022, 21:45:24] [Camera FFmpeg] [Aki Camera] [info] frame=  121 fps= 10 q=-1.0 size=    2437kB time=00:00:04.80 bitrate=4159.2kbits/s speed=0.406x    
[17/01/2022, 21:45:25] [Camera FFmpeg] [Aki Camera] [info] frame=  127 fps= 10 q=-1.0 size=    2558kB time=00:00:05.04 bitrate=4157.4kbits/s speed=0.406x    
[17/01/2022, 21:45:25] [Camera FFmpeg] [Aki Camera] [info] frame=  132 fps= 10 q=-1.0 size=    2658kB time=00:00:05.24 bitrate=4156.0kbits/s speed=0.406x    
[17/01/2022, 21:45:26] [Camera FFmpeg] [Aki Camera] [info] frame=  138 fps= 10 q=-1.0 size=    2779kB time=00:00:05.48 bitrate=4154.3kbits/s speed=0.405x    
[17/01/2022, 21:45:26] [Camera FFmpeg] [Aki Camera] [info] frame=  143 fps= 10 q=-1.0 size=    2880kB time=00:00:05.68 bitrate=4153.3kbits/s speed=0.405x    
[17/01/2022, 21:45:27] [Camera FFmpeg] [Aki Camera] [info] frame=  148 fps= 10 q=-1.0 size=    2980kB time=00:00:05.88 bitrate=4152.3kbits/s speed=0.405x    
[17/01/2022, 21:45:27] [Camera FFmpeg] [Aki Camera] [info] frame=  153 fps= 10 q=-1.0 size=    3081kB time=00:00:06.08 bitrate=4151.4kbits/s speed=0.405x    
[17/01/2022, 21:45:28] [Camera FFmpeg] [Aki Camera] [info] frame=  159 fps= 10 q=-1.0 size=    3202kB time=00:00:06.32 bitrate=4150.3kbits/s speed=0.404x    
[17/01/2022, 21:45:29] [Camera FFmpeg] [Aki Camera] [info] frame=  165 fps= 10 q=-1.0 size=    3323kB time=00:00:06.56 bitrate=4149.3kbits/s speed=0.404x    
[17/01/2022, 21:45:29] [Camera FFmpeg] [Aki Camera] [info] frame=  171 fps= 10 q=-1.0 size=    3444kB time=00:00:06.80 bitrate=4148.6kbits/s speed=0.404x    
[17/01/2022, 21:45:30] [Camera FFmpeg] [Aki Camera] [info] frame=  176 fps= 10 q=-1.0 size=    3544kB time=00:00:07.00 bitrate=4147.9kbits/s speed=0.404x    
[17/01/2022, 21:45:30] [Camera FFmpeg] [Aki Camera] [info] frame=  181 fps= 10 q=-1.0 size=    3645kB time=00:00:07.20 bitrate=4147.1kbits/s speed=0.404x    
[17/01/2022, 21:45:31] [Camera FFmpeg] [Aki Camera] [info] frame=  187 fps= 10 q=-1.0 size=    3765kB time=00:00:07.44 bitrate=4145.9kbits/s speed=0.404x    
[17/01/2022, 21:45:31] [Camera FFmpeg] [Aki Camera] [info] frame=  192 fps= 10 q=-1.0 size=    3866kB time=00:00:07.64 bitrate=4145.6kbits/s speed=0.404x    
[17/01/2022, 21:45:32] [Camera FFmpeg] [Aki Camera] [info] frame=  197 fps= 10 q=-1.0 size=    3967kB time=00:00:07.84 bitrate=4145.3kbits/s speed=0.404x    
[17/01/2022, 21:45:32] [Camera FFmpeg] [Aki Camera] [info] frame=  202 fps= 10 q=-1.0 size=    4068kB time=00:00:08.04 bitrate=4144.8kbits/s speed=0.404x    
[17/01/2022, 21:45:33] [Camera FFmpeg] [Aki Camera] [info] frame=  208 fps= 10 q=-1.0 size=    4189kB time=00:00:08.28 bitrate=4144.2kbits/s speed=0.403x    
[17/01/2022, 21:45:34] [Camera FFmpeg] [Aki Camera] [info] frame=  214 fps= 10 q=-1.0 size=    4310kB time=00:00:08.52 bitrate=4143.6kbits/s speed=0.404x    
[17/01/2022, 21:45:34] [Camera FFmpeg] [Aki Camera] [info] frame=  219 fps= 10 q=-1.0 size=    4410kB time=00:00:08.72 bitrate=4143.3kbits/s speed=0.403x    
[17/01/2022, 21:45:34] [Camera FFmpeg] [Aki Camera] [info] frame=  224 fps= 10 q=-1.0 size=    4511kB time=00:00:08.92 bitrate=4143.1kbits/s speed=0.403x    
[17/01/2022, 21:45:35] [Camera FFmpeg] [Aki Camera] [info] frame=  230 fps= 10 q=-1.0 size=    4632kB time=00:00:09.16 bitrate=4142.6kbits/s speed=0.403x    
[17/01/2022, 21:45:36] [Camera FFmpeg] [Aki Camera] [info] frame=  235 fps= 10 q=-1.0 size=    4733kB time=00:00:09.36 bitrate=4142.2kbits/s speed=0.403x    
[17/01/2022, 21:45:36] [Camera FFmpeg] [Aki Camera] [info] frame=  240 fps= 10 q=-1.0 size=    4834kB time=00:00:09.56 bitrate=4141.9kbits/s speed=0.403x    
[17/01/2022, 21:45:37] [Camera FFmpeg] [Aki Camera] [info] frame=  245 fps= 10 q=-1.0 size=    4935kB time=00:00:09.76 bitrate=4141.8kbits/s speed=0.402x    
[17/01/2022, 21:45:37] [Camera FFmpeg] [Aki Camera] [info] frame=  251 fps= 10 q=-1.0 size=    5055kB time=00:00:10.00 bitrate=4141.4kbits/s speed=0.403x    
[17/01/2022, 21:45:38] [Camera FFmpeg] [Aki Camera] [info] frame=  257 fps= 10 q=-1.0 size=    5176kB time=00:00:10.24 bitrate=4141.0kbits/s speed=0.403x    
[17/01/2022, 21:45:38] [Camera FFmpeg] [Aki Camera] [info] frame=  263 fps= 10 q=-1.0 size=    5297kB time=00:00:10.48 bitrate=4140.7kbits/s speed=0.403x    
[17/01/2022, 21:45:39] [Camera FFmpeg] [Aki Camera] [info] frame=  269 fps= 10 q=-1.0 size=    5418kB time=00:00:10.72 bitrate=4140.5kbits/s speed=0.403x    
[17/01/2022, 21:45:40] [Camera FFmpeg] [Aki Camera] [info] frame=  275 fps= 10 q=-1.0 size=    5539kB time=00:00:10.96 bitrate=4140.2kbits/s speed=0.401x    
[17/01/2022, 21:45:40] [Camera FFmpeg] [Aki Camera] [info] frame=  282 fps= 10 q=-1.0 size=    5680kB time=00:00:11.24 bitrate=4139.7kbits/s speed=0.403x    
[17/01/2022, 21:45:41] [Camera FFmpeg] [Aki Camera] [info] frame=  288 fps= 10 q=-1.0 size=    5801kB time=00:00:11.48 bitrate=4139.4kbits/s speed=0.403x    
[17/01/2022, 21:45:41] [Camera FFmpeg] [Aki Camera] [info] frame=  293 fps= 10 q=-1.0 size=    5902kB time=00:00:11.68 bitrate=4139.1kbits/s speed=0.403x    
[17/01/2022, 21:45:42] [Camera FFmpeg] [Aki Camera] [info] frame=  298 fps= 10 q=-1.0 size=    6002kB time=00:00:11.88 bitrate=4138.9kbits/s speed=0.402x    
[17/01/2022, 21:45:42] [Camera FFmpeg] [Aki Camera] [info] frame=  304 fps= 10 q=-1.0 size=    6123kB time=00:00:12.12 bitrate=4138.5kbits/s speed=0.403x    
[17/01/2022, 21:45:43] [Camera FFmpeg] [Aki Camera] [info] frame=  310 fps= 10 q=-1.0 size=    6244kB time=00:00:12.36 bitrate=4138.2kbits/s speed=0.402x    
[17/01/2022, 21:45:44] [Camera FFmpeg] [Aki Camera] [info] frame=  316 fps= 10 q=-1.0 size=    6364kB time=00:00:12.60 bitrate=4137.8kbits/s speed=0.402x    
[17/01/2022, 21:45:44] [Camera FFmpeg] [Aki Camera] [info] frame=  321 fps= 10 q=-1.0 size=    6465kB time=00:00:12.80 bitrate=4137.6kbits/s speed=0.402x    
[17/01/2022, 21:45:45] [Camera FFmpeg] [Aki Camera] [info] frame=  327 fps= 10 q=-1.0 size=    6586kB time=00:00:13.04 bitrate=4137.5kbits/s speed=0.402x    
[17/01/2022, 21:45:45] [Camera FFmpeg] [Aki Camera] Stopped video stream.
[17/01/2022, 21:45:45] [Camera FFmpeg] [Aki Camera] [info] frame=  328 fps= 10 q=-1.0 Lsize=    6606kB time=00:00:13.08 bitrate=4137.5kbits/s speed=0.401x    
[17/01/2022, 21:45:45] [Camera FFmpeg] [Aki Camera] [AVIOContext @ 0x2ae7870] [verbose] Statistics: 0 seeks, 59 writeouts
[17/01/2022, 21:45:45] [Camera FFmpeg] [Aki Camera] [info] video:6711kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[17/01/2022, 21:45:45] [Camera FFmpeg] [Aki Camera] [verbose] Input file #0 (http://192.168.0.229/live):
[17/01/2022, 21:45:45] [Camera FFmpeg] [Aki Camera] [verbose]   Input stream #0:0 (video): 328 packets read (6871798 bytes); 
[17/01/2022, 21:45:45] [Camera FFmpeg] [Aki Camera] [verbose]   Total: 328 packets (6871798 bytes) demuxed
[17/01/2022, 21:45:45] [Camera FFmpeg] [Aki Camera] [verbose] Output file #0 (srtp://192.168.0.172:57288?rtcpport=57288&pkt_size=1316):
[17/01/2022, 21:45:45] [Camera FFmpeg] [Aki Camera] [verbose]   Output stream #0:0 (video): 328 packets muxed (6871798 bytes); 
[17/01/2022, 21:45:45] [Camera FFmpeg] [Aki Camera] [verbose]   Total: 328 packets (6871798 bytes) muxed
[17/01/2022, 21:45:45] [Camera FFmpeg] [Aki Camera] [AVIOContext @ 0x2afa540] [verbose] Statistics: 0 seeks, 5255 writeouts
[17/01/2022, 21:45:45] [Camera FFmpeg] [Aki Camera] [AVIOContext @ 0x2af2e90] [verbose] Statistics: 6943806 bytes read, 0 seeks
[17/01/2022, 21:45:45] [Camera FFmpeg] [Aki Camera] FFmpeg exited with code: 0 and signal: null (Expected)
```

**Homebridge Config:**

```json
        {
            "name": "Camera FFmpeg",
            "cameras": [
                {
                    "name": "Aki Camera",
                    "unbridge": true,
                    "videoConfig": {
                        "source": "-i http://192.168.0.229/live",
                        "stillImageSource": "-i http://192.168.0.229/live",
                        "maxStreams": 2,
                        "maxWidth": 640,
                        "maxHeight": 480,
                        "maxFPS": 10,
                        "vcodec": "copy",
                        "debug": true,
                        "debugReturn": true
                    }
                }
            ],
            "platform": "Camera-ffmpeg"
        }
```

**Screenshots:**
![image1](https://drive.google.com/uc?export=view&id=1sinM7AbhvreUzTVsdD9Uh4n_0NpTx5do)

![image2](https://drive.google.com/uc?export=view&id=1GPP6gSogNMaadWozEPPxx5C3DPnYRo7O)

**Environment:**

* **Node.js Version**: v12.22.5
* **NPM Version**:  v7.5.2
* **Homebridge Version**: v1.3.9
* **Homebridge Camera FFmpeg Version**: ffmpeg version 4.3.1
* **Homebridge Config UI X Plugin Version**: homebridge-config-ui-x v4.41.4
* **Operating System**: Raspbian GNU/Linux Bullseye (11)


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