Video Analysis Explained: How It Works and What It Means in Production

Video analysis explained as a staged pipeline: decode, detect, track and decide, with what each stage computes and why demo models degrade on real footage.

Video Analysis Explained: How It Works and What It Means in Production
Written by TechnoLynx Published on 12 Jun 2026

Video analysis is software that inspects video automatically to detect and work out events in space and time. An AI video analyzer is not one model. Frames are decoded and preprocessed, a detector finds objects in each frame, a tracker links those detections across frames, and a final stage turns the tracks into a decision such as an alert, a count or a tag. Each stage has its own compute profile, so we would not size the whole pipeline as one block of GPU capacity. Off-the-shelf models that work in demos also fail in production at the edge cases, lighting conditions and throughput of real deployments.

How Video Analysis Works, from Raw Frames to a Decision

Video is dense data. A 10-second clip at 30 frames per second holds 300 frames, and exact analysis means processing every one of them. The algorithms can run as software on general-purpose machines or as hardware in specialised video processing units. If you want the media-side view of what each analysis function is for, from tagging to quality checks, our piece on video content analysis functions covers that ground.

NVIDIA’s DeepStream documentation describes a typical video analytic application as a chain of plugins, from input video to insights:

  • Capture and decode. Streams come in over RTSP, from files or straight from a camera. They are captured on the CPU, and the compressed frames are then decoded, in DeepStream’s case on the NVDEC hardware decoder.
  • Preprocessing. An optional step colour-converts frames or dewarps them (for fisheye and 360-degree cameras) before inference.
  • Batching and detection. Frames are grouped into batches and passed to the detector, running on TensorRT or a native framework such as PyTorch. Inference itself also needs pre- and post-processing around it.
  • Tracking. A tracker gives each detected object a persistent identity over time. We treat tracking as its own subject in how object tracking software works in a video-analysis pipeline.
  • Higher-level decision. Tracks become behaviour: dwell time, density, a rule breach, an event flag. Analysis climbs from low-level features such as appearance and location towards identity, activity and behaviour.

Where each of these runs, and how the stages hand data to one another, is covered in our walkthrough of AI video analytics pipeline placement. The point to hold onto here is simpler. Every stage you add can become the bottleneck.

A Worked Example of Video Analysis: What Each Stage Computed

A Queen’s University Belfast case study (arXiv, 2025) optimised a poultry welfare monitoring system across its detection, tracking, clustering and behaviour-analysis modules, evaluated on real farm footage. The pipeline was built in Python with PyTorch, OpenCV and ONNX Runtime GPU. Although those libraries used GPU acceleration, the pipeline as a whole ran as a sequential process. The table records what each stage did and what the authors measured.

Stage What it computes What the study found
Video input and decode Turns H.264, H.265 or MJPEG into frames Dropping H.264 from 1080p to 720p kept accuracy and cut decoding latency by more than 2×. MJPEG read fastest (over 3,000 FPS at 480p) but added artifacts in low-light and occluded regions.
Detection (UNeXt segmentation model) Bounding boxes with confidence scores per frame, plus pre- and post-processing Batch sizes up to 16 cut inference time per frame from about 6.6 ms to 2 ms. Memory peaked at 2,301 MiB, and above 16 inference time rose again.
Post-processing Connected component analysis and bounding-box extraction Stayed CPU-bound. Adding parallel jobs raised CPU load and the speedup plateaued.
Tracking Short tracklets by proximity and appearance, then merged into full trajectories using appearance, motion continuity and temporal gaps Parallelised at tracklet level as part of the optimised pipeline.
Clustering and behaviour Positions mapped to a grid to build density heatmaps, then thresholded to find aggregations Vectorised clustering was one of the applied optimisations.
End to end 5 minutes of 30 FPS video, about 9,000 frames, per zone The drinker pipeline went from 660 to 314 seconds (2.1×), and processing cost per video fell from $0.691 to $0.312, a 54.8% reduction.

The detector got faster on the GPU while the steps around it stayed on the CPU and capped the gain. The authors’ broader conclusion is that bottlenecks come not only from neural network inference but from scheduling, data flow and the way components interact. In our reading, that is the strongest argument for treating video analysis as stages rather than as a single model.

Classical Computer Vision Versus Deep Learning, Stage by Stage

A common classical technique is background subtraction. The method builds a model of the static scene, subtracts it from each new frame to produce a binary mask of moving pixels, and uses every frame both to compute the mask and to update the background model. OpenCV documents it as a technique for static cameras. That assumption is the catch. Once the camera pans, the lighting shifts or the scene is crowded, “moving pixels” stops being a reliable stand-in for “objects of interest”.

Deep learning replaces that motion cue with learned detectors and trackers that locate objects in each frame and follow them through the sequence. Its compute demand is very high. Ananthanarayanan et al. (IEEE Computer, 2017) note that some of the most accurate object-recognition DNNs need 30 GFlops for a single frame. A survey of deep learning for smart-city video analytics credits much of deep learning’s success to GPUs, whose highly parallel structure suits algorithms that process many blocks of data.

DeepStream’s NvSORT tracker is a cheap downstream stage: it associates boxes with a Kalman filter and does no pixel processing.

Can ChatGPT or Gemini Analyse a Video?

Yes, for some tasks, but we would not use one as the engine of a real-time pipeline. Google’s Gemini documentation says its models can describe, segment and extract information from video and answer questions about it. By default they sample at 1 frame per second, which Google notes may miss details in fast motion or quick scene changes. Against a 30 FPS camera, that means the model sees one frame in thirty.

Token cost is the other limit. In the STORM paper, an 8K visual-token budget corresponded to 32 frames. Without token compression, the LLM accounted for roughly 80% of inference latency when processing 256 frames.

So general multimodal models fit after the fact: summarising a clip, answering a question about an archive, labelling footage for review. They do not replace a detector and tracker running on every frame of a live stream. We draw that line in more detail in why GPU video analytics is pipeline engineering, not a content-understanding API.

Placing Decode, Detection and Tracking on the Right Processor

Neural detection and re-identification gain from a GPU: DeepStream runs both through TensorRT. Frames are batched before inference for optimal performance. NVIDIA’s own position is that CPU-bound systems struggle with the matrix multiplication computer vision requires, though that is a vendor’s claim and not a measurement. Decode is a separate case. NVDEC is a dedicated hardware engine that takes decoding off both the CPU and the GPU’s graphics engine and can run many sessions in parallel.

Some stages run on the CPU. Stream capture does, as do parts of post-processing (as the worked example showed). NVIDIA’s tracker documentation warns that the GPU can sit idle, a “GPU bubble”, whenever part of the tracker’s computation runs on the CPU. Idle capacity like that is how the hidden cost of GPU underutilisation builds up in an undifferentiated deployment.

Assumptions do not settle this. Measurement does. Kang et al. (VLDB 2021) showed in a measurement study that preprocessing such as decoding and resizing can be the bottleneck in many visual analytics systems on modern hardware. Their engine placed preprocessing on the CPU or GPU depending on the hardware and input, and achieved up to 5.9× end-to-end throughput at fixed accuracy. A system-wide profiler such as NVIDIA Nsight Systems puts CPU and GPU activity on one timeline so bottlenecks and dependencies become visible. How to run that profile against a real workload is covered in our worked GPU video analytics throughput and cost example. We would not assume that moving a stage to the GPU lowers cost per stream. The profile decides that, stage by stage.

Should Video Analysis Run on the Server or at the Edge?

It depends on latency, bandwidth, available compute and how much accuracy you can give up. Video analysis on CCTV is deployed either on the cameras themselves or centrally on dedicated processing systems. Ananthanarayanan et al. describe a hierarchy of edge devices, private clusters and public cloud, each with different hardware, with a central manager placing each pipeline module across them.

Factor Favours the edge Favours the server or cloud
Latency Time-sensitive live alerts. Transmission latency to distant cloud servers is unsuitable for live analytics. Offline, archive or batch analysis where turnaround is not critical.
Bandwidth Processing near the source avoids sending all video upstream. Sites where bandwidth is plentiful, or where tuned lossy compression keeps detector performance while cutting transmission.
Compute Tasks that do not need extremely high compute. Heavier models and trackers. On Jetson, DeepStream’s MaskTracker supports only a reduced segmentation-only mode because of resource limits.
Accuracy Acceptable when downscaling to fit edge hardware still meets the requirement; downscaling does reduce accuracy. Full-resolution inference and larger models where accuracy is the constraint.
Power Battery-powered devices make energy a first-order constraint. Mains-powered racks.

The EdgeDashAnalytics thesis shows the edge trade-off concretely. Running on phones, frame extraction alone was slow enough to prevent real-time turnaround. Near real time came only after optimising the other stages and accepting downscaled frames and early stopping. DeepStream, for one, deploys on Jetson edge devices or on datacenter GPUs such as the T4. The same toolkit thus serves both placements.

Why Off-the-Shelf Video Analysis Software Degrades on Real Footage

Object detection and tracking are treated as solved problems with open-source answers. Under real conditions and at real scale they are not, because production edge cases, lighting and throughput expose what a demo never tested. The evidence points to several separate mechanisms:

  • Compression. A 2021 structured analysis ran YOLO on 426,816 codec-degraded versions of KITTI frames. Aggressive lossy settings caused significant drops in detection overlap, while some carefully chosen settings did slightly better than the baseline.
  • Noise, blur and lighting. Hendrycks and Dietterich (ICLR 2019) list corruptions that show up in real footage, including Gaussian noise in low light, motion blur, fog, brightness and contrast changes and JPEG artifacts. On their synthetic scale-perturbation sequences, a ResNet-18 classifier trained on clean images had a 15.6% probability of flipping its top-1 prediction between adjacent frames.
  • Occlusion. Partially occluded objects produce ill-sized, off-centre boxes, which NVIDIA’s tracker documentation names as a major cause of tracking failures and ID switches. ByteTrack’s authors point out that most trackers discard low-score detections, so occluded objects simply go missing.
  • Camera-specific conditions. Resource-accuracy behaviour depends on the specific camera view. Lowering resolution may not hurt a zoomed-in licence plate reader yet hurts one that is not zoomed in, so profiles must be built per camera.
  • Model size forced by hardware. In the EdgeDashAnalytics thesis, the lightweight MobileNetV1 missed a cyclist and split one car into two. It was still chosen because the more accurate EfficientDet-Lite4 could not run in real time.

The boundary matters. The trouble starts when a demo result is taken as a production estimate. Wikipedia’s summary of the field notes that commercial video analysis quality is hard to pin down because it depends on use case, implementation, configuration and computing. The practical answer is to evaluate on your own footage, at your own compression settings, before committing hardware.

That evaluation, together with a per-stage profile, is the kind of engineering TechnoLynx’s Computer Vision R&D work takes on for teams moving a video model from demo to production. The cost side of the server-or-edge choice for media workloads is worked through in when GPU video analytics pays off in media pipelines.

FAQ

How Do You Analyse a Video Frame by Frame?

Decode the video into individual frames, convert each one into the format the model expects, and run the analysis on each frame in turn. On mobile platforms this extraction step is needed because analysis libraries accept bitmap images rather than video files, and it can be slow.

What Are the Disadvantages of Video Analysis?

Video analysis is computationally heavy because video holds so many frames. Its accuracy in commercial settings is hard to establish in advance, because it depends on the use case, implementation, configuration and available computing.