2019-03-28 13:30:58 +01:00
|
|
|
web_port: 5000
|
|
|
|
|
|
|
|
mqtt:
|
2019-03-30 13:58:31 +01:00
|
|
|
host: mqtt.server.com
|
|
|
|
topic_prefix: frigate
|
2019-12-08 16:09:55 +01:00
|
|
|
# client_id: frigate # Optional -- set to override default client id of 'frigate' if running multiple instances
|
2019-05-10 16:36:22 +02:00
|
|
|
# user: username # Optional -- Uncomment for use
|
|
|
|
# password: password # Optional -- Uncomment for use
|
2019-03-28 13:30:58 +01:00
|
|
|
|
2019-12-08 22:46:43 +01:00
|
|
|
#################
|
|
|
|
# Default ffmpeg args. Optional and can be overwritten per camera.
|
|
|
|
# Should work with most RTSP cameras that send h264 video
|
|
|
|
# Built from the properties below with:
|
|
|
|
# "ffmpeg" + global_args + input_args + "-i" + input + output_args
|
|
|
|
#################
|
|
|
|
# ffmpeg:
|
|
|
|
# global_args:
|
|
|
|
# - -hide_banner
|
|
|
|
# - -loglevel
|
|
|
|
# - panic
|
|
|
|
# hwaccel_args: []
|
|
|
|
# input_args:
|
|
|
|
# - -avoid_negative_ts
|
|
|
|
# - make_zero
|
|
|
|
# - -fflags
|
|
|
|
# - nobuffer
|
|
|
|
# - -flags
|
|
|
|
# - low_delay
|
|
|
|
# - -strict
|
|
|
|
# - experimental
|
|
|
|
# - -fflags
|
|
|
|
# - +genpts+discardcorrupt
|
|
|
|
# - -vsync
|
|
|
|
# - drop
|
|
|
|
# - -rtsp_transport
|
|
|
|
# - tcp
|
|
|
|
# - -stimeout
|
|
|
|
# - '5000000'
|
|
|
|
# - -use_wallclock_as_timestamps
|
|
|
|
# - '1'
|
|
|
|
# output_args:
|
|
|
|
# - -vf
|
|
|
|
# - mpdecimate
|
|
|
|
# - -f
|
|
|
|
# - rawvideo
|
|
|
|
# - -pix_fmt
|
|
|
|
# - rgb24
|
|
|
|
|
2019-03-28 13:30:58 +01:00
|
|
|
cameras:
|
|
|
|
back:
|
2019-12-08 22:46:43 +01:00
|
|
|
ffmpeg:
|
|
|
|
################
|
|
|
|
# Source passed to ffmpeg after the -i parameter. Supports anything compatible with OpenCV and FFmpeg.
|
|
|
|
# Environment variables that begin with 'FRIGATE_' may be referenced in {}
|
|
|
|
################
|
|
|
|
input: rtsp://viewer:{FRIGATE_RTSP_PASSWORD}@10.0.10.10:554/cam/realmonitor?channel=1&subtype=2
|
|
|
|
#################
|
|
|
|
# These values will override default values for just this camera
|
|
|
|
#################
|
|
|
|
# global_args: []
|
|
|
|
# hwaccel_args: []
|
|
|
|
# input_args: []
|
|
|
|
# output_args: []
|
2019-07-13 14:45:56 +02:00
|
|
|
|
|
|
|
################
|
|
|
|
## Optional mask. Must be the same dimensions as your video feed.
|
|
|
|
## The mask works by looking at the bottom center of the bounding box for the detected
|
|
|
|
## person in the image. If that pixel in the mask is a black pixel, it ignores it as a
|
|
|
|
## false positive. In my mask, the grass and driveway visible from my backdoor camera
|
|
|
|
## are white. The garage doors, sky, and trees (anywhere it would be impossible for a
|
|
|
|
## person to stand) are black.
|
|
|
|
################
|
|
|
|
# mask: back-mask.bmp
|
|
|
|
|
|
|
|
################
|
2019-07-13 14:40:53 +02:00
|
|
|
# Allows you to limit the framerate within frigate for cameras that do not support
|
|
|
|
# custom framerates. A value of 1 tells frigate to look at every frame, 2 every 2nd frame,
|
|
|
|
# 3 every 3rd frame, etc.
|
2019-07-13 14:45:56 +02:00
|
|
|
################
|
2019-07-02 04:20:35 +02:00
|
|
|
take_frame: 1
|
2019-07-13 14:45:56 +02:00
|
|
|
|
2019-12-08 16:39:37 +01:00
|
|
|
################
|
|
|
|
# size: size of the region in pixels
|
|
|
|
# x_offset/y_offset: position of the upper left corner of your region (top left of image is 0,0)
|
2019-12-08 16:43:21 +01:00
|
|
|
# min_person_area (optional): minimum width*height of the bounding box for the detected person
|
|
|
|
# max_person_area (optional): maximum width*height of the bounding box for the detected person
|
|
|
|
# threshold (optional): The minimum decimal percentage (50% hit = 0.5) for the confidence from tensorflow
|
2019-12-08 16:39:37 +01:00
|
|
|
# Tips: All regions are resized to 300x300 before detection because the model is trained on that size.
|
|
|
|
# Resizing regions takes CPU power. Ideally, all regions should be as close to 300x300 as possible.
|
|
|
|
# Defining a region that goes outside the bounds of the image will result in errors.
|
|
|
|
################
|
2019-03-28 13:30:58 +01:00
|
|
|
regions:
|
|
|
|
- size: 350
|
|
|
|
x_offset: 0
|
|
|
|
y_offset: 300
|
2019-03-30 13:58:31 +01:00
|
|
|
min_person_area: 5000
|
2019-12-08 14:16:30 +01:00
|
|
|
max_person_area: 100000
|
2019-05-11 14:39:27 +02:00
|
|
|
threshold: 0.5
|
2019-03-28 13:30:58 +01:00
|
|
|
- size: 400
|
|
|
|
x_offset: 350
|
|
|
|
y_offset: 250
|
2019-03-30 13:58:31 +01:00
|
|
|
min_person_area: 2000
|
2019-12-08 14:16:30 +01:00
|
|
|
max_person_area: 100000
|
2019-05-11 14:39:27 +02:00
|
|
|
threshold: 0.5
|
2019-03-28 13:30:58 +01:00
|
|
|
- size: 400
|
|
|
|
x_offset: 750
|
|
|
|
y_offset: 250
|
2019-03-30 13:58:31 +01:00
|
|
|
min_person_area: 2000
|
2019-12-08 14:16:30 +01:00
|
|
|
max_person_area: 100000
|
2019-05-11 14:39:27 +02:00
|
|
|
threshold: 0.5
|