config.example.yml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. # - -f
  41. # - rawvideo
  42. # - -pix_fmt
  43. # - rgb24
  44. ####################
  45. # Global object configuration. Applies to all cameras
  46. # unless overridden at the camera levels.
  47. # Keys must be valid labels. By default, the model uses coco (https://dl.google.com/coral/canned_models/coco_labels.txt).
  48. # All labels from the model are reported over MQTT. These values are used to filter out false positives.
  49. # min_area (optional): minimum width*height of the bounding box for the detected person
  50. # max_area (optional): maximum width*height of the bounding box for the detected person
  51. # threshold (optional): The minimum decimal percentage (50% hit = 0.5) for the confidence from tensorflow
  52. ####################
  53. objects:
  54. track:
  55. - person
  56. - car
  57. - truck
  58. filters:
  59. person:
  60. min_area: 5000
  61. max_area: 100000
  62. threshold: 0.5
  63. cameras:
  64. back:
  65. ffmpeg:
  66. ################
  67. # Source passed to ffmpeg after the -i parameter. Supports anything compatible with OpenCV and FFmpeg.
  68. # Environment variables that begin with 'FRIGATE_' may be referenced in {}
  69. ################
  70. input: rtsp://viewer:{FRIGATE_RTSP_PASSWORD}@10.0.10.10:554/cam/realmonitor?channel=1&subtype=2
  71. #################
  72. # These values will override default values for just this camera
  73. #################
  74. # global_args: []
  75. # hwaccel_args: []
  76. # input_args: []
  77. # output_args: []
  78. ################
  79. ## Optionally specify the resolution of the video feed. Frigate will try to auto detect if not specified
  80. ################
  81. # height: 1280
  82. # width: 720
  83. ################
  84. ## Optional mask. Must be the same aspect ratio as your video feed.
  85. ##
  86. ## The mask works by looking at the bottom center of the bounding box for the detected
  87. ## person in the image. If that pixel in the mask is a black pixel, it ignores it as a
  88. ## false positive. In my mask, the grass and driveway visible from my backdoor camera
  89. ## are white. The garage doors, sky, and trees (anywhere it would be impossible for a
  90. ## person to stand) are black.
  91. ##
  92. ## Masked areas are also ignored for motion detection.
  93. ################
  94. # mask: back-mask.bmp
  95. ################
  96. # Allows you to limit the framerate within frigate for cameras that do not support
  97. # custom framerates. A value of 1 tells frigate to look at every frame, 2 every 2nd frame,
  98. # 3 every 3rd frame, etc.
  99. ################
  100. take_frame: 1
  101. ################
  102. # The expected framerate for the camera. Frigate will try and ensure it maintains this framerate
  103. # by dropping frames as necessary. Setting this lower than the actual framerate will allow frigate
  104. # to process every frame at the expense of realtime processing.
  105. ################
  106. fps: 5
  107. ################
  108. # Configuration for the snapshots in the debug view and mqtt
  109. ################
  110. snapshots:
  111. show_timestamp: True
  112. ################
  113. # Camera level object config. This config is merged with the global config above.
  114. ################
  115. objects:
  116. track:
  117. - person
  118. filters:
  119. person:
  120. min_area: 5000
  121. max_area: 100000
  122. threshold: 0.5