Created
August 4, 2024 20:07
-
-
Save iursevla/c21e095fcecd21b58be504af7cf6c9c2 to your computer and use it in GitHub Desktop.
Frigate config for Reolink RLC_410W
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yaml-language-server: $schema=http://192.168.1.11:5000/api/config/schema.json | |
version: 0.14 | |
mqtt: | |
enabled: true | |
host: mqtt5 | |
detect: | |
# NOTE: Recommended value of 5. Ideally, try and reduce your FPS on the camera. | |
fps: 7 | |
# Optional: enables detection for all cameras (default: True) | |
enabled: true | |
detectors: | |
coral: | |
type: edgetpu | |
device: usb | |
objects: | |
# Optional: list of objects to track from labelmap.txt (default: shown below) | |
track: | |
- person | |
- car | |
go2rtc: | |
streams: | |
rcl_410w_main_stream: | |
- rtsp://admin:{FRIGATE_RTSP_PASSWORD}@192.168.1.160:554/h264Preview_01_main | |
rcl_410w_sub_stream: | |
- rtsp://admin:{FRIGATE_RTSP_PASSWORD}@192.168.1.160:554/h264Preview_01_sub | |
cameras: | |
rcl_410w: | |
enabled: true | |
ffmpeg: | |
hwaccel_args: preset-vaapi | |
inputs: | |
- path: rtsp://127.0.0.1:8554/rcl_410w_main_stream | |
roles: | |
- record | |
- path: rtsp://127.0.0.1:8554/rcl_410w_sub_stream | |
roles: | |
- detect | |
output_args: | |
# reolink: is already AAC (https://support.reolink.com/hc/en-us/articles/900000638523/) | |
# ffmpeg: https://docs.frigate.video/configuration/ffmpeg_presets/#output-args-presets | |
record: preset-record-generic-audio-copy | |
# From the sub stream we have a resolution: 640x360, fps: 7, bitrate: 512 | |
detect: | |
fps: 7 | |
enabled: true | |
width: 640 | |
height: 360 | |
live: | |
stream_name: rcl_410w_main_stream | |
record: | |
sync_recordings: true | |
enabled: true | |
retain: | |
days: 2 | |
mode: motion | |
events: | |
# Optional: Number of seconds before the event to include | |
pre_capture: 7 | |
# Optional: Number of seconds after the event to include | |
post_capture: 7 | |
retain: | |
default: 30 | |
mode: motion | |
# Optional: Timelapse Output Args (default: shown below). | |
# NOTE: The default args are set to fit 24 hours of recording into 1 hour playback. | |
# See https://stackoverflow.com/a/58268695 for more info on how these args work. | |
# As an example: if you wanted to go fromob 24 hours to 30 minutes that would be going | |
# from 86400 seconds to 1800 seconds which would be 1800 / 86400 = 0.02. | |
# The -r (framerate) dictates how smooth the output video is. | |
# So the args would be -vf setpts=0.0014*PTS -r 30 in that case. | |
# timelapse_args: "-vf setpts=0.0014*PTS -r 30" | |
export: | |
timelapse_args: -vf scale=trunc(iw/2)*2:trunc(ih/2)*2 -vf setpts=0.00695*PTS -r 30 -crf 28 -preset veryslow | |
# Snapshots config | |
snapshots: | |
# Optional: Enable writing jpg snapshot to /media/frigate/clips (default: shown below) | |
enabled: True | |
# Optional: save a clean PNG copy of the snapshot image (default: shown below) | |
clean_copy: True | |
# Optional: print a timestamp on the snapshots (default: shown below) | |
timestamp: true | |
# Optional: draw bounding box on the snapshots (default: shown below) | |
bounding_box: true | |
# Optional: crop the snapshot (default: shown below) | |
crop: False | |
# Optional: height to resize the snapshot to (default: original size) | |
#height: 175 | |
# Optional: Restrict snapshots 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 | |
car: 15 | |
# Optional: quality of the encoded jpeg, 0-100 (default: shown below) | |
quality: 70 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment