视频处理管线
视频处理管线可以理解为“摄像头 → go2rtc/FFmpeg → 解码 → detect/record → 跟踪与增强 → Review/Explore/通知”。任一层异常都会表现为不同症状。
核心说明
本页内容按该功能本身整理,不再使用通用占位说明。以下项目均与当前主题直接相关。
输入层
RTSP 超时、摄像头连接数限制或编码不兼容,通常首先表现为 go2rtc/FFmpeg 重连。
解码层
硬件加速只负责解码/编码,不等于目标检测。GPU 利用率为 0 时先确认 hwaccel preset 和设备映射。
检测层
detect 流被解码后缩放/转换为模型输入;模型尺寸、tensor layout、pixel format 与 dtype 必须和模型一致。
输出层
录像、Review、Explore、快照和通知依赖前面的媒体与事件数据。上游不稳定时不要先排查 UI。
验证与排查
- 修改或执行前记录当前版本/配置,以便回退。
- 完成后同时检查 UI 状态和后端日志,不只看一个成功提示。
- 如果问题只在单个摄像头/插件出现,先做最小范围对比,避免全局改动。
Video Pipeline
The video pipeline is camera → go2rtc/FFmpeg → decode → detect/record → tracking/enrichments → Review/Explore/notifications. Each layer has distinct failure modes.
Core behavior
This page is topic-specific rather than a generic placeholder.
Input layer
RTSP timeouts, camera connection limits and codec issues usually appear first as go2rtc/FFmpeg reconnects.
Decode layer
Video acceleration handles decode/encode, not object inference; check hwaccel preset and device mapping if GPU is idle.
Detection layer
The detect stream is transformed into the model input; size, tensor layout, pixel format and dtype must match.
Output layer
Recording, Review, Explore, snapshots and alerts depend on upstream media/events; fix upstream instability first.
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.
Canal de vídeo
La canalización es cámara → go2rtc/FFmpeg → decodificación → detección/grabación → seguimiento/enriquecimiento → Review/Explore/notificaciones.
Comportamiento
Esta página contiene contenido específico del tema, no un texto genérico.
Entrada
Timeout RTSP, límites de conexión o códecs aparecen como reconexiones.
Decodificación
La aceleración de video no es detección; revise preset y dispositivos si GPU está inactiva.
Detección
Tamaño, layout, formato de píxel y dtype deben coincidir con el modelo.
Salida
Grabación, Review, Explore y alertas dependen de etapas anteriores; corrija primero el origen.
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.
