-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathconf.yaml
More file actions
68 lines (63 loc) · 2.85 KB
/
Copy pathconf.yaml
File metadata and controls
68 lines (63 loc) · 2.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# CamKeep 配置示例
# stream_url 是 go2rtc 接入源,支持 rtsp://、onvif://、ffmpeg:、exec: 等 go2rtc source。
# 旧字段 rtsp_url 仍兼容;新配置建议统一使用 stream_url。
daily_merge:
enabled: false # 是否每天按自然小时合并前一天录像
time: "03:30" # 每日合并时间,建议放在低峰时段
merge_motion_records: false # 是否同时合并动检录像;默认保留动检片段
cameras:
# 普通录像:适合 7x24 安防录制
- id: "camera-1" # 摄像头唯一 ID,会作为 go2rtc 流名和录像目录名
order: 0 # 展示排序,数字越小越靠前
stream_url: "rtsp://admin:password@192.168.2.110:554/Streaming/Channels/101"
motion_url: "" # 可选,仅动检识别使用;留空则使用默认 go2rtc 流
retention_days: 7 # 保留 7 天;-1 表示不按天数自动清理
segment_duration: 300 # 每段 300 秒
format: "mp4" # 新建摄像头默认 mp4,浏览器点播兼容性更好;需要边写边播可改 ts
min_size_kb: 1024 # 小于 1MB 的已完成碎片自动删除
record_time: "00:00-23:59"
mode: "normal" # 配置态仅支持 normal 或 timelapse
motion_detect: false # 开启动检录像时保持 mode=normal,并设置为 true
motion_event_source: "frame_diff" # frame_diff / onvif / auto;auto 表示 ONVIF 可用优先,否则回退本地帧差
motion_mark_enabled: false # 普通录制时同时生成动检时间轴标记,不影响录像启停
motion_mark_event_source: "auto" # 普通录制标记来源:frame_diff / onvif / auto
motionDetectRatioThreshold: 0.01
# ONVIF 接入:支持 ONVIF 能力探测和可用时的 PTZ / 成像控制
- id: "camera-onvif"
order: 10
stream_url: "onvif://admin:password@192.168.2.120"
motion_url: ""
retention_days: 7
segment_duration: 300
format: "mp4"
min_size_kb: 1024
record_time: "00:00-23:59"
mode: "normal"
motion_detect: false
motion_event_source: "auto"
motion_mark_enabled: true
motion_mark_event_source: "auto"
motionDetectRatioThreshold: 0.01
# 延时摄影:按间隔抓帧,适合长时间慢变化场景
- id: "camera-timelapse"
order: 20
stream_url: "rtsp://admin:password@192.168.2.130:554/Streaming/Channels/101"
motion_url: ""
retention_days: 30
segment_duration: 3600
format: "mp4"
min_size_kb: 1024
record_time: "07:00-19:00"
mode: "timelapse"
capture_interval: 5 # 每 5 秒抓 1 帧
# go2rtc 托管流:通常由 Web 配置页“从 go2rtc 导入”自动生成
# - id: "existing-go2rtc-stream"
# order: 30
# stream_url: "managed_by_go2rtc"
# auto_discovered: true
# retention_days: 7
# segment_duration: 300
# format: "mp4"
# min_size_kb: 1024
# record_time: "00:00-23:59"
# mode: "normal"