Skip to content

Instantly share code, notes, and snippets.

@nshores
Created June 16, 2021 05:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nshores/c846ec1d51fdd18f0a56a6d4a6fd0ab2 to your computer and use it in GitHub Desktop.
Save nshores/c846ec1d51fdd18f0a56a6d4a6fd0ab2 to your computer and use it in GitHub Desktop.
frigate_config.yml
mqtt:
host: tasks.hivemq-broker
cameras:
front_door:
ffmpeg:
inputs:
- path: rtsp://admin:4118nick@192.168.99.148:554/live
roles:
- detect
- rtmp
- clips
width: 1920
height: 1080
fps: 5
motion:
mask:
- 0,622,1920,612,1920,0,0,0
- 1366,1080,1920,1080,1920,980,1366,986
clips:
# Required: enables clips for the camera (default: shown below)
# This value can be set via MQTT and will be updated in startup based on retained value
enabled: True
# Optional: Number of seconds before the event to include in the clips (default: shown below)
pre_capture: 5
# Optional: Number of seconds after the event to include in the clips (default: shown below)
post_capture: 5
# Optional: Objects to save clips for. (default: all tracked objects)
objects:
- person
- cat
- dog
# Optional: Restrict clips to objects that entered any of the listed zones (default: no required zones)
required_zones: []
# Optional: Camera override for retention settings (default: global values)
retain:
# Required: Default retention days (default: shown below)
default: 10
# Optional: Per object retention days
objects:
person: 15
objects:
filters:
person:
mask:
- 1108,1080,1920,1080,1920,0,1106,0
- 0,498,0,869,463,937,830,0,0,0
- 708,0,1008,0,1000,670,668,682
detectors:
cpu1:
type: cpu
cpu2:
type: cpu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment