摄像机配置
设置摄像机输入
可为每台摄像机配置多个输入端,并可根据需要混合和匹配每个输入端的作用。这样,您就可以使用较低分辨率的数据流进行目标检测,但使用较高分辨率的数据流创建记录,反之亦然。
摄像机默认为启用,但可以使用 enabled: False
暂时禁用。仍然可以访问现有事件和录像。实时流、记录和检测将无法工作。将使用摄像机的具体配置。
每个角色只能分配给每台摄像机的一个输入端。角色选项如下:
Role | Description |
---|---|
detect | 用于目标检测的主码流。 docs |
record | 根据配置设置保存视频片段。 docs |
audio | 用于音频检测的码流。 docs |
mqtt:
host: mqtt.server.com
cameras:
back:
enabled: True
ffmpeg:
inputs:
- path: rtsp://viewer:{P2DR_RTSP_PASSWORD}@10.0.10.10:554/cam/realmonitor?channel=1&subtype=2
roles:
- detect
- rtmp # <- deprecated, recommend using restream instead
- path: rtsp://viewer:{P2DR_RTSP_PASSWORD}@10.0.10.10:554/live
roles:
- record
detect:
width: 1280 # <- optional, by default Frigate tries to automatically detect resolution
height: 720 # <- optional, by default Frigate tries to automatically detect resolution
其它摄像头只需添加到配置中的 cameras
条目下即可。
mqtt: ...
cameras:
back: ...
front: ...
side: ...
有关摄像机模式专用配置可查阅 摄像机专用配置获取更多信息。
设置摄像机 PTZ 控制
警告
并非每个 PTZ 都支持 ONVIF,而 ONVIF 是 Frigate 用来与摄像机通信的标准协议。请查阅符合 ONVIF 标准的产品官方列表、摄像机文档或摄像机制造商网站,以确保您的 PTZ 支持 ONVIF。此外,请确保您的摄像机运行的是最新固件。
在配置文件中为摄像机添加 onvif 部分:
cameras:
back:
ffmpeg: ...
onvif:
host: 10.0.10.10
port: 8000
user: admin
password: password
如果 ONVIF 连接成功,摄像机的 WebUI 中将提供 PTZ 控制功能。
支持在视场角 (FOV) 内相对移动的具有 ONVIF 功能的摄像机也可配置为自动跟踪移动物体并将其保持在画面中心。有关自动跟踪设置,请参阅 自动跟踪 文档。
ONVIF PTZ 摄像机建议
这份工作和非工作 PTZ 摄像机列表是根据用户反馈意见编制的。
Brand or specific camera | PTZ Controls | Autotracking | Notes |
---|---|---|---|
Amcrest | ✅ | ✅ | ⛔️ Generally, Amcrest should work, but some older models (like the common IP2M-841) don't support autotracking |
Amcrest ASH21 | ❌ | ❌ | No ONVIF support |
Ctronics PTZ | ✅ | ❌ | |
Dahua | ✅ | ✅ | |
Foscam R5 | ✅ | ❌ | |
Hikvision | ✅ | ❌ | Incomplete ONVIF support (MoveStatus won't update even on latest firmware) - reported with HWP-N4215IH-DE and DS-2DE3304W-DE, but likely others |
Reolink 511WA | ✅ | ❌ | Zoom only |
Reolink E1 Pro | ✅ | ❌ | |
Reolink E1 Zoom | ✅ | ❌ | |
Reolink RLC-823A 16x | ✅ | ❌ | |
Sunba 405-D20X | ✅ | ❌ | |
Tapo C200 | ✅ | ❌ | Incomplete ONVIF support |
Tapo C210 | ❌ | ❌ | Incomplete ONVIF support |
Uniview IPC672LR-AX4DUPK | ✅ | ❌ | Firmware says FOV relative movement is supported, but camera doesn't actually move when sending ONVIF commands |
Vikylin PTZ-2804X-I2 | ❌ | ❌ | Incomplete ONVIF support |