Versioner sammenlignet

Nøgle

  • Linjen blev tilføjet.
  • Denne linje blev fjernet.
  • Formatering blev ændret.

...

Find information on Frigate here

Tip

First, I generally put all docker stuff in /opt opt - and I dont use docker-compose very much. Maybee one day...


Creating the needed Directory and the config file:

...

The config file can be huge and there are plenty of options, here is my current:

Kodeblok
mqtt:
  host: 10.0.0.183
cameras:
  frigate_front_door_cam:
    ffmpeg:
      inputs:
        - path: rtsp://view:**********@10.0.0.151:554//h264Preview_01_sub
          roles:
            - detect
        - path: rtsp://view:**********@@10.0.0.151:554//h264Preview_01_main
          roles:
            - record
    rtmp:
      enabled: False
    detect:
      width: 640
      height: 480
      fps: 5
    objects:
      track:
        - person
    snapshots:
      enabled: True
      timestamp: false
      bounding_box: True
      retain:
        default: 2
    record:
      enabled: True
      events:
        retain:
          default: 10
  frigate_behind_house_cam:
    ffmpeg:
      inputs:
        - path: rtsp://view:**********@@10.0.0.176:554//h264Preview_01_sub
          roles:
            - detect
        - path: rtsp://view:**********@@10.0.0.176:554//h264Preview_01_main
          roles:
            - record
    rtmp:
      enabled: False
    detect:
      width: 640
      height: 480
      fps: 5
    objects:
      track:
        - person
    snapshots:
      enabled: True
      timestamp: false
      bounding_box: True
      retain:
        default: 2
    record:
      enabled: True
      events:
        retain:
          default: 10
  frigate_carport_cam:
    ffmpeg:
      inputs:
        - path: rtsp://view:**********@@10.0.0.191:554//h264Preview_01_sub
          roles:
            - detect
        - path: rtsp://view:**********@@10.0.0.191:554//h264Preview_01_main
          roles:
            - record
    rtmp:
      enabled: False
    detect:
      width: 640
      height: 480
      fps: 5
    objects:
      track:
        - person
        - car
    snapshots:
      enabled: True
      timestamp: false
      bounding_box: True
      retain:
        default: 2
    record:
      enabled: True
      events:
        retain:
          default: 10
detectors:
  coral:
    type: edgetpu
    device: usb
birdseye:
  enabled: True
  mode: continuous

...

Tip

In short, the file sets up three cams (Reolink) - using:

  • The Lowres RTSP stream (sub) for the Detect role (sub) as generally recommended.
  • The highres RTSP stream (main) for the Recording Role (Main) as generally recommended.
  • Recording event on object detection
  • Take snapshots on event
  • The tracking of persons and cars
  • The use of a Coral stick for Object processing - instead of the CPU

...