Suggestions for improve Setup
**Describe Your Problem:**
Any suggestions on how I can optimize my setup? 

**Issues:**
- It takes more then 20 sec. to access the stream. 
- Sometimes the stream doesn't work, like in this example below.
- I would like to use audio too, any ideas how get this running?

**Logs:**
[5/1/2020, 11:06:34] [Camera ffmpeg] Start streaming video from Garten with 1920:1080@24fps (802kBit)
ffmpeg -rtsp_transport tcp -re -i rtsp://10.0.0.101/unicast -map 0:0 -vcodec copy -pix_fmt yuv420p -r 24 -f rawvideo -x264-params intra-refresh=1:bframes=0 -b:v 802k -bufsize 802k -maxrate 802k -payload_type 99 -ssrc 1530394 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params 7y2unZisQbr2/0/RhyJsdd0a6QOUL5Vo/V1DPUTv srtp://10.0.0.74:57717?rtcpport=57717&localrtcpport=57717&pkt_size=188 -loglevel debug
ffmpeg version 4.2.git-47773f7 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1+deb9u1) 20170516

  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-demuxer=rtsp --enable-omx-rpi --enable-mmal
  libavutil      56. 40.100 / 56. 40.100
  libavcodec     58. 68.102 / 58. 68.102
  libavformat    58. 38.100 / 58. 38.100
  libavdevice    58.  9.103 / 58.  9.103
  libavfilter     7. 75.100 /  7. 75.100
  libswscale      5.  6.100 /  5.  6.100
  libswresample   3.  6.100 /  3.  6.100
  libpostproc    55.  6.100 / 55.  6.100
Splitting the commandline.
Reading option '-rtsp_transport' ...
 matched as AVOption 'rtsp_transport' with argument 'tcp'.
Reading option '-re' ... matched as option 're' (read input at native frame rate) with argument '1'.
Reading option '-i' ... matched as input url with argument 'rtsp://10.0.0.101/unicast'.

Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0:0'.
Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'copy'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) with argument 'yuv420p'.
Reading option '-r' ... matched as option 'r' (set frame rate (Hz value, fraction or abbreviation)) with argument '24'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'rawvideo'.
Reading option '-x264-params' ...
 matched as AVOption 'x264-params' with argument 'intra-refresh=1:bframes=0'.
Reading option '-b:v' ...
 matched as option 'b' (video bitrate (please use -b:v)) with argument '802k'.
Reading option '-bufsize' ...
 matched as AVOption 'bufsize' with argument '802k'.
Reading option '-maxrate' ...
 matched as AVOption 'maxrate' with argument '802k'.
Reading option '-payload_type' ...
 matched as AVOption 'payload_type' with argument '99'.
Reading option '-ssrc' ...
 matched as AVOption 'ssrc' with argument '1530394'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'rtp'.
Reading option '-srtp_out_suite' ...
 matched as AVOption 'srtp_out_suite' with argument 'AES_CM_128_HMAC_SHA1_80'.
Reading option '-srtp_out_params' ...
 matched as AVOption 'srtp_out_params' with argument '7y2unZisQbr2/0/RhyJsdd0a6QOUL5Vo/V1DPUTv'.
Reading option 'srtp://10.0.0.74:57717?rtcpport=57717&localrtcpport=57717&pkt_size=188' ... matched as output url.
Reading option '-loglevel' ...
 matched as option 'loglevel' (set logging level) with argument 'debug'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input url rtsp://10.0.0.101/unicast.
Applying option re (read input at native frame rate) with argument 1.
Successfully parsed a group of options.
Opening an input file: rtsp://10.0.0.101/unicast.

[tcp @ 0x3a1c6a0] No default whitelist set
[tcp @ 0x3a1c6a0] Original list of addresses:
[tcp @ 0x3a1c6a0] Address 10.0.0.101 port 554
[tcp @ 0x3a1c6a0] Interleaved list of addresses:
[tcp @ 0x3a1c6a0] Address 10.0.0.101 port 554
[tcp @ 0x3a1c6a0] Starting connection attempt to 10.0.0.101 port 554

[tcp @ 0x3a1c6a0] Successfully connected to 10.0.0.101 port 554

[rtsp @ 0x3a1a690] SDP:
v=0
o=StreamingServer 3331435948 1116907222000 IN IP4 10.0.0.101
s=h264.mp4
i=TAS-Tech Live Cast
c=IN IP4 10.0.0.101
t=0 0
a=recvonly
a=range:npt=now-
m=video 0 RTP/AVP 96
a=control:rtsp://10.0.0.101:554/0/video0
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1
a=framesize:96 1280-720



[rtsp @ 0x3a1a690] video codec set to: h264
[rtsp @ 0x3a1a690] RTP Packetization Mode: 1

[rtsp @ 0x3a1a690] setting jitter buffer size to 0

[rtsp @ 0x3a1a690] hello state=0

[AVBSFContext @ 0x3a4bbf0] nal_unit_type: 7(SPS), nal_ref_idc: 2
[AVBSFContext @ 0x3a4bbf0] nal_unit_type: 8(PPS), nal_ref_idc: 2

[AVBSFContext @ 0x3a4bbf0] nal_unit_type: 5(IDR), nal_ref_idc: 2

[h264 @ 0x3a1d7d0] nal_unit_type: 7(SPS), nal_ref_idc: 2
[h264 @ 0x3a1d7d0] nal_unit_type: 8(PPS), nal_ref_idc: 2

[h264 @ 0x3a1d7d0] nal_unit_type: 5(IDR), nal_ref_idc: 2

[h264 @ 0x3a1d7d0] Format yuv420p chosen by get_format().
[h264 @ 0x3a1d7d0] Reinit context to 1920x1088, pix_fmt: yuv420p

[h264 @ 0x3a1d7d0] nal_unit_type: 1(Coded slice of a non-IDR picture), nal_ref_idc: 2

    Last message repeated 5 times
[rtsp @ 0x3a1a690] Non-increasing DTS in stream 0: packet 10 with DTS 86400, packet 11 with DTS 86400

[rtsp @ 0x3a1a690] Non-increasing DTS in stream 0: packet 11 with DTS 86400, packet 12 with DTS 86400

[rtsp @ 0x3a1a690] All info found

Input #0, rtsp, from 'rtsp://10.0.0.101/unicast':
  Metadata:
    title           : h264.mp4
    comment         : TAS-Tech Live Cast
  Duration: N/A, start: 0.455800, bitrate: 
N/A
    Stream #0:0, 30, 1/90000: Video: h264 (Main), 1 reference frame, yuv420p(progressive, left), 1920x1080 (1920x1088), 0/1, 11.92 fps, 12.50 tbr, 90k tbn, 23.75 tbc
Successfully opened the file.
Parsing a group of options: output url srtp://10.0.0.74:57717?rtcpport=57717&localrtcpport=57717&pkt_size=188.
Applying option map (set input stream mapping) with argument 0:0.
Applying option vcodec (force video codec ('copy' to copy stream)) with argument copy.
Applying option pix_fmt (set pixel format) with argument yuv420p.
Applying option r (set frame rate (Hz value, fraction or abbreviation)) with argument 24.
Applying option f (force format) with argument rawvideo.
Applying option b:v (video bitrate (please use -b:v)) with argument 802k.
Applying option f (force format) with argument rtp.
Successfully parsed a group of options.
Opening an output file: srtp://10.0.0.74:57717?rtcpport=57717&localrtcpport=57717&pkt_size=188.

[srtp @ 0x3c91430] No default whitelist set
[rtp @ 0x3a363e0] No default whitelist set

[udp @ 0x3a35700] No default whitelist set
[udp @ 0x3a35850] No default whitelist set

Successfully opened the file.

Output #0, rtp, to 'srtp://10.0.0.74:57717?rtcpport=57717&localrtcpport=57717&pkt_size=188':
  Metadata:
    title           : h264.mp4
    comment         : TAS-Tech Live Cast
    encoder         : Lavf58.38.100

    Stream #0:0, 0, 1/90000: Video: h264 (Main), 1 reference frame, yuv420p(progressive, left), 1920x1080 (0x0), 0/1, q=2-31, 802 kb/s, 11.92 fps, 12.50 tbr, 90k tbn, 24 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)

Press [q] to stop, [?] for help
cur_dts is invalid st:0 (99) [init:1 i_done:0 finish:0] (this is harmless if it occurs once at the start per stream)
[rtp @ 0x3a34170] Sending NAL 7 of len 21 M=0
[rtp @ 0x3a34170] Sending NAL 8 of len 4 M=0

[rtp @ 0x3a34170] Sending NAL 5 of len 225652 M=1

[rtp @ 0x3a34170] NAL size 225652 > 162

[rtp @ 0x3a34170] Non-monotonous DTS in output stream 0:0; previous: 0, current: -26622; changing to 0. This may result in incorrect timestamps in the output file.
[rtp @ 0x3a34170] Sending NAL 1 of len 2451 M=1
[rtp @ 0x3a34170] NAL size 2451 > 162

[rtp @ 0x3a34170] Non-monotonous DTS in output stream 0:0; previous: 0, current: -26622; changing to 0. This may result in incorrect timestamps in the output file.

[rtp @ 0x3a34170] Sending NAL 1 of len 3226 M=1
[rtp @ 0x3a34170] NAL size 3226 > 162

[rtp @ 0x3a34170] Non-monotonous DTS in output stream 0:0; previous: 0, current: -26622; changing to 0. This may result in incorrect timestamps in the output file.

[rtp @ 0x3a34170] Sending NAL 1 of len 2923 M=1
[rtp @ 0x3a34170] NAL size 2923 > 162

[rtp @ 0x3a34170] Non-monotonous DTS in output stream 0:0; previous: 0, current: -14022; changing to 0. This may result in incorrect timestamps in the output file.

[rtp @ 0x3a34170] Sending NAL 1 of len 3305 M=1
[rtp @ 0x3a34170] NAL size 3305 > 162

[rtp @ 0x3a34170] Non-monotonous DTS in output stream 0:0; previous: 0, current: -6822; changing to 0. This may result in incorrect timestamps in the output file.

[rtp @ 0x3a34170] Sending NAL 1 of len 3361 M=1
[rtp @ 0x3a34170] NAL size 3361 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 3180 M=1
[rtp @ 0x3a34170] NAL size 3180 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2045 M=1
[rtp @ 0x3a34170] NAL size 2045 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2136 M=1
[rtp @ 0x3a34170] NAL size 2136 > 162

[rtp @ 0x3a34170] Sending NAL 7 of len 21 M=0
[rtp @ 0x3a34170] Sending NAL 8 of len 4 M=0

[rtp @ 0x3a34170] Sending NAL 5 of len 225107 M=1

[rtp @ 0x3a34170] NAL size 225107 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2908 M=1
[rtp @ 0x3a34170] NAL size 2908 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2700 M=1
[rtp @ 0x3a34170] NAL size 2700 > 162

frame=   12 fps=0.0 q=-1.0 size=     509kB time=00:00:00.50 bitrate=8267.6kbits/s speed=0.989x    
[rtp @ 0x3a34170] Sending NAL 1 of len 3341 M=1
[rtp @ 0x3a34170] NAL size 3341 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 4154 M=1
[rtp @ 0x3a34170] NAL size 4154 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2346 M=1
[rtp @ 0x3a34170] NAL size 2346 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2188 M=1
[rtp @ 0x3a34170] NAL size 2188 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2067 M=1
[rtp @ 0x3a34170] NAL size 2067 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2081 M=1
[rtp @ 0x3a34170] NAL size 2081 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 3136 M=1
[rtp @ 0x3a34170] NAL size 3136 > 162

frame=   19 fps= 19 q=-1.0 size=     529kB time=00:00:01.06 bitrate=4075.1kbits/s speed=1.05x    
[rtp @ 0x3a34170] Sending NAL 1 of len 2800 M=1
[rtp @ 0x3a34170] NAL size 2800 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2560 M=1
[rtp @ 0x3a34170] NAL size 2560 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2234 M=1
[rtp @ 0x3a34170] NAL size 2234 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1697 M=1
[rtp @ 0x3a34170] NAL size 1697 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1788 M=1
[rtp @ 0x3a34170] NAL size 1788 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2682 M=1
[rtp @ 0x3a34170] NAL size 2682 > 162

frame=   25 fps= 16 q=-1.0 size=     544kB time=00:00:01.54 bitrate=2886.0kbits/s speed=1.02x    
[rtp @ 0x3a34170] Sending NAL 1 of len 2433 M=1
[rtp @ 0x3a34170] NAL size 2433 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2606 M=1
[rtp @ 0x3a34170] NAL size 2606 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2754 M=1
[rtp @ 0x3a34170] NAL size 2754 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1822 M=1
[rtp @ 0x3a34170] NAL size 1822 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 3018 M=1
[rtp @ 0x3a34170] NAL size 3018 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1713 M=1
[rtp @ 0x3a34170] NAL size 1713 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2741 M=1
[rtp @ 0x3a34170] NAL size 2741 > 162

frame=   32 fps= 16 q=-1.0 size=     562kB time=00:00:02.10 bitrate=2188.8kbits/s speed=1.04x    
[rtp @ 0x3a34170] Sending NAL 1 of len 3267 M=1
[rtp @ 0x3a34170] NAL size 3267 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1795 M=1
[rtp @ 0x3a34170] NAL size 1795 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1834 M=1
[rtp @ 0x3a34170] NAL size 1834 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2778 M=1
[rtp @ 0x3a34170] NAL size 2778 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1692 M=1
[rtp @ 0x3a34170] NAL size 1692 > 162

frame=   37 fps= 15 q=-1.0 size=     574kB time=00:00:02.56 bitrate=1834.8kbits/s speed=1.01x    
[rtp @ 0x3a34170] Sending NAL 1 of len 2717 M=1
[rtp @ 0x3a34170] NAL size 2717 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1538 M=1
[rtp @ 0x3a34170] NAL size 1538 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2549 M=1
[rtp @ 0x3a34170] NAL size 2549 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2355 M=1
[rtp @ 0x3a34170] NAL size 2355 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2514 M=1
[rtp @ 0x3a34170] NAL size 2514 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2145 M=1
[rtp @ 0x3a34170] NAL size 2145 > 162

frame=   43 fps= 14 q=-1.0 size=     589kB time=00:00:03.06 bitrate=1574.7kbits/s speed=1.01x    
[rtp @ 0x3a34170] Sending NAL 1 of len 2180 M=1
[rtp @ 0x3a34170] NAL size 2180 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2293 M=1
[rtp @ 0x3a34170] NAL size 2293 > 162

[rtsp @ 0x3a1a690] CSeq 4 expected, 0 received.

[rtp @ 0x3a34170] Sending NAL 7 of len 21 M=0
[rtp @ 0x3a34170] Sending NAL 8 of len 4 M=0
[rtp @ 0x3a34170] Sending NAL 5 of len 167660 M=1
[rtp @ 0x3a34170] NAL size 167660 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2329 M=1
[rtp @ 0x3a34170] NAL size 2329 > 162

frame=   47 fps=4.2 q=-1.0 size=     774kB time=00:00:13.12 bitrate= 483.4kbits/s speed=1.18x    
frame=   47 fps=4.0 q=-1.0 size=     774kB time=00:00:13.12 bitrate= 483.4kbits/s speed=1.13x    
frame=   47 fps=3.9 q=-1.0 size=     774kB time=00:00:13.12 bitrate= 483.4kbits/s speed=1.08x    
frame=   47 fps=3.7 q=-1.0 size=     774kB time=00:00:13.12 bitrate= 483.4kbits/s speed=1.04x    
[rtp @ 0x3a34170] Sending NAL 1 of len 2307 M=1
[rtp @ 0x3a34170] NAL size 2307 > 162

frame=   48 fps=3.6 q=-1.0 size=     777kB time=00:00:13.20 bitrate= 482.0kbits/s speed=   1x    
[rtp @ 0x3a34170] Sending NAL 1 of len 2210 M=1
[rtp @ 0x3a34170] NAL size 2210 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2606 M=1
[rtp @ 0x3a34170] NAL size 2606 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2029 M=1
[rtp @ 0x3a34170] NAL size 2029 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2022 M=1
[rtp @ 0x3a34170] NAL size 2022 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1576 M=1
[rtp @ 0x3a34170] NAL size 1576 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1931 M=1
[rtp @ 0x3a34170] NAL size 1931 > 162

frame=   54 fps=3.9 q=-1.0 size=     790kB time=00:00:13.76 bitrate= 470.2kbits/s speed=1.01x    
[rtp @ 0x3a34170] Sending NAL 1 of len 1817 M=1
[rtp @ 0x3a34170] NAL size 1817 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1968 M=1
[rtp @ 0x3a34170] NAL size 1968 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2057 M=1
[rtp @ 0x3a34170] NAL size 2057 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1921 M=1
[rtp @ 0x3a34170] NAL size 1921 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2021 M=1
[rtp @ 0x3a34170] NAL size 2021 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1770 M=1
[rtp @ 0x3a34170] NAL size 1770 > 162

frame=   60 fps=4.2 q=-1.0 size=     802kB time=00:00:14.24 bitrate= 461.4kbits/s speed=   1x    
[rtp @ 0x3a34170] Sending NAL 1 of len 1826 M=1
[rtp @ 0x3a34170] NAL size 1826 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1890 M=1
[rtp @ 0x3a34170] NAL size 1890 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1831 M=1
[rtp @ 0x3a34170] NAL size 1831 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1904 M=1
[rtp @ 0x3a34170] NAL size 1904 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1908 M=1
[rtp @ 0x3a34170] NAL size 1908 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1937 M=1
[rtp @ 0x3a34170] NAL size 1937 > 162

frame=   66 fps=4.5 q=-1.0 size=     814kB time=00:00:14.74 bitrate= 452.5kbits/s speed=   1x    
[rtp @ 0x3a34170] Sending NAL 1 of len 1911 M=1
[rtp @ 0x3a34170] NAL size 1911 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1828 M=1
[rtp @ 0x3a34170] NAL size 1828 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2581 M=1
[rtp @ 0x3a34170] NAL size 2581 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1815 M=1
[rtp @ 0x3a34170] NAL size 1815 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1793 M=1
[rtp @ 0x3a34170] NAL size 1793 > 162

frame=   71 fps=4.7 q=-1.0 size=     825kB time=00:00:15.20 bitrate= 444.5kbits/s speed=   1x    
[rtp @ 0x3a34170] Sending NAL 1 of len 1920 M=1
[rtp @ 0x3a34170] NAL size 1920 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1973 M=1
[rtp @ 0x3a34170] NAL size 1973 > 162

[rtp @ 0x3a34170] Sending NAL 7 of len 21 M=0
[rtp @ 0x3a34170] Sending NAL 8 of len 4 M=0

[rtp @ 0x3a34170] Sending NAL 5 of len 225067 M=1
[rtp @ 0x3a34170] NAL size 225067 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2738 M=1
[rtp @ 0x3a34170] NAL size 2738 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 3230 M=1
[rtp @ 0x3a34170] NAL size 3230 > 162

frame=   76 fps=4.8 q=-1.0 size=    1074kB time=00:00:15.72 bitrate= 559.8kbits/s speed=   1x    
[rtp @ 0x3a34170] Sending NAL 1 of len 3141 M=1
[rtp @ 0x3a34170] NAL size 3141 > 162

[rtp @ 0x3a34170] 
Sending NAL 1 of len 3084 M=1
[rtp @ 0x3a34170] NAL size 3084 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2347 M=1
[rtp @ 0x3a34170] NAL size 2347 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2339 M=1
[rtp @ 0x3a34170] NAL size 2339 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2260 M=1
[rtp @ 0x3a34170] NAL size 2260 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2655 M=1
[rtp @ 0x3a34170] NAL size 2655 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2666 M=1
[rtp @ 0x3a34170] NAL size 2666 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2845 M=1
[rtp @ 0x3a34170] NAL size 2845 > 162

frame=   84 fps=5.2 q=-1.0 size=    1097kB time=00:00:16.24 bitrate= 553.3kbits/s speed=   1x    
[rtp @ 0x3a34170] Sending NAL 1 of len 2089 M=1
[rtp @ 0x3a34170] NAL size 2089 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2528 M=1
[rtp @ 0x3a34170] NAL size 2528 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2388 M=1
[rtp @ 0x3a34170] NAL size 2388 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 3368 M=1
[rtp @ 0x3a34170] NAL size 3368 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2009 M=1
[rtp @ 0x3a34170] NAL size 2009 > 162

frame=   89 fps=5.3 q=-1.0 size=    1110kB time=00:00:16.74 bitrate= 543.3kbits/s speed=   1x    
[rtp @ 0x3a34170] Sending NAL 1 of len 2755 M=1
[rtp @ 0x3a34170] NAL size 2755 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2708 M=1
[rtp @ 0x3a34170] NAL size 2708 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1965 M=1
[rtp @ 0x3a34170] NAL size 1965 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2572 M=1
[rtp @ 0x3a34170] NAL size 2572 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2255 M=1
[rtp @ 0x3a34170] NAL size 2255 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2372 M=1
[rtp @ 0x3a34170] NAL size 2372 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2411 M=1
[rtp @ 0x3a34170] NAL size 2411 > 162

frame=   96 fps=5.6 q=-1.0 size=    1129kB time=00:00:17.28 bitrate= 534.9kbits/s speed=   1x    
[rtp @ 0x3a34170] Sending NAL 1 of len 2353 M=1
[rtp @ 0x3a34170] NAL size 2353 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2317 M=1
[rtp @ 0x3a34170] NAL size 2317 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2286 M=1
[rtp @ 0x3a34170] NAL size 2286 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2284 M=1
[rtp @ 0x3a34170] NAL size 2284 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2536 M=1
[rtp @ 0x3a34170] NAL size 2536 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2577 M=1
[rtp @ 0x3a34170] NAL size 2577 > 162

frame=  102 fps=5.8 q=-1.0 size=    1144kB time=00:00:17.78 bitrate= 526.9kbits/s speed=   1x    
[rtp @ 0x3a34170] Sending NAL 1 of len 2639 M=1
[rtp @ 0x3a34170] NAL size 2639 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2783 M=1
[rtp @ 0x3a34170] NAL size 2783 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2060 M=1
[rtp @ 0x3a34170] NAL size 2060 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2611 M=1
[rtp @ 0x3a34170] NAL size 2611 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 3461 M=1
[rtp @ 0x3a34170] NAL size 3461 > 162

frame=  107 fps=5.9 q=-1.0 size=    1158kB time=00:00:18.26 bitrate= 519.5kbits/s speed=   1x    
[rtp @ 0x3a34170] Sending NAL 1 of len 2305 M=1
[rtp @ 0x3a34170] NAL size 2305 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2264 M=1
[rtp @ 0x3a34170] NAL size 2264 > 162

[rtp @ 0x3a34170] Sending NAL 7 of len 21 M=0
[rtp @ 0x3a34170] Sending NAL 8 of len 4 M=0

[rtp @ 0x3a34170] Sending NAL 5 of len 224495 M=1
[rtp @ 0x3a34170] NAL size 224495 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2673 M=1
[rtp @ 0x3a34170] NAL size 2673 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 3279 M=1
[rtp @ 0x3a34170] NAL size 3279 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 3163 M=1
[rtp @ 0x3a34170] NAL size 3163 > 162

frame=  113 fps=6.0 q=-1.0 size=    1411kB time=00:00:18.72 bitrate= 617.4kbits/s speed=   1x    
[rtp @ 0x3a34170] Sending NAL 1 of len 3675 M=1
[rtp @ 0x3a34170] NAL size 3675 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 3095 M=1
[rtp @ 0x3a34170] NAL size 3095 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2563 M=1
[rtp @ 0x3a34170] NAL size 2563 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2456 M=1
[rtp @ 0x3a34170] NAL size 2456 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2295 M=1
[rtp @ 0x3a34170] NAL size 2295 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2276 M=1
[rtp @ 0x3a34170] NAL size 2276 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2420 M=1
[rtp @ 0x3a34170] NAL size 2420 > 162

frame=  120 fps=6.2 q=-1.0 size=    1431kB time=00:00:19.28 bitrate= 608.0kbits/s speed=   1x    
[rtp @ 0x3a34170] Sending NAL 1 of len 3545 M=1
[rtp @ 0x3a34170] NAL size 3545 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2332 M=1
[rtp @ 0x3a34170] NAL size 2332 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2575 M=1
[rtp @ 0x3a34170] NAL size 2575 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2513 M=1
[rtp @ 0x3a34170] NAL size 2513 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2424 M=1
[rtp @ 0x3a34170] NAL size 2424 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2822 M=1
[rtp @ 0x3a34170] NAL size 2822 > 162

frame=  126 fps=6.4 q=-1.0 size=    1449kB time=00:00:19.84 bitrate= 598.0kbits/s speed=1.01x    
[rtp @ 0x3a34170] Sending NAL 1 of len 2757 M=1
[rtp @ 0x3a34170] NAL size 2757 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2551 M=1
[rtp @ 0x3a34170] NAL size 2551 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2575 M=1
[rtp @ 0x3a34170] NAL size 2575 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2534 M=1
[rtp @ 0x3a34170] NAL size 2534 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2462 M=1
[rtp @ 0x3a34170] NAL size 2462 > 162

frame=  131 fps=6.5 q=-1.0 size=    1462kB time=00:00:20.24 bitrate= 591.7kbits/s speed=   1x    
[rtp @ 0x3a34170] Sending NAL 1 of len 2436 M=1
[rtp @ 0x3a34170] NAL size 2436 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2557 M=1
[rtp @ 0x3a34170] NAL size 2557 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2639 M=1
[rtp @ 0x3a34170] NAL size 2639 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2548 M=1
[rtp @ 0x3a34170] NAL size 2548 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2590 M=1
[rtp @ 0x3a34170] NAL size 2590 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2740 M=1
[rtp @ 0x3a34170] NAL size 2740 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2530 M=1
[rtp @ 0x3a34170] NAL size 2530 > 162

frame=  138 fps=6.7 q=-1.0 size=    1481kB time=00:00:20.80 bitrate= 583.3kbits/s speed=   1x    
[rtp @ 0x3a34170] Sending NAL 1 of len 2642 M=1
[rtp @ 0x3a34170] NAL size 2642 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2612 M=1
[rtp @ 0x3a34170] NAL size 2612 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2428 M=1
[rtp @ 0x3a34170] NAL size 2428 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2394 M=1
[rtp @ 0x3a34170] NAL size 2394 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2442 M=1
[rtp @ 0x3a34170] NAL size 2442 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2409 M=1
[rtp @ 0x3a34170] NAL size 2409 > 162

frame=  144 fps=6.8 q=-1.0 size=    1497kB time=00:00:21.28 bitrate= 576.3kbits/s speed=   1x    
[rtp @ 0x3a34170] Sending NAL 1 of len 4488 M=1
[rtp @ 0x3a34170] NAL size 4488 > 162

[rtp @ 0x3a34170] Sending NAL 7 of len 21 M=0
[rtp @ 0x3a34170] Sending NAL 8 of len 4 M=0

[rtp @ 0x3a34170] Sending NAL 5 of len 384224 M=1

[rtp @ 0x3a34170] NAL size 384224 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 3296 M=1
[rtp @ 0x3a34170] NAL size 3296 > 162
frame=  147 fps=6.4 q=-1.0 size=    1914kB time=00:00:24.68 bitrate= 635.1kbits/s speed=1.08x    
frame=  147 fps=6.3 q=-1.0 size=    1914kB time=00:00:24.68 bitrate= 635.1kbits/s speed=1.06x    
frame=  147 fps=6.2 q=-1.0 size=    1914kB time=00:00:24.68 bitrate= 635.1kbits/s speed=1.03x    
frame=  147 fps=6.0 q=-1.0 size=    1914kB time=00:00:24.68 bitrate= 635.1kbits/s speed=1.01x    
[rtp @ 0x3a34170] Sending NAL 1 of len 3381 M=1
[rtp @ 0x3a34170] NAL size 3381 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2686 M=1
[rtp @ 0x3a34170] NAL size 2686 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2883 M=1
[rtp @ 0x3a34170] NAL size 2883 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2693 M=1
[rtp @ 0x3a34170] NAL size 2693 > 162

frame=  151 fps=6.1 q=-1.0 size=    1926kB time=00:00:24.96 bitrate= 632.1kbits/s speed=   1x    
[rtp @ 0x3a34170] Sending NAL 1 of len 1774 M=1
[rtp @ 0x3a34170] NAL size 1774 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2655 M=1
[rtp @ 0x3a34170] NAL size 2655 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2397 M=1
[rtp @ 0x3a34170] NAL size 2397 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2109 M=1
[rtp @ 0x3a34170] NAL size 2109 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1570 M=1
[rtp @ 0x3a34170] NAL size 1570 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2260 M=1
[rtp @ 0x3a34170] NAL size 2260 > 162

frame=  157 fps=6.2 q=-1.0 size=    1940kB time=00:00:25.44 bitrate= 624.5kbits/s speed=   1x    
[rtp @ 0x3a34170] Sending NAL 1 of len 2163 M=1
[rtp @ 0x3a34170] NAL size 2163 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1980 M=1
[rtp @ 0x3a34170] NAL size 1980 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2038 M=1
[rtp @ 0x3a34170] NAL size 2038 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2059 M=1
[rtp @ 0x3a34170] NAL size 2059 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2144 M=1
[rtp @ 0x3a34170] NAL size 2144 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2162 M=1
[rtp @ 0x3a34170] NAL size 2162 > 162

frame=  163 fps=6.3 q=-1.0 size=    1953kB time=00:00:25.94 bitrate= 616.7kbits/s speed=   1x    
[rtp @ 0x3a34170] Sending NAL 1 of len 1869 M=1
[rtp @ 0x3a34170] NAL size 1869 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1790 M=1
[rtp @ 0x3a34170] NAL size 1790 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2307 M=1
[rtp @ 0x3a34170] NAL size 2307 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1865 M=1
[rtp @ 0x3a34170] NAL size 1865 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1849 M=1
[rtp @ 0x3a34170] NAL size 1849 > 162

frame=  168 fps=6.4 q=-1.0 size=    1963kB time=00:00:26.42 bitrate= 608.7kbits/s speed=   1x    
[rtp @ 0x3a34170] Sending NAL 1 of len 1766 M=1
[rtp @ 0x3a34170] NAL size 1766 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1612 M=1
[rtp @ 0x3a34170] NAL size 1612 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2849 M=1
[rtp @ 0x3a34170] NAL size 2849 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1441 M=1
[rtp @ 0x3a34170] NAL size 1441 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1529 M=1
[rtp @ 0x3a34170] NAL size 1529 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2496 M=1
[rtp @ 0x3a34170] NAL size 2496 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1637 M=1
[rtp @ 0x3a34170] NAL size 1637 > 162

frame=  175 fps=6.5 q=-1.0 size=    1978kB time=00:00:27.00 bitrate= 599.9kbits/s speed=   1x    
[rtp @ 0x3a34170] Sending NAL 1 of len 1491 M=1
[rtp @ 0x3a34170] NAL size 1491 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2328 M=1
[rtp @ 0x3a34170] NAL size 2328 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1294 M=1
[rtp @ 0x3a34170] NAL size 1294 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2254 M=1
[rtp @ 0x3a34170] NAL size 2254 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 1194 M=1
[rtp @ 0x3a34170] NAL size 1194 > 162

[rtp @ 0x3a34170] Sending NAL 1 of len 2235 M=1
[rtp @ 0x3a34170] NAL size 2235 > 162

frame=  181 fps=6.6 q=-1.0 size=    1989kB time=00:00:27.44 bitrate= 593.8kbits/s speed=   1x    
[rtsp @ 0x3a1a690] CSeq 4 expected, 0 received.

[rtp @ 0x3a34170] Sending NAL 7 of len 21 M=0
[rtp @ 0x3a34170] Sending NAL 8 of len 4 M=0

[rtp @ 0x3a34170] Sending NAL 5 of len 80040 M=1
[rtp @ 0x3a34170] NAL size 80040 > 162

frame=  182 fps=6.1 q=-1.0 Lsize=    2074kB time=00:00:27.56 bitrate= 616.4kbits/s speed=0.918x    
video:1907kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 8.774758%
Input file #0 (rtsp://10.0.0.101/unicast):
  Input stream #0:0 (video): 182 packets read (1952635 bytes); 
  Total: 182 packets (1952635 bytes) demuxed
Output file #0 (srtp://10.0.0.74:57717?rtcpport=57717&localrtcpport=57717&pkt_size=188):
  Output stream #0:0 (video): 182 packets muxed (1952635 bytes); 
  Total: 182 packets (1952635 bytes) muxed
0 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x3a336e0] Statistics: 0 seeks, 12301 writeouts

Exiting normally, received signal 15.

[5/1/2020, 11:07:07] [Camera ffmpeg] Stopped streaming

```

**Homebridge Config:**

{
    "bridge": {
        "name": "Homebridge",
        "username": "XX:XX:XX:XX:XX:XX",
        "port": XXXXX,
        "pin": "XXX-XX-XXX"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "auth": "form",
            "theme": "dark-mode",
            "tempUnits": "c",
            "lang": "auto",
            "platform": "config"
        },
        {
            "name": "Camera ffmpeg",
            "cameras": [
                {
                    "name": "Garten",
                    "manufacturer": "Koogeek",
                    "model": "KSC2 Camera",
                    "serialNumber": "10.0.0.101",
                    "firmwareRevision": "3.3.9",
                    "motion": true,
                    "videoConfig": {
                        "source": "-rtsp_transport tcp -re -i rtsp://10.0.0.101/unicast",
                        "stillImageSource": "-rtsp_transport tcp -i rtsp://10.0.0.101/unicast -vframes 1 -r 1",
                        "maxStreams": 3,
                        "maxWidth": 1920,
                        "maxHeight": 1080,
                        "maxFPS": 24,
                        "maxBitrate": 1024,
                        "vcodec": "copy",
                        "packetSize": 188,
                        "videoFilter": "none",
                        "additionalCommandline": "-x264-params intra-refresh=1:bframes=0",
                        "audio": true,
                        "debug": true
                    }
                },
```

**Screenshots:**
<!-- If applicable, add screenshots to help explain your problem. -->

**Environment:**

* **Node.js Version**: v12.16.2
* **NPM Version**: v6.14.4
* **Homebridge Version**: 1.0.4
* **Homebridge Camera FFmpeg Version**: v0.1.18
* **Homebridge Config UI X Plugin Version**: v4.17.1 
* **Operating System**: Raspbian


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