config.example.yml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. #################
  9. # Default ffmpeg args. Optional and can be overwritten per camera.
  10. # Should work with most RTSP cameras that send h264 video
  11. # Built from the properties below with:
  12. # "ffmpeg" + global_args + input_args + "-i" + input + output_args
  13. #################
  14. # ffmpeg:
  15. # global_args:
  16. # - -hide_banner
  17. # - -loglevel
  18. # - panic
  19. # hwaccel_args: []
  20. # input_args:
  21. # - -avoid_negative_ts
  22. # - make_zero
  23. # - -fflags
  24. # - nobuffer
  25. # - -flags
  26. # - low_delay
  27. # - -strict
  28. # - experimental
  29. # - -fflags
  30. # - +genpts+discardcorrupt
  31. # - -vsync
  32. # - drop
  33. # - -rtsp_transport
  34. # - tcp
  35. # - -stimeout
  36. # - '5000000'
  37. # - -use_wallclock_as_timestamps
  38. # - '1'
  39. # output_args:
  40. # - -vf
  41. # - mpdecimate
  42. # - -f
  43. # - rawvideo
  44. # - -pix_fmt
  45. # - rgb24
  46. cameras:
  47. back:
  48. ffmpeg:
  49. ################
  50. # Source passed to ffmpeg after the -i parameter. Supports anything compatible with OpenCV and FFmpeg.
  51. # Environment variables that begin with 'FRIGATE_' may be referenced in {}
  52. ################
  53. input: rtsp://viewer:{FRIGATE_RTSP_PASSWORD}@10.0.10.10:554/cam/realmonitor?channel=1&subtype=2
  54. #################
  55. # These values will override default values for just this camera
  56. #################
  57. # global_args: []
  58. # hwaccel_args: []
  59. # input_args: []
  60. # output_args: []
  61. ################
  62. ## Optional mask. Must be the same dimensions as your video feed.
  63. ## The mask works by looking at the bottom center of the bounding box for the detected
  64. ## person in the image. If that pixel in the mask is a black pixel, it ignores it as a
  65. ## false positive. In my mask, the grass and driveway visible from my backdoor camera
  66. ## are white. The garage doors, sky, and trees (anywhere it would be impossible for a
  67. ## person to stand) are black.
  68. ################
  69. # mask: back-mask.bmp
  70. ################
  71. # Allows you to limit the framerate within frigate for cameras that do not support
  72. # custom framerates. A value of 1 tells frigate to look at every frame, 2 every 2nd frame,
  73. # 3 every 3rd frame, etc.
  74. ################
  75. take_frame: 1
  76. ################
  77. # size: size of the region in pixels
  78. # x_offset/y_offset: position of the upper left corner of your region (top left of image is 0,0)
  79. # min_person_area (optional): minimum width*height of the bounding box for the detected person
  80. # max_person_area (optional): maximum width*height of the bounding box for the detected person
  81. # threshold (optional): The minimum decimal percentage (50% hit = 0.5) for the confidence from tensorflow
  82. # Tips: All regions are resized to 300x300 before detection because the model is trained on that size.
  83. # Resizing regions takes CPU power. Ideally, all regions should be as close to 300x300 as possible.
  84. # Defining a region that goes outside the bounds of the image will result in errors.
  85. ################
  86. regions:
  87. - size: 350
  88. x_offset: 0
  89. y_offset: 300
  90. min_person_area: 5000
  91. max_person_area: 100000
  92. threshold: 0.5
  93. - size: 400
  94. x_offset: 350
  95. y_offset: 250
  96. min_person_area: 2000
  97. max_person_area: 100000
  98. threshold: 0.5
  99. - size: 400
  100. x_offset: 750
  101. y_offset: 250
  102. min_person_area: 2000
  103. max_person_area: 100000
  104. threshold: 0.5