Local realtime person detection for RTSP cameras

You want to leave detection on, but turn off clips? If so, can you add a comment to the existing issue?

1 Like

yeah, for sure. thanks!

I turned on ffmpeg debugging as i was getting some errors

   ...done.
frigate.app                    INFO    : Creating directory: /tmp/cache
frigate.mqtt                   INFO    : MQTT connected
frigate.app                    INFO    : Camera processor started for conservatory: 34
detector.coral                 INFO    : Starting detection process: 32
frigate.app                    INFO    : Capture process started for conservatory: 36
ffmpeg.conservatory.detect     ERROR   : ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
ffmpeg.conservatory.detect     ERROR   :   built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
ffmpeg.conservatory.detect     ERROR   :   configuration: --disable-debug --disable-doc --disable-ffplay --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gpl --enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxcb --enable-libx265 --enable-libxvid --enable-libx264 --enable-nonfree --enable-openssl --enable-libfdk_aac --enable-postproc --enable-small --enable-version3 --enable-libzmq --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-libopenjpeg --enable-libkvazaar --enable-libaom --extra-libs=-lpthread --enable-vaapi --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib
ffmpeg.conservatory.detect     ERROR   :   libavutil      56. 51.100 / 56. 51.100
ffmpeg.conservatory.detect     ERROR   :   libavcodec     58. 91.100 / 58. 91.100
ffmpeg.conservatory.detect     ERROR   :   libavformat    58. 45.100 / 58. 45.100
ffmpeg.conservatory.detect     ERROR   :   libavdevice    58. 10.100 / 58. 10.100
ffmpeg.conservatory.detect     ERROR   :   libavfilter     7. 85.100 /  7. 85.100
ffmpeg.conservatory.detect     ERROR   :   libavresample   4.  0.  0 /  4.  0.  0
ffmpeg.conservatory.detect     ERROR   :   libswscale      5.  7.100 /  5.  7.100
ffmpeg.conservatory.detect     ERROR   :   libswresample   3.  7.100 /  3.  7.100
ffmpeg.conservatory.detect     ERROR   :   libpostproc    55.  7.100 / 55.  7.100
ffmpeg.conservatory.detect     ERROR   : Option rtsp_transport not found.
frigate.video                  INFO    : conservatory: ffmpeg sent a broken frame. something is wrong.
frigate.video                  INFO    : conservatory: ffmpeg process is not running. exiting capture thread...
ffmpeg.conservatory.detect     ERROR   : ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
ffmpeg.conservatory.detect     ERROR   :   built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
ffmpeg.conservatory.detect     ERROR   :   configuration: --disable-debug --disable-doc --disable-ffplay --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gpl --enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxcb --enable-libx265 --enable-libxvid --enable-libx264 --enable-nonfree --enable-openssl --enable-libfdk_aac --enable-postproc --enable-small --enable-version3 --enable-libzmq --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-libopenjpeg --enable-libkvazaar --enable-libaom --extra-libs=-lpthread --enable-vaapi --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib"

Dell R710 dual Xeon x5675 CPU running VM on Unraid. blackeblackshear has mentioned before my processor is too old to have Quicksync so i guessed I should leave all the global and hardware parameters blank .

Any help or advise on what if anything I need to change please?

Something is wrong in your ffmpeg config. I think you are missing a - in front of rtsp_transport somewhere.

Thanks for reply (again) :slight_smile:

Sorry this really blowing my mind! in the addon config or somewhere else?
do I need to research these ffmpeg arguments or are they not needed because my cpu is so old?

detectors:
  coral:
    type: cpu
mqtt:
  host: 192.168.1.201
  topic_prefix: frigatetest
  client_id: frigatetest
  user: mqttuser
  password: XXXXXXX
ffmpeg:
  global_args:
    - info
cameras:
  conservatory:
    ffmpeg:
      inputs:
        - path: >-
            rtmp://192.168.1.119/bcs/channel0_main.bcs?channel=0&stream=0&user=admin&password=XXXXXXXX
          roles:
            - detect
            - rtmp
    width: 1280
    height: 720
    fps: 5
    best_image_timeout: 60
    mask: 'poly,0,7,0,446,1191,375,1969,457,2559,224,2559,0,112,2'
logger:
  default: info
save_clips:
  max_seconds: 300
  retain:
    default: 10
    objects:
      person: 15
objects:
  track:
    - person

Why do you have a “>-” after path (before rtmp)?

The addon automatically adds it (i presume because its too long for the line) ?

I have the same and was wondering why it does that. I didn’t add it. Saving the config adds it.
I’m using the addon beta if that makes a difference.

I also tried with a RTSP feed instead (just in case)

    ffmpeg:
      inputs:
        - path: rtsp://viewer:[email protected]:554/h264Preview_01_main
          roles:
            - detect
            - rtmp
    width: 1280

but same errors (i think?)

 * Starting nginx nginx
   ...done.
frigate.app                    INFO    : Creating directory: /tmp/cache
frigate.mqtt                   INFO    : MQTT connected
frigate.app                    INFO    : Camera processor started for conservatory: 33
detector.coral                 INFO    : Starting detection process: 31
frigate.app                    INFO    : Capture process started for conservatory: 35
ffmpeg.conservatory.detect     ERROR   : ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
ffmpeg.conservatory.detect     ERROR   :   built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
ffmpeg.conservatory.detect     ERROR   :   configuration: --disable-debug --disable-doc --disable-ffplay --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gpl --enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxcb --enable-libx265 --enable-libxvid --enable-libx264 --enable-nonfree --enable-openssl --enable-libfdk_aac --enable-postproc --enable-small --enable-version3 --enable-libzmq --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-libopenjpeg --enable-libkvazaar --enable-libaom --extra-libs=-lpthread --enable-vaapi --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib
ffmpeg.conservatory.detect     ERROR   :   libavutil      56. 51.100 / 56. 51.100
ffmpeg.conservatory.detect     ERROR   :   libavcodec     58. 91.100 / 58. 91.100
ffmpeg.conservatory.detect     ERROR   :   libavformat    58. 45.100 / 58. 45.100
ffmpeg.conservatory.detect     ERROR   :   libavdevice    58. 10.100 / 58. 10.100
ffmpeg.conservatory.detect     ERROR   :   libavfilter     7. 85.100 /  7. 85.100
ffmpeg.conservatory.detect     ERROR   :   libavresample   4.  0.  0 /  4.  0.  0
ffmpeg.conservatory.detect     ERROR   :   libswscale      5.  7.100 /  5.  7.100
ffmpeg.conservatory.detect     ERROR   :   libswresample   3.  7.100 /  3.  7.100
ffmpeg.conservatory.detect     ERROR   :   libpostproc    55.  7.100 / 55.  7.100
ffmpeg.conservatory.detect     ERROR   : Input #0, rtsp, from 'rtsp://viewer:[email protected]:554/h264Preview_01_main':
ffmpeg.conservatory.detect     ERROR   :   Metadata:
ffmpeg.conservatory.detect     ERROR   :     title           : Session streamed by "preview"
ffmpeg.conservatory.detect     ERROR   :     comment         : h264Preview_01_main
ffmpeg.conservatory.detect     ERROR   :   Duration: N/A, start: 1608221291.865813, bitrate: N/A
ffmpeg.conservatory.detect     ERROR   :     Stream #0:0: Video: h264, yuv420p(progressive), 2560x1920, 90k tbr, 90k tbn, 180k tbc
ffmpeg.conservatory.detect     ERROR   :     Stream #0:1: Audio: aac, 16000 Hz, mono, fltp
ffmpeg.conservatory.detect     ERROR   : [NULL @ 0x555f58016000] Unable to find a suitable output format for 'info'
ffmpeg.conservatory.detect     ERROR   : info: Invalid argument
frigate.video                  INFO    : conservatory: ffmpeg sent a broken frame. something is wrong.
frigate.video                  INFO    : conservatory: ffmpeg process is not running. exiting capture thread...
ffmpeg.conservatory.detect     ERROR   : ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
ffmpeg.conservatory.detect     ERROR   :   built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
ffmpeg.conservatory.detect     ERROR   :   configuration: --disable-debug --disable-doc --disable-ffplay --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gpl --enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxcb --enable-libx265 --enable-libxvid --enable-libx264 --enable-nonfree --enable-openssl --enable-libfdk_aac --enable-postproc --enable-small --enable-version3 --enable-libzmq --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-libopenjpeg --enable-libkvazaar --enable-libaom --extra-libs=-lpthread --enable-vaapi --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib

Oh OK, I am not using as an addon…i integrate separately…

1 Like

I am not sure with the addon, but the global args look wrong, the - loglevel is missing before - info

Hi Tim,
Changed to

ffmpeg:
  global_args:
    - loglevel
    - info

Logs looked same to me,after restart, I think its showing the log fine, i just do not understand what the log is telling me or what to try next ???

>-

is yaml for multi-line no line-breaks and no line break at end

https://yaml-multiline.info/

2 Likes

it should be “- -loglevel”. Can you post your new log after this?

1 Like

showed this
ffmpeg:
  # Optional: global ffmpeg args (default: shown below)
  global_args: -hide_banner -loglevel fatal
  # Optional: global hwaccel args (default: shown below)

Sorry missed that extra - lower in the document in troubleshooting, now added and restarted

 * Starting nginx nginx
   ...done.
frigate.app                    INFO    : Creating directory: /tmp/cache
frigate.mqtt                   INFO    : MQTT connected
frigate.app                    INFO    : Camera processor started for conservatory: 35
detector.coral                 INFO    : Starting detection process: 32
frigate.app                    INFO    : Capture process started for conservatory: 36
ffmpeg.conservatory.detect     ERROR   : ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
ffmpeg.conservatory.detect     ERROR   :   built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
ffmpeg.conservatory.detect     ERROR   :   configuration: --disable-debug --disable-doc --disable-ffplay --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gpl --enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxcb --enable-libx265 --enable-libxvid --enable-libx264 --enable-nonfree --enable-openssl --enable-libfdk_aac --enable-postproc --enable-small --enable-version3 --enable-libzmq --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-libopenjpeg --enable-libkvazaar --enable-libaom --extra-libs=-lpthread --enable-vaapi --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib
ffmpeg.conservatory.detect     ERROR   :   libavutil      56. 51.100 / 56. 51.100
ffmpeg.conservatory.detect     ERROR   :   libavcodec     58. 91.100 / 58. 91.100
ffmpeg.conservatory.detect     ERROR   :   libavformat    58. 45.100 / 58. 45.100
ffmpeg.conservatory.detect     ERROR   :   libavdevice    58. 10.100 / 58. 10.100
ffmpeg.conservatory.detect     ERROR   :   libavfilter     7. 85.100 /  7. 85.100
ffmpeg.conservatory.detect     ERROR   :   libavresample   4.  0.  0 /  4.  0.  0
ffmpeg.conservatory.detect     ERROR   :   libswscale      5.  7.100 /  5.  7.100
ffmpeg.conservatory.detect     ERROR   :   libswresample   3.  7.100 /  3.  7.100
ffmpeg.conservatory.detect     ERROR   :   libpostproc    55.  7.100 / 55.  7.100
ffmpeg.conservatory.detect     ERROR   : Input #0, rtsp, from 'rtsp://viewer:[email protected]:554/h264Preview_01_main':
ffmpeg.conservatory.detect     ERROR   :   Metadata:
ffmpeg.conservatory.detect     ERROR   :     title           : Session streamed by "preview"
ffmpeg.conservatory.detect     ERROR   :     comment         : h264Preview_01_main
ffmpeg.conservatory.detect     ERROR   :   Duration: N/A, start: 1608223423.937438, bitrate: N/A
ffmpeg.conservatory.detect     ERROR   :     Stream #0:0: Video: h264, yuv420p(progressive), 2560x1920, 27.75 tbr, 90k tbn, 180k tbc
ffmpeg.conservatory.detect     ERROR   :     Stream #0:1: Audio: aac, 16000 Hz, mono, fltp
ffmpeg.conservatory.detect     ERROR   : Output #0, flv, to 'rtmp://127.0.0.1/live/conservatory':
ffmpeg.conservatory.detect     ERROR   :   Metadata:
ffmpeg.conservatory.detect     ERROR   :     title           : Session streamed by "preview"
ffmpeg.conservatory.detect     ERROR   :     comment         : h264Preview_01_main
ffmpeg.conservatory.detect     ERROR   :     encoder         : Lavf58.45.100
ffmpeg.conservatory.detect     ERROR   :     Stream #0:0: Video: h264 ([7][0][0][0] / 0x0007), yuv420p(progressive), 2560x1920, q=2-31, 27.75 tbr, 1k tbn, 90k tbc
ffmpeg.conservatory.detect     ERROR   :     Stream #0:1: Audio: aac ([10][0][0][0] / 0x000A), 16000 Hz, mono, fltp
ffmpeg.conservatory.detect     ERROR   : Stream mapping:
ffmpeg.conservatory.detect     ERROR   :   Stream #0:0 -> #0:0 (copy)
ffmpeg.conservatory.detect     ERROR   :   Stream #0:1 -> #0:1 (copy)
ffmpeg.conservatory.detect     ERROR   :   Stream #0:0 -> #1:0 (h264 (native) -> rawvideo (native))
ffmpeg.conservatory.detect     ERROR   : Press [q] to stop, [?] for help
ffmpeg.conservatory.detect     ERROR   : [flv @ 0x562a3433ea80] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
ffmpeg.conservatory.detect     ERROR   : Output #1, rawvideo, to 'pipe:':
ffmpeg.conservatory.detect     ERROR   :   Metadata:
ffmpeg.conservatory.detect     ERROR   :     title           : Session streamed by "preview"
ffmpeg.conservatory.detect     ERROR   :     comment         : h264Preview_01_main
ffmpeg.conservatory.detect     ERROR   :     encoder         : Lavf58.45.100
ffmpeg.conservatory.detect     ERROR   :     Stream #1:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 2560x1920, q=2-31, 294912 kb/s, 5 fps, 5 tbn, 5 tbc
ffmpeg.conservatory.detect     ERROR   :     Metadata:
ffmpeg.conservatory.detect     ERROR   :       encoder         : Lavc58.91.100 rawvideo
ffmpeg.conservatory.detect     ERROR   : frame=    5 fps=0.0 q=-1.0 q=-0.0 size=     422kB time=00:00:00.60 bitrate=5760.7kbits/s speed=1.09x    
ffmpeg.conservatory.detect     ERROR   : frame=   17 fps= 16 q=-1.0 q=-0.0 size=     631kB time=00:00:01.60 bitrate=3230.9kbits/s dup=0 drop=6 speed=1.51x    
ffmpeg.conservatory.detect     ERROR   : frame=   30 fps= 19 q=-1.0 q=-0.0 size=    1194kB time=00:00:03.80 bitrate=2574.3kbits/s dup=3 drop=12 speed= 2.4x    
ffmpeg.conservatory.detect     ERROR   : frame=   49 fps= 23 q=-1.0 q=-0.0 size=    1862kB time=00:00:04.40 bitrate=3467.3kbits/s dup=3 drop=28 speed=2.07x    
ffmpeg.conservatory.detect     ERROR   : frame=   54 fps= 21 q=-1.0 q=-0.0 size=    1947kB time=00:00:04.63 bitrate=3445.0kbits/s dup=3 drop=31 speed=1.76x    
ffmpeg.conservatory.detect     ERROR   : frame=   60 fps= 19 q=-1.0 q=-0.0 size=    2052kB time=00:00:05.20 bitrate=3232.2kbits/s dup=3 drop=34 speed=1.65x    
ffmpeg.conservatory.detect     ERROR   : frame=   66 fps= 18 q=-1.0 q=-0.0 size=    2156kB time=00:00:05.80 bitrate=3045.2kbits/s dup=3 drop=38 speed=1.58x    
ffmpeg.conservatory.detect     ERROR   : frame=   72 fps= 17 q=-1.0 q=-0.0 size=    2263kB time=00:00:06.24 bitrate=2969.1kbits/s dup=3 drop=41 speed=1.49x    
ffmpeg.conservatory.detect     ERROR   : frame=   79 fps= 17 q=-1.0 q=-0.0 size=    2717kB time=00:00:06.80 

Unless you have a powerful machine I would change to rtmp and stream to channel0_ext (looks like a Reolink?)

Im running Unraid, multiple VM’s and dockers and i have the ‘normal’ Frigate running fine with 7 camera’s on a different vm on this same machine and at only 50% cpu utilisation.

So i don’t believe my pc is struggling. Using Main or Sub stream doesn’t seem to make a difference either

these are the logs with the corrected - -loglevel but with RTMP camera

 * Starting nginx nginx
   ...done.
frigate.app                    INFO    : Creating directory: /tmp/cache
frigate.mqtt                   INFO    : MQTT connected
frigate.app                    INFO    : Camera processor started for conservatory: 34
frigate.app                    INFO    : Capture process started for conservatory: 35
detector.coral                 INFO    : Starting detection process: 32
ffmpeg.conservatory.detect     ERROR   : ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
ffmpeg.conservatory.detect     ERROR   :   built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
ffmpeg.conservatory.detect     ERROR   :   configuration: --disable-debug --disable-doc --disable-ffplay --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gpl --enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxcb --enable-libx265 --enable-libxvid --enable-libx264 --enable-nonfree --enable-openssl --enable-libfdk_aac --enable-postproc --enable-small --enable-version3 --enable-libzmq --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-libopenjpeg --enable-libkvazaar --enable-libaom --extra-libs=-lpthread --enable-vaapi --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib
ffmpeg.conservatory.detect     ERROR   :   libavutil      56. 51.100 / 56. 51.100
ffmpeg.conservatory.detect     ERROR   :   libavcodec     58. 91.100 / 58. 91.100
ffmpeg.conservatory.detect     ERROR   :   libavformat    58. 45.100 / 58. 45.100
ffmpeg.conservatory.detect     ERROR   :   libavdevice    58. 10.100 / 58. 10.100
ffmpeg.conservatory.detect     ERROR   :   libavfilter     7. 85.100 /  7. 85.100
ffmpeg.conservatory.detect     ERROR   :   libavresample   4.  0.  0 /  4.  0.  0
ffmpeg.conservatory.detect     ERROR   :   libswscale      5.  7.100 /  5.  7.100
ffmpeg.conservatory.detect     ERROR   :   libswresample   3.  7.100 /  3.  7.100
ffmpeg.conservatory.detect     ERROR   :   libpostproc    55.  7.100 / 55.  7.100
ffmpeg.conservatory.detect     ERROR   : Option rtsp_transport not found.
frigate.video                  INFO    : conservatory: ffmpeg sent a broken frame. something is wrong.
frigate.video                  INFO    : conservatory: ffmpeg process is not running. exiting capture thread...
ffmpeg.conservatory.detect     ERROR   : ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
ffmpeg.conservatory.detect     ERROR   :   built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
ffmpeg.conservatory.detect     ERROR   :   configuration: --disable-debug --disable-doc --disable-ffplay --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gpl --enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxcb --enable-libx265 --enable-libxvid --enable-libx264 --enable-nonfree --enable-openssl --enable-libfdk_aac --enable-postproc --enable-small --enable-version3 --enable-libzmq --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-libopenjpeg --enable-libkvazaar --enable-libaom --extra-libs=-lpthread --enable-vaapi --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib
ffmpeg.conservatory.detect     ERROR   :   libavutil      56. 51.100 / 56. 51.100
ffmpeg.conservatory.detect     ERROR   :   libavcodec     58. 91.100 / 58. 91.100
ffmpeg.conservatory.detect     ERROR   :   libavformat    58. 45.100 / 58. 45.100
ffmpeg.conservatory.detect     ERROR   :   libavdevice    58. 10.100 / 58. 10.100
ffmpeg.conservatory.detect     ERROR   :   libavfilter     7. 85.100 /  7. 85.100
ffmpeg.conservatory.detect     ERROR   :   libavresample   4.  0.  0 /  4.  0.  0
ffmpeg.conservatory.detect     ERROR   :   libswscale      5.  7.100 /  5.  7.100
ffmpeg.conservatory.detect     ERROR   :   libswresample   3.  7.100 /  3.  7.100
ffmpeg.conservatory.detect     ERROR   :   libpostproc    55.  7.100 / 55.  7.100

vm ![vm|405x326]

The ffmpeg parameters need to be adjusted for rtmp, see https://github.com/blakeblackshear/frigate/blob/a1cc9ad1f0a3ea3e3a1c8163c5ff3c27065a9be4/docs/cameras.md

Thanks :slight_smile:
Config changed to

detectors:
  coral:
    type: cpu
mqtt:
  host: 192.168.1.201
  topic_prefix: frigatetest
  client_id: frigatetest
  user: mqttuser
  password: XXXXXXX
ffmpeg:
  input_args:
    - '-avoid_negative_ts'
    - make_zero
    - '-fflags'
    - nobuffer
    - '-flags'
    - low_delay
    - '-strict'
    - experimental
    - '-fflags'
    - +genpts+discardcorrupt
    - '-use_wallclock_as_timestamps'
    - '1'
  global_args:
    - '-loglevel'
    - info
cameras:
  conservatory:
    ffmpeg:
      inputs:
        - path: >-
            rtmp://192.168.1.119/bcs/channel0_main.bcs?channel=0&stream=0&user=admin&password=XXXXXX
          roles:
            - detect
            - rtmp
    width: 1280
    height: 720
    fps: 5
    best_image_timeout: 60
    mask: 'poly,0,7,0,446,1191,375,1969,457,2559,224,2559,0,112,2'
logger:
  default: info
save_clips:
  max_seconds: 300
  retain:
    default: 10
    objects:
      person: 15
objects:
  track:
    - person
    - cat

but still getting a lot of errors :frowning:

 * Starting nginx nginx
   ...done.
frigate.app                    INFO    : Creating directory: /tmp/cache
frigate.mqtt                   INFO    : MQTT connected
frigate.app                    INFO    : Camera processor started for conservatory: 35
detector.coral                 INFO    : Starting detection process: 32
frigate.app                    INFO    : Capture process started for conservatory: 36
ffmpeg.conservatory.detect     ERROR   : ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
ffmpeg.conservatory.detect     ERROR   :   built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
ffmpeg.conservatory.detect     ERROR   :   configuration: --disable-debug --disable-doc --disable-ffplay --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gpl --enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxcb --enable-libx265 --enable-libxvid --enable-libx264 --enable-nonfree --enable-openssl --enable-libfdk_aac --enable-postproc --enable-small --enable-version3 --enable-libzmq --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-libopenjpeg --enable-libkvazaar --enable-libaom --extra-libs=-lpthread --enable-vaapi --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib
ffmpeg.conservatory.detect     ERROR   :   libavutil      56. 51.100 / 56. 51.100
ffmpeg.conservatory.detect     ERROR   :   libavcodec     58. 91.100 / 58. 91.100
ffmpeg.conservatory.detect     ERROR   :   libavformat    58. 45.100 / 58. 45.100
ffmpeg.conservatory.detect     ERROR   :   libavdevice    58. 10.100 / 58. 10.100
ffmpeg.conservatory.detect     ERROR   :   libavfilter     7. 85.100 /  7. 85.100
ffmpeg.conservatory.detect     ERROR   :   libavresample   4.  0.  0 /  4.  0.  0
ffmpeg.conservatory.detect     ERROR   :   libswscale      5.  7.100 /  5.  7.100
ffmpeg.conservatory.detect     ERROR   :   libswresample   3.  7.100 /  3.  7.100
ffmpeg.conservatory.detect     ERROR   :   libpostproc    55.  7.100 / 55.  7.100
ffmpeg.conservatory.detect     ERROR   : Input #0, flv, from 'rtmp://192.168.1.119/bcs/channel0_main.bcs?channel=0&stream=0&user=admin&password=M0nday123':
ffmpeg.conservatory.detect     ERROR   :   Metadata:
ffmpeg.conservatory.detect     ERROR   :     displayWidth    : 2560
ffmpeg.conservatory.detect     ERROR   :     displayHeight   : 1920
ffmpeg.conservatory.detect     ERROR   :   Duration: 00:00:00.00, start: 1608226146.761000, bitrate: N/A
ffmpeg.conservatory.detect     ERROR   :     Stream #0:0: Data: none
ffmpeg.conservatory.detect     ERROR   :     Stream #0:1: Video: h264, yuv420p(progressive), 2560x1920, 12 fps, 1k tbr, 1k tbn
ffmpeg.conservatory.detect     ERROR   :     Stream #0:2: Audio: aac, 16000 Hz, mono, fltp
ffmpeg.conservatory.detect     ERROR   : Output #0, flv, to 'rtmp://127.0.0.1/live/conservatory':
ffmpeg.conservatory.detect     ERROR   :   Metadata:
ffmpeg.conservatory.detect     ERROR   :     displayWidth    : 2560
ffmpeg.conservatory.detect     ERROR   :     displayHeight   : 1920
ffmpeg.conservatory.detect     ERROR   :     encoder         : Lavf58.45.100
ffmpeg.conservatory.detect     ERROR   :     Stream #0:0: Video: h264 ([7][0][0][0] / 0x0007), yuv420p(progressive), 2560x1920, q=2-31, 12 fps, 1k tbr, 1k tbn, 1k tbc
ffmpeg.conservatory.detect     ERROR   :     Stream #0:1: Audio: aac ([10][0][0][0] / 0x000A), 16000 Hz, mono, fltp
ffmpeg.conservatory.detect     ERROR   : Stream mapping:
ffmpeg.conservatory.detect     ERROR   :   Stream #0:1 -> #0:0 (copy)
ffmpeg.conservatory.detect     ERROR   :   Stream #0:2 -> #0:1 (copy)
ffmpeg.conservatory.detect     ERROR   :   Stream #0:1 -> #1:0 (h264 (native) -> rawvideo (native))
ffmpeg.conservatory.detect     ERROR   : Press [q] to stop, [?] for help
ffmpeg.conservatory.detect     ERROR   : frame=    0 fps=0.0 q=-1.0 q=0.0 size=       0kB time=00:00:03.88 bitrate=   0.9kbits/s speed=7.17x    
ffmpeg.conservatory.detect     ERROR   : Output #1, rawvideo, to 'pipe:':
ffmpeg.conservatory.detect     ERROR   :   Metadata:
ffmpeg.conservatory.detect     ERROR   :     displayWidth    : 2560
ffmpeg.conservatory.detect     ERROR   :     displayHeight   : 1920
ffmpeg.conservatory.detect     ERROR   :     encoder         : Lavf58.45.100
ffmpeg.conservatory.detect     ERROR   :     Stream #1:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 2560x1920, q=2-31, 294912 kb/s, 5 fps, 5 tbn, 5 tbc
ffmpeg.conservatory.detect     ERROR   :     Metadata:
ffmpeg.conservatory.detect     ERROR   :       encoder         : Lavc58.91.100 rawvideo
ffmpeg.conservatory.detect     ERROR   : frame=    1 fps=0.5 q=-1.0 q=-0.0 size=     287kB time=00:00:05.16 bitrate= 455.3kbits/s dup=19 drop=0 speed=2.77x    
ffmpeg.conservatory.detect     ERROR   : frame=    9 fps=3.8 q=-1.0 q=-0.0 size=     409kB time=00:00:06.00 bitrate= 559.1kbits/s dup=25 drop=3 speed=2.53x    
ffmpeg.conservatory.detect     ERROR   : frame=   26 fps=9.0 q=-1.0 q=-0.0 size=     760kB time=00:00:06.60 bitrate= 942.9kbits/s dup=25 drop=17 speed=2.28x    
ffmpeg.conservatory.detect     ERROR   : frame=   35 fps= 10 q=-1.0 q=-0.0 size=    1254kB time=00:00:07.20 bitrate=1426.3kbits/s dup=25 drop=24 speed=2.06x    
ffmpeg.conservatory.detect     ERROR   : frame=   42 fps= 10 q=-1.0 q=-0.0 size=    1392kB time=00:00:07.80 bitrate=1461.5kbits/s dup=25 drop=28 speed=1.92x    
ffmpeg.conservatory.detect     ERROR   : frame=   48 fps= 10 q=-1.0 q=-0.0 size=    1512kB time=00:00:08.20