Real-Time Video Understanding

Real-time video understanding turns a model into a streaming system. The question is not only whether the model is accurate, but whether it can sample, buffer, infer, aggregate, and fire before the deadline. It connects directly to sliding-window inference, trigger-point prediction, and person tracking and track aggregation.

The latency budget

A simple latency budget is

Throughput must also hold: if a stream samples clips per second, average compute per clip must be less than seconds, with headroom for bursts. Video transformers stress this budget because attention cost grows with token count.

Worked latency budget

For a 30 fps stream sampled every third frame, the model receives

clips per second, so each clip has a compute budget of ms before the system falls behind. If the model takes 42 ms, it has throughput headroom. Latency is different:

componentvalue
8-frame buffer at 30 fps ms
model inference42.0 ms
end-to-end subtotal308.7 ms
deadline500.0 ms

The setup meets a 500 ms deadline, but the buffer contributes far more latency than the model. Reducing model time alone would not help much unless the buffering policy also changes.

Caveats

Batching improves throughput but adds queueing delay. Dropping frames can preserve latency while reducing recall for short events. Offline validation should be paired with replay tests that measure p50, p95, and worst-case trigger delay on real streams.

References