config.yml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. web_port: 5000
  2. mqtt:
  3. host: mqtt.server.com
  4. topic_prefix: frigate
  5. # user: username # Optional -- Uncomment for use
  6. # password: password # Optional -- Uncomment for use
  7. cameras:
  8. back:
  9. rtsp:
  10. user: viewer
  11. host: 10.0.10.10
  12. port: 554
  13. # values that begin with a "$" will be replaced with environment variable
  14. password: $RTSP_PASSWORD
  15. path: /cam/realmonitor?channel=1&subtype=2
  16. # Optional mask. Must be the same dimensions as your video feed.
  17. # The mask works by looking at the bottom center of the bounding box for the detected
  18. # person in the image. If that pixel in the mask is a black pixel, it ignores it as a
  19. # false positive. In my mask, the grass and driveway visible from my backdoor camera
  20. # are white. The garage doors, sky, and trees (anywhere it would be impossible for a
  21. # person to stand) are black.
  22. mask: back-mask.bmp
  23. # Allows you to limit the framerate within frigate for cameras that do not support
  24. # custom framerates. A value of 1 tells frigate to look at every frame, 2 every 2nd frame,
  25. # 3 every 3rd frame, etc.
  26. take_frame: 1
  27. # Optional hardware acceleration parameters for ffmpeg. If your hardware supports it, it can
  28. # greatly reduce the CPU power used to decode the video stream. You will need to determine which
  29. # parameters work for your specific hardware. These may work for those with Intel hardware that
  30. # supports QuickSync.
  31. ffmpeg_hwaccel_args:
  32. - -hwaccel
  33. - vaapi
  34. - -hwaccel_device
  35. - /dev/dri/renderD128
  36. - -hwaccel_output_format
  37. - yuv420p
  38. regions:
  39. - size: 350
  40. x_offset: 0
  41. y_offset: 300
  42. min_person_area: 5000
  43. threshold: 0.5
  44. - size: 400
  45. x_offset: 350
  46. y_offset: 250
  47. min_person_area: 2000
  48. threshold: 0.5
  49. - size: 400
  50. x_offset: 750
  51. y_offset: 250
  52. min_person_area: 2000
  53. threshold: 0.5