Versioner sammenlignet

Nøgle

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

...

Kodeblok
mqtt:
  host: 10.0.0.183
camerasgo2rtc:
  streams:
    frigate_front_door_cam:
    ffmpeg:
      inputs:
  _main: 
      - path"ffmpeg: rtsphttp://view:**********@1010.0.0.151:554//h264Preview_01_sub
/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=******&password=******#video=copy#audio=copy#audio=opus"
    frigate_front_door_cam_sub: 
      - "ffmpeg:http://10.0.0.151/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=******&password=******"
    frigate_behind_house_cam_main:
      - "ffmpeg:http://10.0.0.176/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=******&password=******#video=copy#audio=copy#audio=opus"
    frigate_behind_house_cam_sub:
      - "ffmpeg:http://10.0.0.176/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=******&password=******"
    frigate_carport_cam_main:
      - "ffmpeg:http://10.0.0.191/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=******&password=******#video=copy#audio=copy#audio=opus"
    frigate_carport_cam_sub:
      - "ffmpeg:http://10.0.0.191/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=******&password=******"
    frigate_big_shed_cam_main:
      - "ffmpeg:http://10.0.0.108/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=******&password=******#video=copy#audio=copy#audio=opus"
    frigate_big_shed_cam_sub:
      - "ffmpeg:http://10.0.0.108/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=******&password=******"

cameras:
  frigate_front_door_cam:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/frigate_front_door_cam_sub?video=copy
          input_args: preset-rtsp-restream
          roles:
            - detect
        - path: rtsp://127.0.0.1:8554/frigate_front_door_cam_main?video=copy&audio=aac
          input_args: preset-rtsp-restream
          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://127.0.0.1:8554/frigate_behind_house_cam_sub?video=copy
          input_args: preset-rtsp-restream
          roles:
            - detect
        - path: rtsp://view:**********@@10127.0.0.151:554//h264Preview_01_main1:8554/frigate_behind_house_cam_main?video=copy&audio=aac
          input_args: preset-rtsp-restream
          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_housecarport_cam:
    ffmpeg:
      inputs:
        - path: rtsp://view:**********@@10127.0.0.1761:554//h264Preview_01_sub8554/frigate_carport_cam_sub?video=copy
          input_args: preset-rtsp-restream
          roles:
            - detect
        - path: rtsp://view:**********@@10127.0.0.1761:554//h264Preview_01_main8554/frigate_carport_cam_main?video=copy&audio=aac
          input_args: preset-rtsp-restream
          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
  frigate_big_carportshed_cam:
    ffmpeg:
      inputs:
        - path: rtsp://view:**********@@10127.0.0.191:554//h264Preview_01_sub1:8554/frigate_big_shed_cam_sub?video=copy
          input_args: preset-rtsp-restream
          roles:
            - detect
        - path: rtsp://view:**********@@10127.0.0.1911:554//h264Preview_01_main8554/frigate_big_shed_cam_main?video=copy&audio=aac
          input_args: preset-rtsp-restream
          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 - using:4 cams - using:

  • go2rtc as "proxy" - this made a huge difference and improvement (Istarted using RTSP streams directly into frigate, and the recorded videos lagged and was sometimes broken). See https://docs.frigate.video/guides/configuring_go2rtc
  • The Lowres RTSP stream (sub) for the Detect role as generally recommended, as frigate only uses a 300x300 pixel image for object detection. See https://docs.frigate.video/frigate/camera_setup
  • The highres RTSP stream (main) for the Recording Role as generally recommended.
  • input_args: preset-rtsp-restream as recommedded for Reolink (see https://docs.frigate.video/configuration/camera_specific)

  • 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

...