config.example.yml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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
  7. #################
  8. ## Environment variables that begin with 'FRIGATE_' may be referenced in {}.
  9. ## password: '{FRIGATE_MQTT_PASSWORD}'
  10. #################
  11. # password: password # Optional
  12. #################
  13. # Default ffmpeg args. Optional and can be overwritten per camera.
  14. # Should work with most RTSP cameras that send h264 video
  15. # Built from the properties below with:
  16. # "ffmpeg" + global_args + input_args + "-i" + input + output_args
  17. #################
  18. # ffmpeg:
  19. # global_args:
  20. # - -hide_banner
  21. # - -loglevel
  22. # - panic
  23. # hwaccel_args: []
  24. # input_args:
  25. # - -avoid_negative_ts
  26. # - make_zero
  27. # - -fflags
  28. # - nobuffer
  29. # - -flags
  30. # - low_delay
  31. # - -strict
  32. # - experimental
  33. # - -fflags
  34. # - +genpts+discardcorrupt
  35. # - -vsync
  36. # - drop
  37. # - -rtsp_transport
  38. # - tcp
  39. # - -stimeout
  40. # - '5000000'
  41. # - -use_wallclock_as_timestamps
  42. # - '1'
  43. # output_args:
  44. # - -f
  45. # - rawvideo
  46. # - -pix_fmt
  47. # - rgb24
  48. ####################
  49. # Global object configuration. Applies to all cameras
  50. # unless overridden at the camera levels.
  51. # Keys must be valid labels. By default, the model uses coco (https://dl.google.com/coral/canned_models/coco_labels.txt).
  52. # All labels from the model are reported over MQTT. These values are used to filter out false positives.
  53. # min_area (optional): minimum width*height of the bounding box for the detected person
  54. # max_area (optional): maximum width*height of the bounding box for the detected person
  55. # threshold (optional): The minimum decimal percentage (50% hit = 0.5) for the confidence from tensorflow
  56. ####################
  57. objects:
  58. track:
  59. - person
  60. - car
  61. - truck
  62. filters:
  63. person:
  64. min_area: 5000
  65. max_area: 100000
  66. threshold: 0.5
  67. cameras:
  68. back:
  69. ffmpeg:
  70. ################
  71. # Source passed to ffmpeg after the -i parameter. Supports anything compatible with OpenCV and FFmpeg.
  72. # Environment variables that begin with 'FRIGATE_' may be referenced in {}
  73. ################
  74. input: rtsp://viewer:{FRIGATE_RTSP_PASSWORD}@10.0.10.10:554/cam/realmonitor?channel=1&subtype=2
  75. #################
  76. # These values will override default values for just this camera
  77. #################
  78. # global_args: []
  79. # hwaccel_args: []
  80. # input_args: []
  81. # output_args: []
  82. ################
  83. ## Optionally specify the resolution of the video feed. Frigate will try to auto detect if not specified
  84. ################
  85. # height: 1280
  86. # width: 720
  87. ################
  88. ## Optional mask. Must be the same aspect ratio as your video feed.
  89. ##
  90. ## The mask works by looking at the bottom center of the bounding box for the detected
  91. ## person in the image. If that pixel in the mask is a black pixel, it ignores it as a
  92. ## false positive. In my mask, the grass and driveway visible from my backdoor camera
  93. ## are white. The garage doors, sky, and trees (anywhere it would be impossible for a
  94. ## person to stand) are black.
  95. ##
  96. ## Masked areas are also ignored for motion detection.
  97. ################
  98. # mask: back-mask.bmp
  99. ################
  100. # Allows you to limit the framerate within frigate for cameras that do not support
  101. # custom framerates. A value of 1 tells frigate to look at every frame, 2 every 2nd frame,
  102. # 3 every 3rd frame, etc.
  103. ################
  104. take_frame: 1
  105. ################
  106. # Configuration for the snapshots in the debug view and mqtt
  107. ################
  108. snapshots:
  109. show_timestamp: True
  110. ################
  111. # Camera level object config. This config is merged with the global config above.
  112. ################
  113. objects:
  114. track:
  115. - person
  116. filters:
  117. person:
  118. min_area: 5000
  119. max_area: 100000
  120. threshold: 0.5