Stream takes 40 seconds to load and has delay
Hello, 

when i try to open a video Stream on my iPhone, it takes about 30-40 seconds to load and than has a delay from about a minute. 
I have 4 Cameras installed and all have the same behaviour. And the performance of my Raspberry pi 3b seems not to be the problem. 
I have already tried some fixes, but nothing worked so far.

The debug logs are: 

Dec 28 11:44:56 raspberrypi homebridge[24868]: [12/28/2020, 11:44:56] [Camera-ffmpeg] [Kamera Garage] Video stream requested: 1280 x 720, 30 fps, 299 kbps
Dec 28 11:44:56 raspberrypi homebridge[24868]: [12/28/2020, 11:44:56] [Camera-ffmpeg] [Kamera Garage] Starting video stream: native x native, native fps, ??? kbps
Dec 28 11:44:56 raspberrypi homebridge[24868]: [12/28/2020, 11:44:56] [Camera-ffmpeg] [Kamera Garage] Stream command: ffmpeg -rtsp_transport tcp -re -i rtsp://admin:xxx@192.168.178.xx:554/Streaming/channels/101 -an -sn -dn -codec:v $
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] [info] ffmpeg version 4.1.6-1~deb10u1+rpt1 Copyright (c) 2000-2020 the FFmpeg developers
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] [info]   built with gcc 8 (Raspbian 8.3.0-6+rpi1)
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] [info]
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage]   configuration: --prefix=/usr --extra-version='1~deb10u1+rpt1' --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable$
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] [info]   WARNING: library configuration mismatch
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] [info]   avutil      configuration: --prefix=/usr --extra-version='1~deb10u1+rpt1' --toolchain=hardened --incdir=/usr/include/arm-linux$
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] [info]   avcodec     configuration: --prefix=/usr --extra-version='1~deb10u1+rpt1' --toolchain=hardened --incdir=/usr/include/arm-linux$
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] [info]   avformat    configuration: --prefix=/usr --extra-version='1~deb10u1+rpt1' --toolchain=hardened --incdir=/usr/include/arm-linux$
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] [info]   avdevice    configuration: --prefix=/usr --extra-version='1~deb10u1+rpt1' --toolchain=hardened --incdir=/usr/include/arm-linux$
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] [info]   avfilter    configuration: --prefix=/usr --extra-version='1~deb10u1+rpt1' --toolchain=hardened --incdir=/usr/include/arm-linux$
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] [info]   avresample  configuration: --prefix=/usr --extra-version='1~deb10u1+rpt1' --toolchain=hardened --incdir=/usr/include/arm-linux$
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] [info]   swscale     configuration: --prefix=/usr --extra-version='1~deb10u1+rpt1' --toolchain=hardened --incdir=/usr/include/arm-linux$
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] [info]   swresample  configuration: --prefix=/usr --extra-version='1~deb10u1+rpt1' --toolchain=hardened --incdir=/usr/include/arm-linux$
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] [info]   postproc    configuration: --prefix=/usr --extra-version='1~deb10u1+rpt1' --toolchain=hardened --incdir=/usr/include/arm-linux$
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] [info]   libavutil      56. 22.100 / 56. 22.100
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] [info]   libavcodec     58. 35.100 / 58. 35.100
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] [info]   libavformat    58. 20.100 / 58. 20.100
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] [info]   libavdevice    58.  5.100 / 58.  5.100
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] [info]   libavfilter     7. 40.101 /  7. 40.101
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] [info]   libavresample   4.  0.  0 /  4.  0.  0
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] [info]   libswscale      5.  3.100 /  5.  3.100
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] [info]   libswresample   3.  3.100 /  3.  3.100
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] [info]   libpostproc    55.  3.100 / 55.  3.100
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage]
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] [tcp @ 0xa743c0] [verbose] Starting connection attempt to 192.168.178.xx port 554
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage]
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] [tcp @ 0xa743c0] [verbose] Successfully connected to 192.168.178.xx port 554
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage]
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] [rtsp @ 0xa72400] [verbose] SDP:
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] v=0
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] o=- 1109162014219182 0 IN IP4 0.0.0.0
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] s=Media Server V3.4.95
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] i=Media Server Session Description : standard
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] e=NONE
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] c=IN IP4 0.0.0.0
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] t=0 0
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] a=control:*
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] b=AS:2058
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] a=range:npt=now-
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] m=video 0 RTP/AVP 96
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] i=Video Media
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] a=rtpmap:96 H264/90000
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] a=fmtp:96 profile-level-id=4D0014;packetization-mode=0;sprop-parameter-sets=Z00AKpWoHgCJ+WEAABGUAAFfkAQ=,aO48gA==
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] a=control:trackID=video
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] b=AS:2048
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] a=Media_header:MEDIAINFO=494D4B48020100000400000100000000000000000000000000000000000000000000000000000000;
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] a=appversion:1.0
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage]
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage]
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] [rtsp @ 0xa72400] [verbose] setting jitter buffer size to 0
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage]
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage] [h264 @ 0xa759a0] [verbose] Reinit context to 1920x1088, pix_fmt: yuv420p
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [Camera-ffmpeg] [Kamera Garage]
Dec 28 11:44:57 raspberrypi homebridge[24868]: [12/28/2020, 11:44:57] [KNX] ContactSensor->customServiceAPI.setValue(ContactSensorState,0)
Dec 28 11:44:58 raspberrypi homebridge[24868]: [12/28/2020, 11:44:58] [KNX] ContactSensor->customServiceAPI.setValue(ContactSensorState,0)
Dec 28 11:44:59 raspberrypi homebridge[24868]: [12/28/2020, 11:44:59] [KNX] ContactSensor->customServiceAPI.setValue(ContactSensorState,1)
Dec 28 11:45:00 raspberrypi homebridge[24868]: [12/28/2020, 11:45:00] [KNX] ContactSensor->customServiceAPI.setValue(ContactSensorState,0)
Dec 28 11:45:00 raspberrypi homebridge[24868]: [12/28/2020, 11:45:00] [Camera-ffmpeg] [Kamera Garage] [info] Input #0, rtsp, from 'rtsp://admin:p!ls1971@192.168.178.53:554/Streaming/channels/101':
Dec 28 11:45:00 raspberrypi homebridge[24868]: [12/28/2020, 11:45:00] [Camera-ffmpeg] [Kamera Garage] [info]   Metadata:
Dec 28 11:45:00 raspberrypi homebridge[24868]: [12/28/2020, 11:45:00] [Camera-ffmpeg] [Kamera Garage] [info]     title           : Media Server V3.4.95
Dec 28 11:45:00 raspberrypi homebridge[24868]: [12/28/2020, 11:45:00] [Camera-ffmpeg] [Kamera Garage] [info]     comment         : Media Server Session Description : standard
Dec 28 11:45:00 raspberrypi homebridge[24868]: [12/28/2020, 11:45:00] [Camera-ffmpeg] [Kamera Garage] [info]   Duration: N/A
Dec 28 11:45:00 raspberrypi homebridge[24868]: [12/28/2020, 11:45:00] [Camera-ffmpeg] [Kamera Garage] , start: 0.660000, bitrate: N/A
Dec 28 11:45:00 raspberrypi homebridge[24868]: [12/28/2020, 11:45:00] [Camera-ffmpeg] [Kamera Garage] [info]     Stream #0:0: Video: h264 (Main), 1 reference frame, yuv420p(progressive, left), 1920x1080 (1920x1088), 10 fps, 25 tbr, 90k t$
Dec 28 11:45:00 raspberrypi homebridge[24868]: [12/28/2020, 11:45:00] [Camera-ffmpeg] [Kamera Garage]
Dec 28 11:45:00 raspberrypi homebridge[24868]: [12/28/2020, 11:45:00] [Camera-ffmpeg] [Kamera Garage] [info] Output #0, rtp, to 'srtp://192.168.178.173:59932?rtcpport=59932&pkt_size=1316':
Dec 28 11:45:00 raspberrypi homebridge[24868]: [12/28/2020, 11:45:00] [Camera-ffmpeg] [Kamera Garage] [info]   Metadata:
Dec 28 11:45:00 raspberrypi homebridge[24868]: [12/28/2020, 11:45:00] [Camera-ffmpeg] [Kamera Garage] [info]     title           : Media Server V3.4.95
Dec 28 11:45:00 raspberrypi homebridge[24868]: [12/28/2020, 11:45:00] [Camera-ffmpeg] [Kamera Garage] [info]     comment         : Media Server Session Description : standard
Dec 28 11:45:00 raspberrypi homebridge[24868]: [12/28/2020, 11:45:00] [Camera-ffmpeg] [Kamera Garage] [info]     encoder         : Lavf58.20.100
Dec 28 11:45:00 raspberrypi homebridge[24868]: [12/28/2020, 11:45:00] [Camera-ffmpeg] [Kamera Garage]
Dec 28 11:45:00 raspberrypi homebridge[24868]: [12/28/2020, 11:45:00] [Camera-ffmpeg] [Kamera Garage] [info]     Stream #0:0: Video: h264 (Main), 1 reference frame, yuv420p(tv, progressive, left), 1920x1080 (0x0), q=2-31, 10 fps, 25 tbr,$
Dec 28 11:45:00 raspberrypi homebridge[24868]: [12/28/2020, 11:45:00] [Camera-ffmpeg] [Kamera Garage] [info] Stream mapping:
Dec 28 11:45:00 raspberrypi homebridge[24868]: [12/28/2020, 11:45:00] [Camera-ffmpeg] [Kamera Garage] [info]   Stream #0:0 -> #0:0 (copy)
Dec 28 11:45:00 raspberrypi homebridge[24868]: [12/28/2020, 11:45:00] [Camera-ffmpeg] [Kamera Garage] [info] Press [q] to stop, [?] for help
Dec 28 11:45:00 raspberrypi homebridge[24868]: [12/28/2020, 11:45:00] [Camera-ffmpeg] [Kamera Garage]
Dec 28 11:45:00 raspberrypi homebridge[24868]: [12/28/2020, 11:45:00] [KNX] ContactSensor->customServiceAPI.setValue(ContactSensorState,0)
Dec 28 11:45:00 raspberrypi homebridge[24868]: [12/28/2020, 11:45:00] [KNX] ContactSensor->customServiceAPI.setValue(ContactSensorState,0)
Dec 28 11:45:00 raspberrypi homebridge[24868]: [12/28/2020, 11:45:00] [Camera-ffmpeg] [Kamera Garage] [info] frame=   13 fps=0.0 q=-1.0 size=     498kB time=00:00:00.58 bitrate=7035.9kbits/s speed=1.14x
Dec 28 11:45:01 raspberrypi homebridge[24868]: [12/28/2020, 11:45:01] [Camera-ffmpeg] [Kamera Garage] [info] frame=   18 fps= 18 q=-1.0 size=     505kB time=00:00:01.10 bitrate=3759.2kbits/s speed=1.09x
Dec 28 11:45:01 raspberrypi homebridge[24868]: [12/28/2020, 11:45:01] [KNX] ContactSensor->customServiceAPI.setValue(ContactSensorState,1)
Dec 28 11:45:01 raspberrypi homebridge[24868]: [12/28/2020, 11:45:01] [Camera-ffmpeg] [Kamera Garage] [info] frame=   23 fps= 15 q=-1.0 size=     668kB time=00:00:01.58 bitrate=3464.4kbits/s speed=1.03x
Dec 28 11:45:02 raspberrypi homebridge[24868]: [12/28/2020, 11:45:02] [Camera-ffmpeg] [Kamera Garage] [info] frame=   28 fps= 14 q=-1.0 size=     674kB time=00:00:02.10 bitrate=2630.7kbits/s speed=1.03x
Dec 28 11:45:02 raspberrypi homebridge[24868]: [12/28/2020, 11:45:02] [KNX] ContactSensor->customServiceAPI.setValue(ContactSensorState,0)
Dec 28 11:45:02 raspberrypi homebridge[24868]: [12/28/2020, 11:45:02] [Camera-ffmpeg] [Kamera Garage] [info]
Dec 28 11:45:02 raspberrypi homebridge[24868]: [12/28/2020, 11:45:02] [Camera-ffmpeg] [Kamera Garage] frame=   33 fps= 13 q=-1.0 size=     830kB time=00:00:02.58 bitrate=2634.4kbits/s speed=1.01x
Dec 28 11:45:02 raspberrypi homebridge[24868]: [12/28/2020, 11:45:02] [KNX] ContactSensor->customServiceAPI.setValue(ContactSensorState,0)
Dec 28 11:45:03 raspberrypi homebridge[24868]: [12/28/2020, 11:45:03] [Camera-ffmpeg] [Kamera Garage] [info]
Dec 28 11:45:03 raspberrypi homebridge[24868]: [12/28/2020, 11:45:03] [Camera-ffmpeg] [Kamera Garage] frame=   38 fps= 12 q=-1.0 size=     853kB time=00:00:03.10 bitrate=2254.5kbits/s speed=1.02x
Dec 28 11:45:03 raspberrypi homebridge[24868]: [12/28/2020, 11:45:03] [Camera-ffmpeg] [Kamera Garage] [info]
Dec 28 11:45:03 raspberrypi homebridge[24868]: [12/28/2020, 11:45:03] [Camera-ffmpeg] [Kamera Garage] frame=   43 fps= 12 q=-1.0 size=    1026kB time=00:00:03.58 bitrate=2348.3kbits/s speed=1.01x
Dec 28 11:45:03 raspberrypi homebridge[24868]: [12/28/2020, 11:45:03] [KNX] ContactSensor->customServiceAPI.setValue(ContactSensorState,0)
Dec 28 11:45:04 raspberrypi homebridge[24868]: [12/28/2020, 11:45:04] [Camera-ffmpeg] [Kamera Garage] [info]
Dec 28 11:45:04 raspberrypi homebridge[24868]: [12/28/2020, 11:45:04] [Camera-ffmpeg] [Kamera Garage] frame=   48 fps= 12 q=-1.0 size=    1071kB time=00:00:04.10 bitrate=2139.8kbits/s speed=1.01x
Dec 28 11:45:04 raspberrypi homebridge[24868]: [12/28/2020, 11:45:04] [Camera-ffmpeg] [Kamera Garage] [info]
Dec 28 11:45:04 raspberrypi homebridge[24868]: [12/28/2020, 11:45:04] [Camera-ffmpeg] [Kamera Garage] frame=   53 fps= 12 q=-1.0 size=    1252kB time=00:00:04.58 bitrate=2238.6kbits/s speed=   1x
Dec 28 11:45:05 raspberrypi homebridge[24868]: [12/28/2020, 11:45:05] [Camera-ffmpeg] [Kamera Garage] [info]
Dec 28 11:45:05 raspberrypi homebridge[24868]: [12/28/2020, 11:45:05] [Camera-ffmpeg] [Kamera Garage] frame=   58 fps= 11 q=-1.0 size=    1298kB time=00:00:05.10 bitrate=2084.2kbits/s speed=   1x
Dec 28 11:45:05 raspberrypi homebridge[24868]: [12/28/2020, 11:45:05] [Camera-ffmpeg] [Kamera Garage] [info]


Homebridge Config:

{
  "platform": "Camera-ffmpeg",
  "cameras": [
    {
      "name": "Kamera Kueche",
      "videoConfig": {
        "source": "-rtsp_transport tcp -re -i rtsp://admin:xxxx@192.168.178.xx:554/Streaming/channels/201",
        "maxStreams": 2,
        "maxWidth": 1920,
        "maxHeight": 1080,
        "maxFPS": 30,
				"vcodec": "copy",
				"debug": true
      }
    }
  ]
},
{
  "platform": "Camera-ffmpeg",
  "cameras": [
    {
      "name": "Kamera Garage",
      "videoConfig": {
        "source": "-rtsp_transport tcp -re -i rtsp://admin:xxx@192.168.178.xx:554/Streaming/channels/101",
        "maxStreams": 2,
        "maxWidth": 1920,
        "maxHeight": 1080,
        "maxFPS": 30,
				"vcodec": "copy",
				"debug": true
      }
    }
  ]
},
{
  "platform": "Camera-ffmpeg",
  "cameras": [
    {
      "name": "Kamera Garten",
      "videoConfig": {
        "source": "-rtsp_transport tcp -re -i rtsp://admin:xxx@192.168.178.xx:554/Streaming/channels/301",
        "maxStreams": 2,
        "maxWidth": 1920,
        "maxHeight": 1080,
        "maxFPS": 30,
				"vcodec": "copy",
				"debug": true
      }
    }
  ]
},
{
  "platform": "Camera-ffmpeg",
  "cameras": [
    {
      "name": "Kamera Hexe",
      "videoConfig": {
        "source": "-rtsp_transport tcp -re -i rtsp://admin:xxxx@192.168.178.xx:554/Streaming/channels/401",
        "maxStreams": 2,
        "maxWidth": 1920,
        "maxHeight": 1080,
        "maxFPS": 30,
				"vcodec": "copy",
				"debug": true
      }
    }
  ]
},