CCCPaste

Frigate confignew

mqtt:
  host: 192.168.86.30 # Replace with your MQTT broker address
  user: mqttnvr # Replace with your MQTT username
  password: ! # Replace with your MQTT password
  topic_prefix: frigate


detectors:
  cpu1:
    type: cpu

ffmpeg:
  hwaccel_args: preset-vaapi   # Intel VAAPI (QuickSync) for hardware accel

go2rtc:
  streams:
    # Name for the stream (used in RTSP URL below)
    livingroom:
      - nest:?

#    doorbell_nest:
#      - nest:?

#    test_doorbell:
#      - rtsp://192.168.86.30:8554/hass-webrtc4?mp4
#    garage_nest:
#      - nest:?

  # Optional: Add other go2rtc settings if needed
  # rtsp:
  #   listen: ":8554" # Usually handled automatically by Frigate

cameras:
  livingroom:
    ffmpeg:
      inputs:
        # Mainstream (recording)
        - path: rtsp://127.0.0.1:8554/livingroom
          roles:
            - record
        # Detection (same stream, scaled down)
        - path: rtsp://127.0.0.1:8554/livingroom
          roles:
            - detect
          input_args: preset-rtsp-restream
    detect:
      width: 1920
      height: 1080
      fps: 5
    record:
      enabled: true
      retain:
        days: 7
        mode: all

  reolink_rlc420:
    ffmpeg:
      inputs:
        # Mainstream (5MP, high-res)
        - path: rtsp://@192.168.86.90:554/h264Preview_01_main
          roles:
            - record
        # Substream (low-res for detection)
        - path: rtsp://@192.168.86.90:554/h264Preview_01_sub
          roles:
            - detect
            - audio
    detect:
      width: 640      # typical Reolink substream width
      height: 360     # typical Reolink substream height
      fps: 5
    record:
      enabled: true
      retain:
        days: 7
        mode: all
detect:
  enabled: true
version: 0.16-0