2019-03-28 07:30:58 -05:00
|
|
|
web_port: 5000
|
|
|
|
|
|
|
|
mqtt:
|
2019-03-30 07:58:31 -05:00
|
|
|
host: mqtt.server.com
|
|
|
|
topic_prefix: frigate
|
2019-12-08 09:09:55 -06:00
|
|
|
# client_id: frigate # Optional -- set to override default client id of 'frigate' if running multiple instances
|
2019-05-10 09:36:22 -05:00
|
|
|
# user: username # Optional -- Uncomment for use
|
|
|
|
# password: password # Optional -- Uncomment for use
|
2019-03-28 07:30:58 -05:00
|
|
|
|
2019-12-08 15:46:43 -06: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:
|
|
|
|
# - -f
|
|
|
|
# - rawvideo
|
|
|
|
# - -pix_fmt
|
|
|
|
# - rgb24
|
2019-12-14 15:18:21 -06:00
|
|
|
|
|
|
|
####################
|
2020-01-15 07:28:12 -06:00
|
|
|
# Global object configuration. Applies to all cameras
|
|
|
|
# unless overridden at the camera levels.
|
2019-12-14 15:18:21 -06:00
|
|
|
# Keys must be valid labels. By default, the model uses coco (https://dl.google.com/coral/canned_models/coco_labels.txt).
|
|
|
|
# All labels from the model are reported over MQTT. These values are used to filter out false positives.
|
2020-01-15 07:28:12 -06:00
|
|
|
# min_area (optional): minimum width*height of the bounding box for the detected person
|
|
|
|
# max_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-14 15:18:21 -06:00
|
|
|
####################
|
|
|
|
objects:
|
2020-01-15 07:28:12 -06:00
|
|
|
track:
|
|
|
|
- person
|
|
|
|
- car
|
|
|
|
- truck
|
|
|
|
filters:
|
|
|
|
person:
|
|
|
|
min_area: 5000
|
|
|
|
max_area: 100000
|
|
|
|
threshold: 0.5
|
2019-12-14 15:18:21 -06:00
|
|
|
|
2019-03-28 07:30:58 -05:00
|
|
|
cameras:
|
|
|
|
back:
|
2019-12-08 15:46:43 -06: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: []
|
2020-01-18 20:24:44 -06:00
|
|
|
|
|
|
|
################
|
|
|
|
## Optionally specify the resolution of the video feed. Frigate will try to auto detect if not specified
|
|
|
|
################
|
|
|
|
# height: 1280
|
|
|
|
# width: 720
|
2019-07-13 07:45:56 -05:00
|
|
|
|
|
|
|
################
|
2020-02-22 08:59:16 -06:00
|
|
|
## Optional mask. Must be the same aspect ratio as your video feed.
|
|
|
|
##
|
2019-07-13 07:45:56 -05:00
|
|
|
## 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.
|
2020-02-22 08:59:16 -06:00
|
|
|
##
|
|
|
|
## Masked areas are also ignored for motion detection.
|
2019-07-13 07:45:56 -05:00
|
|
|
################
|
|
|
|
# mask: back-mask.bmp
|
|
|
|
|
|
|
|
################
|
2019-07-13 07:40:53 -05: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 07:45:56 -05:00
|
|
|
################
|
2019-07-01 21:20:35 -05:00
|
|
|
take_frame: 1
|
2019-12-14 15:18:21 -06:00
|
|
|
|
2020-01-18 08:34:44 -06:00
|
|
|
################
|
2020-02-22 08:59:16 -06:00
|
|
|
# The expected framerate for the camera. Frigate will try and ensure it maintains this framerate
|
|
|
|
# by dropping frames as necessary. Setting this lower than the actual framerate will allow frigate
|
|
|
|
# to process every frame at the expense of realtime processing.
|
2020-01-18 08:34:44 -06:00
|
|
|
################
|
2020-02-22 08:59:16 -06:00
|
|
|
fps: 5
|
2020-01-18 08:34:44 -06:00
|
|
|
|
2020-01-18 08:41:55 -06:00
|
|
|
################
|
2020-02-22 08:59:16 -06:00
|
|
|
# Configuration for the snapshots in the debug view and mqtt
|
2020-01-18 08:41:55 -06:00
|
|
|
################
|
|
|
|
snapshots:
|
|
|
|
show_timestamp: True
|
|
|
|
|
2020-01-15 07:28:12 -06:00
|
|
|
################
|
2020-01-16 17:15:06 -06:00
|
|
|
# Camera level object config. This config is merged with the global config above.
|
2020-01-15 07:28:12 -06:00
|
|
|
################
|
2019-12-14 15:18:21 -06:00
|
|
|
objects:
|
2020-01-15 07:28:12 -06:00
|
|
|
track:
|
|
|
|
- person
|
|
|
|
filters:
|
|
|
|
person:
|
|
|
|
min_area: 5000
|
|
|
|
max_area: 100000
|
|
|
|
threshold: 0.5
|