# 必须要修改的字段:用户名 密码 IP地址
# 代码中所有的【用户名】【密码】【IP地址】需要改为自己摄像头的,其他保持默认即可,也可按需修改
# 如果不使用 MQTT,设置 enabled: false
mqtt:
enabled: false
# ============================================
# 数据库配置
# ============================================
database:
path: /config/frigate.db
# ============================================
# 检测器配置
# ============================================
detectors:
ov:
type: openvino
device: GPU
model:
width: 300
height: 300
input_tensor: nhwc
input_pixel_format: bgr
path: /openvino-model/ssdlite_mobilenet_v2.xml
labelmap_path: /openvino-model/coco_91cl_bkgr.txt
# ============================================
# 鸟瞰图配置
# ============================================
birdseye:
enabled: true
mode: objects
# ============================================
# UI 配置
# ============================================
ui:
time_format: browser
date_style: short
time_style: medium
# ============================================
# go2rtc 配置 ==========
go2rtc:
streams:
3f_living_room:
- rtsp://用户名:密码@IP地址:554/stream1
3f_living_room_sub:
- rtsp://用户名:密码@IP地址:554/stream2
# ============================================
# FFmpeg 全局配置
# ============================================
ffmpeg:
hwaccel_args:
- -hwaccel
- vaapi
- -vaapi_device
- /dev/dri/renderD128
- -hwaccel_output_format
- yuv420p
# 全局输入参数以提高稳定性
input_args:
- -avoid_negative_ts
- make_zero
- -fflags
- +genpts+discardcorrupt
- -rtsp_transport
- tcp
- -timeout
- "5000000"
- -use_wallclock_as_timestamps
- "1"
# ============================================
# 摄像头配置
# ============================================
cameras:
3f_living_room:
enabled: true
# FFmpeg 配置
ffmpeg:
inputs:
# 主码流 - 录制 (从 go2rtc)
- path: rtsp://127.0.0.1:8554/3f_living_room
roles:
- record
# 子码流 - 检测 (从 go2rtc)
- path: rtsp://127.0.0.1:8554/3f_living_room_sub
roles:
- detect
output_args:
record: preset-record-generic-audio-copy # 直接复制,不转码
record:
enabled: true
retain:
days: 7
mode: motion
alerts:
retain:
days: 7
detections:
retain:
days: 7
# 检测配置
detect:
enabled: true
# 运动检测配置 - 必须启用才能触发录制
motion:
enabled: true
threshold: 60 # 运动像素差阈值(0–255)越低越灵敏
contour_area: 20 # 运动区域最小面积(像素占比 %)越低越灵敏
improve_contrast: true
mask: 0.097,0.045,0.429,0.043,0.429,0.099,0.095,0.098
# 对象过滤
objects:
track:
- person
filters:
person:
min_score: 0.6
threshold: 0.75
min_ratio: 0.2
max_ratio: 3.0
# ============================================
# ONVIF 云台控制配置
# ============================================
onvif:
host: IP地址
port: 80
user: 用户名
password: 密码
# ============================================
# 系统统计配置
# ============================================
telemetry:
stats:
intel_gpu_stats: true
version: 0.16-0