config.example.yml 2.7 KB

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