config.example.yml 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. web_port: 5000
  2. mqtt:
  3. host: mqtt.server.com
  4. topic_prefix: frigate
  5. # client_id: frigate # Optional -- set to override default client id of 'frigate' if running multiple instances
  6. # user: username # Optional -- Uncomment for use
  7. # password: password # Optional -- Uncomment for use
  8. cameras:
  9. back:
  10. # Source passed to ffmpeg after the -i parameter. Supports anything compatible with OpenCV and FFmpeg.
  11. # Environment variables that begin with 'FRIGATE_' may be referenced in {}
  12. ffmpeg_input: rtsp://viewer:{FRIGATE_RTSP_PASSWORD}@10.0.10.10:554/cam/realmonitor?channel=1&subtype=2
  13. ################
  14. ## Optional mask. Must be the same dimensions as your video feed.
  15. ## The mask works by looking at the bottom center of the bounding box for the detected
  16. ## person in the image. If that pixel in the mask is a black pixel, it ignores it as a
  17. ## false positive. In my mask, the grass and driveway visible from my backdoor camera
  18. ## are white. The garage doors, sky, and trees (anywhere it would be impossible for a
  19. ## person to stand) are black.
  20. ################
  21. # mask: back-mask.bmp
  22. ################
  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. ################
  27. take_frame: 1
  28. ################
  29. # Optional hardware acceleration parameters for ffmpeg. If your hardware supports it, it can
  30. # greatly reduce the CPU power used to decode the video stream. You will need to determine which
  31. # parameters work for your specific hardware. These may work for those with Intel hardware that
  32. # supports QuickSync.
  33. ################
  34. # ffmpeg_hwaccel_args:
  35. # - -hwaccel
  36. # - vaapi
  37. # - -hwaccel_device
  38. # - /dev/dri/renderD128
  39. # - -hwaccel_output_format
  40. # - yuv420p
  41. ################
  42. # FFmpeg log level. Default is "panic". https://ffmpeg.org/ffmpeg.html#Generic-options
  43. ################
  44. # ffmpeg_log_level: panic
  45. ################
  46. # Optional custom input args. Some cameras may need custom ffmpeg params to work reliably. Specifying
  47. # these will replace the default input params.
  48. ################
  49. # ffmpeg_input_args: []
  50. ################
  51. # Optional custom output args. Some cameras may need custom ffmpeg params to work reliably. Specifying
  52. # these will replace the default output params.
  53. ################
  54. # ffmpeg_output_args: []
  55. regions:
  56. - size: 350
  57. x_offset: 0
  58. y_offset: 300
  59. min_person_area: 5000
  60. max_person_area: 100000
  61. threshold: 0.5
  62. - size: 400
  63. x_offset: 350
  64. y_offset: 250
  65. min_person_area: 2000
  66. max_person_area: 100000
  67. threshold: 0.5
  68. - size: 400
  69. x_offset: 750
  70. y_offset: 250
  71. min_person_area: 2000
  72. max_person_area: 100000
  73. threshold: 0.5