Untitled

mail@pastecode.io avatar
unknown
plain_text
21 days ago
5.1 kB
5
Indexable
Never
mqtt:
  host: 192.168.1.99
  port: 1883
 
 
ffmpeg:  
    hwaccel_args: preset-vaapi
        
record:
    enabled: True
    expire_interval: 60
    events:
        retain:
            default: 14
            mode: active_objects
            objects:
                person: 14
                cat: 2
                dog: 2
                car: 7
birdseye:
    # Optional: Enable birdseye view (default: shown below)
    enabled: True
    # Optional: Width of the output resolution (default: shown below)
    width: 1280
    # Optional: Height of the output resolution (default: shown below)
    height: 720
    # Optional: Encoding quality of the mpeg1 feed (default: shown below)
    # 1 is the highest quality, and 31 is the lowest. Lower quality feeds utilize less CPU resources.
    quality: 8
    # Optional: Mode of the view. Available options are: objects, motion, and continuous
    #   objects - cameras are included if they have had a tracked object within the last 30 seconds
    #   motion - cameras are included if motion was detected in the last 30 seconds
    #   continuous - all cameras are included always
    mode: objects


snapshots:
    # Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below)
    # This value can be set via MQTT and will be updated in startup based on retained value
    enabled: True
    # Optional: print a timestamp on the snapshots (default: shown below)
    timestamp: True
    # Optional: draw bounding box on the snapshots (default: shown below)
    bounding_box: True
    # Optional: crop the snapshot (default: shown below)
    crop: False
    # Optional: height to resize the snapshot to (default: original size)
    #height: 175
    # Optional: Restrict snapshots to objects that entered any of the listed zones (default: no required zones)
    #required_zones: []
    # Optional: Camera override for retention settings (default: global values)
    retain:
        # Required: Default retention days (default: shown below)
        default: 14
        # Optional: Per object retention days
        objects:
            person: 14
            dog: 7
            cat: 7
            car: 7


go2rtc:
  streams:
    front1:
      - rtsp://admin:1992haha@192.168.1.141:554/Streaming/Channels/102
    front1_main:
      - rtsp://admin:1992haha@192.168.1.141:554/Streaming/Channels/101
    front2:
      - rtsp://admin:1992haha@192.168.1.142:554/Streaming/Channels/102
    front2_main:
      - rtsp://admin:1992haha@192.168.1.142:554/Streaming/Channels/101
    back1:
      - rtsp://admin:1992haha@192.168.1.144:554/Streaming/Channels/102
    back1_main:
      - rtsp://admin:1992haha@192.168.1.144:554/Streaming/Channels/101
    back2:
      - rtsp://admin:1992haha@192.168.1.143:554/Streaming/Channels/102
    back2_main:
      - rtsp://admin:1992haha@192.168.1.143:554/Streaming/Channels/101
      
cameras:
  front1:
    ui:
      order: 1
      
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/front1
          input_args: preset-rtsp-restream
          roles:
            - detect
            
        - path: rtsp://127.0.0.1:8554/front1_main
          input_args: preset-rtsp-restream
          roles:
            - record
    detect:
      width: 1280
      height: 720
    
    record:
      enabled: true
      retain:
        days: 30
        mode: all
        
      events:
        retain:
          default: 10
          mode: motion 
      
  front2:
    ui:
      order: 2
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/front2
          input_args: preset-rtsp-restream
          roles:
            - detect
            
        - path: rtsp://127.0.0.1:8554/front2_main
          input_args: preset-rtsp-restream
          roles:
            - record
    detect:
      width: 1280
      height: 720
      
    record:
      enabled: true
      retain:
        days: 30
        mode: all
        
      events:
        retain:
          default: 10
          mode: motion 
  back1:
    ui:
      order: 3
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/back1
          input_args: preset-rtsp-restream
          roles:
            - detect
            
        - path: rtsp://127.0.0.1:8554/back1_main
          input_args: preset-rtsp-restream
          roles:
            - record
    detect:
      width: 1280
      height: 720
      
    record:
      enabled: true
      retain:
        days: 30
        mode: all
        
      events:
        retain:
          default: 10
          mode: motion 
      
  back2:
    ui:
      order: 4
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/back2
          input_args: preset-rtsp-restream
          roles:
            - detect
            
        - path: rtsp://127.0.0.1:8554/back2_main
          input_args: preset-rtsp-restream
          roles:
            - record
    detect:
      width: 1280
      height: 720
      
    record:
      enabled: true
      retain:
        days: 30
        mode: all
        
      events:
        retain:
          default: 10
          mode: motion