config.yml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. ################
  45. # FFmpeg log level. Default is "panic". https://ffmpeg.org/ffmpeg.html#Generic-options
  46. ################
  47. # ffmpeg_log_level: panic
  48. ################
  49. # Optional custom input args. Some cameras may need custom ffmpeg params to work reliably. Specifying
  50. # these will replace the default input params.
  51. ################
  52. # ffmpeg_input_args: []
  53. ################
  54. # Optional custom output args. Some cameras may need custom ffmpeg params to work reliably. Specifying
  55. # these will replace the default output params.
  56. ################
  57. # ffmpeg_output_args: []
  58. regions:
  59. - size: 350
  60. x_offset: 0
  61. y_offset: 300
  62. min_person_area: 5000
  63. threshold: 0.5
  64. - size: 400
  65. x_offset: 350
  66. y_offset: 250
  67. min_person_area: 2000
  68. threshold: 0.5
  69. - size: 400
  70. x_offset: 750
  71. y_offset: 250
  72. min_person_area: 2000
  73. threshold: 0.5