摄像头设置
摄像头设置的目标是得到稳定的主码流、低负载的检测流,以及尽量少的摄像头端并发连接。优先使用 RTSP/ONVIF,并通过 go2rtc 做复用。
核心说明
本页内容按该功能本身整理,不再使用通用占位说明。以下项目均与当前主题直接相关。
摄像头端参数
主码流按录像质量设置;子码流可降低到适合检测的分辨率和帧率。通常无需把 detect 设置为 25/30 FPS。
角色
FFmpeg input 的 roles 决定该输入用于 detect、record、audio 等用途;同一输入可以承担多个角色,但应避免重复拉流。
go2rtc
优先把摄像头源放进 go2rtc,再让实时预览和 FFmpeg 读取 restream,可显著减少设备连接数。
验证
先确认 go2rtc 能播放,再确认 FFmpeg 无重连,再观察 detect、record 和 Review;分层验证比同时修改所有参数更容易定位问题。
验证与排查
- 修改或执行前记录当前版本/配置,以便回退。
- 完成后同时检查 UI 状态和后端日志,不只看一个成功提示。
- 如果问题只在单个摄像头/插件出现,先做最小范围对比,避免全局改动。
Camera Setup
Camera setup aims for a stable recording stream, an efficient detection stream and as few direct camera connections as possible. Prefer RTSP/ONVIF and restream through go2rtc.
Core behavior
This page is topic-specific rather than a generic placeholder.
Camera settings
Tune the main stream for recording quality and the substream for detection; high detect FPS is usually unnecessary.
Roles
FFmpeg input roles determine detect, record and audio usage; avoid duplicate pulls from the camera.
go2rtc
Put camera sources in go2rtc and let live/FFmpeg consume restreams to reduce camera connections.
Verification
Verify go2rtc, then FFmpeg stability, then detect/record/Review in layers.
Verification and troubleshooting
- Record the current version/config before changes so rollback is possible.
- Verify both UI state and backend logs after the change.
- If only one camera/plugin is affected, isolate it before making global changes.
Configuración de cámaras
La configuración de cámara busca un stream estable de grabación, otro eficiente para detección y pocas conexiones directas. Prefiera RTSP/ONVIF y go2rtc.
Comportamiento
Esta página contiene contenido específico del tema, no un texto genérico.
Ajustes de cámara
Configure el principal para calidad y el secundario para detección; no suele requerir 25/30 FPS.
Roles
Los roles FFmpeg determinan detección, grabación y audio; evite conexiones duplicadas.
go2rtc
Centralice fuentes en go2rtc y use restream para reducir conexiones.
Verificación
Compruebe go2rtc, después FFmpeg y por último detección/grabación/Review.
Verificación y diagnóstico
- Registre versión/configuración antes de cambiar para poder revertir.
- Compruebe UI y logs del backend después.
- Si afecta a una sola cámara/plugin, aíslelo antes de cambios globales.
