config.yml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. ################
  17. ## Optional mask. Must be the same dimensions as your video feed.
  18. ## The mask works by looking at the bottom center of the bounding box for the detected
  19. ## person in the image. If that pixel in the mask is a black pixel, it ignores it as a
  20. ## false positive. In my mask, the grass and driveway visible from my backdoor camera
  21. ## are white. The garage doors, sky, and trees (anywhere it would be impossible for a
  22. ## person to stand) are black.
  23. ################
  24. # mask: back-mask.bmp
  25. ################
  26. # Allows you to limit the framerate within frigate for cameras that do not support
  27. # custom framerates. A value of 1 tells frigate to look at every frame, 2 every 2nd frame,
  28. # 3 every 3rd frame, etc.
  29. ################
  30. take_frame: 1
  31. ################
  32. # Optional hardware acceleration parameters for ffmpeg. If your hardware supports it, it can
  33. # greatly reduce the CPU power used to decode the video stream. You will need to determine which
  34. # parameters work for your specific hardware. These may work for those with Intel hardware that
  35. # supports QuickSync.
  36. ################
  37. # ffmpeg_hwaccel_args:
  38. # - -hwaccel
  39. # - vaapi
  40. # - -hwaccel_device
  41. # - /dev/dri/renderD128
  42. # - -hwaccel_output_format
  43. # - yuv420p
  44. regions:
  45. - size: 350
  46. x_offset: 0
  47. y_offset: 300
  48. min_person_area: 5000
  49. threshold: 0.5
  50. - size: 400
  51. x_offset: 350
  52. y_offset: 250
  53. min_person_area: 2000
  54. threshold: 0.5
  55. - size: 400
  56. x_offset: 750
  57. y_offset: 250
  58. min_person_area: 2000
  59. threshold: 0.5