飞牛nas安装frigate变成NVR监控录像机,事件检测,AI本地识别,联动homeassistant智能家居

admin
version: "3.9"
services:
 frigate:
   container_name: frigate
   privileged: true # this may not be necessary for all setups
   restart: unless-stopped
   stop_grace_period: 30s # allow enough time to shut down the various services
   image: ghcr.io/blakeblackshear/frigate:stable
   shm_size: "512mb" # update for your cameras based on calculation above
   devices:
     - /dev/dri:/dev/dri # For intel hwaccel, needs to be updated for your hardware
   volumes:
     - /etc/localtime:/etc/localtime:ro
     - /vol1/1000/docker/frigate/config:/config
     - /vol1/1000/docker/frigate/media:/media/frigate
     - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
       target: /tmp/cache
       tmpfs:
         size: 1000000000
   ports:
     - "8971:8971"
    # - "5000:5000" # Internal unauthenticated access. Expose carefully.
     - "8554:8554" # RTSP feeds
     - "8555:8555/tcp" # WebRTC over tcp
     - "8555:8555/udp" # WebRTC over udp
   environment:
     FRIGATE_RTSP_PASSWORD: "password"




mqtt:
 enabled: false
ffmpeg:
 hwaccel_args: preset-vaapi
record:
 enabled: True
 retain:
   days: 7
   mode: all
 alerts:
   retain:
     days: 30
 detections:
   retain:
     days: 30
cameras:
 3D: # <------ Name the camera
   enabled: true
   ffmpeg:
     inputs:
       - path: rtsp://admin:admin@192.168.3.61:554/1/1
         roles:
           - detect
 SX: # <------ Name the camera
   enabled: true
   ffmpeg:
     inputs:
       - path: rtsp://admin:admin@192.168.3.62:554/stream1
         roles:
           - detect
   detect:
     enabled: false # <---- disable detection until you have a working camera feed
     width: 1920
     height: 1080
version: 0.15-1


相关阅读

1.307906s