> ## Documentation Index
> Fetch the complete documentation index at: https://imsdkdocs.qualcomm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Building a Scalable Multi-Stream AI Video Wall with QIM SDK

> Process up to 31 concurrent IP camera streams in parallel with YOLOv8 object detection, compositing all streams into a single output and streaming over RTSP/WebRTC.

<video src="https://mintcdn.com/qimsdk/s87WLJDbrGRv5wQK/blogs/images/security-video-wall_expected-output1.mp4?fit=max&auto=format&n=s87WLJDbrGRv5wQK&q=85&s=5017fad112cc5673d0b9405f7cdfd527" autoPlay muted loop playsInline />

QIM SDK · Qualcomm

Multi-Stream AI

Process up to 31 concurrent IP camera streams in parallel with YOLOv8 object detection,
compositing all streams into a unified video wall output and streaming over RTSP or WebRTC.

QIM SDK Team
·
Jun 14, 2026
·
[← All posts](https://imsdkdocs.qualcomm.com/blogs)

***

## Introduction

Modern security systems rarely depend on a single camera. In real deployments, operators need to monitor dozens of streams simultaneously across warehouses, campuses, retail spaces, and large environments. As camera counts grow, manual monitoring becomes impractical, and traditional CPU-only processing struggles to keep up — increasing latency, power usage, and system load.

The QIM SDK addresses this directly. It enables scalable, real-time multi-stream video analytics at the edge using hardware-accelerated GStreamer plugins that shift demanding work — decoding, frame preparation, AI inference, and encoding — entirely onto dedicated hardware blocks. Frame preparation includes resizing frames to match model input, converting YUV to RGB, and normalizing pixel values for neural network input.

The pipeline processes each stream independently, running object detection on every input source while preserving a consistent visual experience. To improve efficiency, inference runs at a reduced frame rate without affecting the continuity of the displayed output. Detection results are rendered as RGBA overlay masks and composited with the corresponding video feeds, allowing object visualization without modifying source frames directly.

Integration with Qualcomm AI Hub gives developers access to optimized, ready-to-use models such as YOLO-based detectors for multi-stream analytics.

> [!NOTE]
>
> Check application source code on GitHub: [`gst-video-wall`](https://github.com/qualcomm/qimsdk/tree/main/gstreamer/gst-sample-apps/gst-video-wall)

## Use Case Overview

**1. Video Input**

Each RTSP camera provides an H.264/H.265-encoded stream decoded into raw YUV frames for inference and visualization.

**2. Frame Rate Optimization**

`videorate` controls the inference processing rate to improve performance while preserving temporal accuracy in the displayed output.

**3. Object Detection**

Each decoded frame is analyzed independently by an object detection model running on the Qualcomm NPU.

**4. Detection Output**

The model produces an RGBA overlay mask containing bounding boxes and class labels over a transparent background.

**5. Composition**

[`qtivcomposer`](../plugin-reference/qtivcomposer) composites all stream masks onto their corresponding video frames and tiles them into a configurable M×N grid (up to 8×4).

**6. Metadata Synchronization**

[`qtimetamux`](../plugin-reference/qtimetamux) attaches detection results as structured per-frame metadata synchronized with the video stream.

**7. Output**

The final composited stream is displayed locally on an HDMI monitor or streamed over RTSP/WebRTC with structured metadata transmitted in parallel.

## Pipeline diagram

![Security Video Wall Pipeline](https://mintcdn.com/qimsdk/p8bRJ_K0_Mx14HV0/blogs/images/security-video-wall_pipelines.png?fit=max\&auto=format\&n=p8bRJ_K0_Mx14HV0\&q=85\&s=de4e8de880e15ff377d1faa39a333582)

## Elements used in pipeline

| Element | Description |
| - | - |
| `source` | Accepts input from an RTSP camera, USB camera, or local file source. |
| `tee` | Splits each decoded stream into parallel branches for simultaneous display and AI inference. |
| `videorate` | Adjusts the video frame rate — reduces rate by half to lower compute load while maintaining display continuity. |
| [`qtimlvconverter`](../plugin-reference/qtimlvconverter) | Prepares frames for inference — resizes, converts YUV to RGB, and normalizes input to match model requirements. |
| [`qtimltflite`](../plugin-reference/qtimltflite) | Runs the TFLite object detection model on each frame using the Qualcomm NPU via the QNN external delegate. |
| [`qtimlpostprocess`](../plugin-reference/qtimlpostprocess) | Converts raw output tensors into structured bounding boxes and labels via a dynamically loaded module. |
| [`qtimetamux`](../plugin-reference/qtimetamux) | Synchronizes inference results with the original video stream as per-frame structured metadata. |
| [`qtivcomposer`](../plugin-reference/qtivcomposer) | Composites video from all streams into a single 8×4 grid output and overlays RGBA masks onto corresponding YUV frames. |
| [`v4l2h264enc`](../plugin-reference/v4l2h264enc) / `h264parse` | Encodes the composited stream into H.264 format for transmission. |
| [`waylandsink`](../plugin-reference/waylandsink) | Displays the composited video locally on the device. |
| `sink` | Streams the encoded video and metadata over RTSP or WebRTC via `rtspbin` or `webrtcbin`. |

## How it works

**1. Stream Ingestion**

Each `rtspsrc` element receives an RTSP stream. The RTP/H.264 payload is depayloaded, parsed, and decoded into raw NV12 frames by the hardware decoder.

**2. Parallel Processing**

A `tee` splits each decoded stream into two branches: one forwards frames directly to the compositor, the other runs AI inference at a reduced frame rate.

**3. ML Inference**

The inference branch runs through [`qtimlvconverter`](../plugin-reference/qtimlvconverter) → [`qtimltflite`](../plugin-reference/qtimltflite) → [`qtimlpostprocess`](../plugin-reference/qtimlpostprocess) producing an RGBA overlay mask.

**4. Composition**

[`qtivcomposer`](../plugin-reference/qtivcomposer) tiles all annotated streams into an 8×4 grid. If detection runs at a lower rate than the input, the most recent mask is reused to maintain a stable overlay.

**5. Output Delivery**

The composited frame is delivered to a Wayland display, saved to file, or streamed over RTSP/WebRTC.

## Run application on device

### Setup Requirements

#### Hardware

![Hardware Setup](https://mintcdn.com/qimsdk/p8bRJ_K0_Mx14HV0/blogs/images/security-video-wall_hw-setup.png?fit=max\&auto=format\&n=p8bRJ_K0_Mx14HV0\&q=85\&s=1a238e35d270f8eb502b1fc5872d30f6)

| Component | Description |
| - | - |
| **Edge Device** | IQ9 — Primary processing unit for AI inference and video composition. |
| **Camera Source** | IP/RTSP cameras. A local file source may be substituted if no physical camera is available. |
| **HDMI Display Monitor** | Connected to the edge device for rendering and visualizing pipeline output. |
| **PoE Switch** | Powers IP/RTSP cameras and provides network connectivity over a single Ethernet cable per camera. (Required for IP/RTSP setups only.) |
| **Local Network** | Ensures the edge device, cameras, and host machine are reachable on the same network. (Required for RTSP input or RTSP/WebRTC output.) |

#### Software

**Flash your Qualcomm Edge device** by following the device setup and flashing instructions [here](https://imsdkdocs.qualcomm.com/installation.md).

**Once your device is ready**, follow the instructions below to set up the Security Video Wall pipeline.

##### AI Model and config files

| File | Download | Save as |
| - | - | - |
| YOLOv8 W8A8 model | [Qualcomm AI Hub — YOLOv8 Detection](https://aihub.qualcomm.com/iot/models/yolov8_det) | `yolov8_det_w8a8.tflite` |
| Detection labels | [yolov8.json](../labels/yolov8.json) | `yolov8.json` |
| Sample video | [Input video](https://github.com/qualcomm/sample-apps-for-qualcomm-linux/raw/refs/heads/main/qualcomm-linux/artifacts/videos/demo_samples/ai_demo_sample.mp4) | `ai_demo_sample.mp4` |

**Copy files to device**

```bash SCP (SSH) theme={null}
# ~ resolves automatically to the correct home directory on the device (/root on QLI, /home/ubuntu on Ubuntu).

ssh <user>@<device-ip> "mkdir -p ~/{models,labels,media,media/output}"
scp yolov8_det_w8a8.tflite   <user>@<device-ip>:~/models/
scp yolov8.json                   <user>@<device-ip>:~/labels/
scp ai_demo_sample.mp4                     <user>@<device-ip>:~/media/
```

**Connect to device**

```bash theme={null}
ssh <user>@<device-ip>
```

**Run the Security Video Wall**

> **Note:** A display must be connected to the device. If no display is available, use the `--no-display` flag.

> [!NOTE]
>
> * **RTSP output** is served at `rtsp://<device-ip>:8900/live`. Open that URL from a viewer on the same network.
> * **WebRTC output** uses `wss://webrtc.nirbheek.in:8443`, a public demo signalling server. The device must be able to reach it, and the `--webrtc-id` value must match the peer ID the viewer connects to (`1010` below).
>
> See [Visualize the Results](#visualize-the-results---host-side-visualization-windows--wsl) for the host-side viewer commands.

> [accordion] Display only
>
> ```bash theme={null}
> ulimit -n 16192 && \
> gst-video-wall \
>   --input-count=4 \
>   $(for i in $(seq 1 4); do echo "--input-type=file --input-config=$HOME/media/ai_demo_sample.mp4"; done)
> ```

> [accordion] WebRTC output
>
> ```bash theme={null}
> ulimit -n 16192 && \
> gst-video-wall \
>   --input-count=31 \
>   $(for i in $(seq 1 31); do echo "--input-type=file --input-config=$HOME/media/ai_demo_sample.mp4"; done) \
>   --output-type=webrtc \
>   --output-config=wss://webrtc.nirbheek.in:8443 \
>   --webrtc-id=1010
> ```

> [accordion] RTSP output
>
> ```bash theme={null}
> ulimit -n 16192 && \
> gst-video-wall \
>   --input-count=31 \
>   $(for i in $(seq 1 31); do echo "--input-type=file --input-config=$HOME/media/ai_demo_sample.mp4"; done) \
>   --output-type=rtsp \
>   --output-config=8900
> ```

> **Note:** This example uses an offline video file as input. To use IP/RTSP cameras, update `--input-type=rtsp` and `--input-config=rtsp://...` accordingly.

It produces an AI-annotated video stream. To visualize the results, refer to the **Host-Side Visualization** section below.

## Visualize the Results - Host-Side Visualization (Windows + WSL)

This section describes how to run the visualization client on a Windows host machine using **WSL (Windows Subsystem for Linux)**. The client renders the live composited video stream alongside a real-time AI metadata panel.

📥 The visualization client script can be downloaded here: [rtsp\_webrtc\_client.zip](../labels/rtsp_webrtc_client.zip)

It displays:

* **Left panel** — Live composited video stream with AI overlays from all camera inputs.
* **Right panel** — Real-time AI metadata (JSON): object detections, bounding boxes, and confidence scores per stream.

**Step 1 — Install WSL and Ubuntu**

If WSL is not already installed, run the following from a Windows terminal:

```bash theme={null}
wsl --install Ubuntu-24.04
```

Once installed, update the system:

```bash theme={null}
sudo apt update && sudo apt upgrade -y
```

**Step 2 — Install System Dependencies**

```bash theme={null}
sudo apt install -y \
  python3 python3-pip python3-gi python3-gi-cairo \
  gir1.2-gstreamer-1.0 \
  gir1.2-gst-plugins-base-1.0 \
  gir1.2-gst-plugins-bad-1.0 \
  gstreamer1.0-tools \
  gstreamer1.0-plugins-base \
  gstreamer1.0-plugins-good \
  gstreamer1.0-plugins-bad \
  gstreamer1.0-plugins-ugly \
  gstreamer1.0-libav \
  python3-websocket \
  libnice10 \
  libnice-dev \
  gstreamer1.0-nice
```

**Step 3 — Run the Visualization Client Script**

> [accordion] RTSP
>
> ```bash theme={null}
> python3 rtsp_webrtc_client.py rtsp://<DEVICE_IP>:8900/live
> ```

> [accordion] WebRTC
>
> ```bash theme={null}
> python3 rtsp_webrtc_client.py --source webrtc --signalling-server wss://webrtc.nirbheek.in:8443 --peer-id 1010
> ```

**Step 4 — Expected Output**

| Panel | Content |
| - | - |
| Left | Real-time composited video — all streams tiled in a grid with bounding boxes and labels |
| Right | Live AI metadata — per-stream object detections, bounding boxes, and confidence scores |

![Expected Output](https://mintcdn.com/qimsdk/p8bRJ_K0_Mx14HV0/blogs/images/security-video-wall_expected-output1.png?fit=max\&auto=format\&n=p8bRJ_K0_Mx14HV0\&q=85\&s=6930a2aa3e78bc8c5e3aa3135909f028)

Beyond the default setup, the application offers flexible input and output configurations that can be tailored via command-line options, as described below:

## Command-Line Options

> [accordion] --input-count
>
> Specifies the total number of input video streams. Must match the number of `--input-type` and `--input-config` entries. Valid range: 1 to 31.
>
> ```bash theme={null}
> --input-count=4
> ```

> [accordion] --input-type
>
> Selects the video input source for each stream.
>
> | Value | Description |
> | - | - |
> | `rtsp` | External IP/RTSP camera. Requires `--input-config=rtsp://...`. |
> | `file` | Local H.264-encoded video file. Requires `--input-config=/path/to/ai_demo_sample.mp4`. |

> [accordion] --input-config
>
> Specifies the input source configuration for the selected `--input-type`.
>
> | Input Type | Value |
> | - | - |
> | RTSP | `rtsp://<ip-or-url>` |
> | File | `/path/to/ai_demo_sample.mp4` |

> [accordion] --output-type
>
> Defines how the processed output is delivered.
>
> | Value | Description |
> | - | - |
> | `none` | No video output (headless mode). |
> | `file` | Save encoded output to a file. Requires `--output-config`. |
> | `rtsp` | Stream over RTSP. Requires `--output-config=<port>`. Access at `rtsp://<device-ip>:<port>/live`. |
> | `webrtc` | Stream over WebRTC. Requires `--output-config=ws://...`. |

> [accordion] --output-config
>
> Specifies the output destination configuration.
>
> | Output Type | Value |
> | - | - |
> | File | `/path/to/output.mp4` |
> | RTSP | `<port>` |
> | WebRTC | `ws://<signalling-server>:<port>` |

> [accordion] --model-base-path
>
> Root directory for AI model, label, and configuration files.
>
> | Asset Type | Resolved Path |
> | - | - |
> | Model files (`*.tflite`) | `<base-path>/models/<model_file>` |
> | Label/settings files (`*.json`) | `<base-path>/labels/<labels_file>` |
>
> ```bash theme={null}
> --model-base-path=/root        # QLI
> --model-base-path=/home/ubuntu # Ubuntu
> ```

> [accordion] --no-display
>
> Disables local on-screen rendering. Recommended for headless deployments, remote streaming (RTSP/WebRTC), or performance optimization.

> [accordion] --num-npus
>
> Specifies the video frame rate for the input stream.
>
> ```bash theme={null}
> --num-npus=N
> ```

> [accordion] --webrtc-id
>
> Specifies the local WebRTC signaling client ID.
>
> ```bash theme={null}
> --webrtc-id=1010
> ```

## Implementation Deep-Dive

> [accordion] 1. Application Configuration and Runtime Context
>
> The application separates user configuration from runtime state.
>
> ```c theme={null}
> typedef struct GstAppConfig {
>   gint    input_count;
>   gchar **input_types;
>   gchar **input_configs;
>   gchar  *output_type;
>   gchar  *output_config;
>   gchar  *model_base_path;
>   gboolean no_display;
>   gint    width, height, framerate, webrtc_id;
> } GstAppConfig;
>
> typedef struct GstAppContext {
>   GstAppConfig config;
>   GstElement  *pipeline;
>   GMainLoop   *mloop;
>   GstAppPadLinkData qtdemux_links[GST_APP_MAX_INPUTS];
>   GstAppPadLinkData rtspsrc_links[GST_APP_MAX_INPUTS];
>   GstElement  *webrtc;
>   gboolean     is_shutting_down;
> } GstAppContext;
> ```

> [accordion] 2. Reusable Pipeline Skeleton
>
> The pipeline is assembled from three logical sections: input branch, output branch, and application-specific user branch.
>
> ```c theme={null}
> static gboolean gst_app_create_pipe (GstAppContext *appctx) {
>   GstElement *input_tails[GST_APP_MAX_INPUTS] = { NULL };
>   GstElement *output_head = NULL;
>
>   appctx->pipeline = gst_pipeline_new ("gst-video-wall");
>
>   if (!gst_app_create_input_pipe  (appctx, input_tails))          return FALSE;
>   if (!gst_app_create_output_pipe (appctx, &output_head))          return FALSE;
>   if (!gst_app_create_user_pipe   (appctx, input_tails, output_head)) return FALSE;
>   return TRUE;
> }
> ```

> [accordion] 3. Multi-Input Configuration and Composer Geometry
>
> Constants define the maximum input count and compositor layout.
>
> ```c theme={null}
> #define GST_APP_MAX_INPUTS          31
> #define GST_APP_COMPOSER_COLUMNS     8
> #define GST_APP_COMPOSER_ROWS        4
> #define GST_APP_COMPOSER_CELL_WIDTH  240
> #define GST_APP_COMPOSER_CELL_HEIGHT 135
> #define MODEL_PATH  "yolov8_det_w8a8.tflite"
> #define LABELS_PATH "yolov8.json"
> ```
>
> Each input stream contributes one direct video layer and one RGBA overlay layer to the same grid position in the compositor.

> [accordion] 4. WebRTC Signaling
>
> WebRTC signaling uses explicit SDP offer/answer and ICE candidate exchange via WebSocket with `libsoup`.
>
> ```c theme={null}
> g_signal_emit_by_name (webrtcbin, "create-data-channel", name, NULL, &ch);
>
> GstPromise *promise = gst_promise_new_with_change_func (on_offer_created, appctx, NULL);
> g_signal_emit_by_name (webrtcbin, "create-offer", NULL, promise);
>
> g_signal_connect (appctx->webrtc, "on-ice-candidate",
>     G_CALLBACK (on_webrtc_ice_candidate), appctx);
> ```
>
> | Callback | Responsibility |
> | - | - |
> | `on_offer_created` | Constructs and sends the SDP offer |
> | `on_ice_candidate` | Transmits ICE candidates to the signaling server |
> | `on_ws_message` | Handles incoming WebSocket signaling messages |

## Build the Application

* **Source code:** [gst-video-wall](https://github.com/qualcomm/qimsdk/tree/main/gstreamer/gst-sample-apps/gst-video-wall)
* **Build instructions:** [Steps to build custom application](https://imsdkdocs.qualcomm.com/advanced/yocto-build.md#steps-to-build-custom-application)

## Performance measurements

> [tab] IQ-9075-EVK
>
> * Per-stage performance measurements with 30 inputs
>
> <table title="Per-stage performance measurements">
>   <colgroup>
>     <col />
>
>     <col />
>
>     <col />
>   </colgroup>
>
>   <thead>
>     <tr>
>       <th>
>         Stage
>       </th>
>
>       <th>
>         Performance time, ms
>       </th>
>
>       <th>
>         HW utilization
>       </th>
>     </tr>
>   </thead>
>
>   <tbody>
>     <tr>
>       <td>
>         Pre Processing
>       </td>
>
>       <td>
>         1.244
>       </td>
>
>       <td>
>         GPU
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         Inference
>       </td>
>
>       <td>
>         11.54
>       </td>
>
>       <td>
>         NPU
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         Post Processing
>       </td>
>
>       <td>
>         0.381
>       </td>
>
>       <td>
>         CPU
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         Video Composer
>       </td>
>
>       <td>
>         4.188
>       </td>
>
>       <td>
>         GPU
>       </td>
>     </tr>
>   </tbody>
> </table>
>
> * Overall performance measurements with 30 inputs
>
> <table title="Overall performance measurements">
>   <colgroup>
>     <col />
>
>     <col />
>
>     <col />
>   </colgroup>
>
>   <thead>
>     <tr>
>       <th>
>         Measurment type
>       </th>
>
>       <th>
>         Application
>       </th>
>
>       <th>
>         Decoder only
>       </th>
>     </tr>
>   </thead>
>
>   <tbody>
>     <tr>
>       <td>
>         CPU utilization, %
>       </td>
>
>       <td>
>         64.9
>       </td>
>
>       <td>
>         40.1
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         GPU utilization, %
>       </td>
>
>       <td>
>         1.25
>       </td>
>
>       <td>
>         0
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         Memory usage, MB
>       </td>
>
>       <td>
>         5229
>       </td>
>
>       <td>
>         3395
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         Max frame rate (throughput)
>       </td>
>
>       <td>
>         574
>       </td>
>
>       <td>
>         586
>       </td>
>     </tr>
>   </tbody>
> </table>
>
> > **Note:** "CPU utilization" and "Max frame rate" are measured on performance CPU scaling mode at maximum clock frequency.

> [tab] IQ-8275-EVK
>
> * Per-stage performance measurements with 16 inputs
>
> <table title="Per-stage performance measurements">
>   <colgroup>
>     <col />
>
>     <col />
>
>     <col />
>   </colgroup>
>
>   <thead>
>     <tr>
>       <th>
>         Stage
>       </th>
>
>       <th>
>         Performance time, ms
>       </th>
>
>       <th>
>         HW utilization
>       </th>
>     </tr>
>   </thead>
>
>   <tbody>
>     <tr>
>       <td>
>         Detection Preprocess
>       </td>
>
>       <td>
>         1.482
>       </td>
>
>       <td>
>         GPU
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         Detection Inference
>       </td>
>
>       <td>
>         3.24
>       </td>
>
>       <td>
>         NPU
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         Detection Postprocess
>       </td>
>
>       <td>
>         0.68
>       </td>
>
>       <td>
>         CPU
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         Video Composer
>       </td>
>
>       <td>
>         5.608
>       </td>
>
>       <td>
>         GPU
>       </td>
>     </tr>
>   </tbody>
> </table>
>
> * Overall performance measurements with 16 inputs
>
> <table title="Overall performance measurements">
>   <colgroup>
>     <col />
>
>     <col />
>
>     <col />
>   </colgroup>
>
>   <thead>
>     <tr>
>       <th>
>         Measurment type
>       </th>
>
>       <th>
>         Application
>       </th>
>
>       <th>
>         Decoder only
>       </th>
>     </tr>
>   </thead>
>
>   <tbody>
>     <tr>
>       <td>
>         CPU utilization, %
>       </td>
>
>       <td>
>         55.1
>       </td>
>
>       <td>
>         11.9
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         GPU utilization, %
>       </td>
>
>       <td>
>         19
>       </td>
>
>       <td>
>         0
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         Memory usage, MB
>       </td>
>
>       <td>
>         2879
>       </td>
>
>       <td>
>         1802
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         Max frame rate (throughput)
>       </td>
>
>       <td>
>         384
>       </td>
>
>       <td>
>         653
>       </td>
>     </tr>
>   </tbody>
> </table>
>
> > **Note:** "CPU utilization" and "Max frame rate"  are measured on core 3\@2361600Hz.
> > The rest of the cores are disabled to avoid inconsistency from execution on different type and frequency cores.

> [tab] RB3Gen2-core-kit
>
> * Per-stage performance measurements with 8 inputs
>
> <table>
>   <colgroup>
>     <col />
>
>     <col />
>
>     <col />
>   </colgroup>
>
>   <thead>
>     <tr>
>       <th>
>         Stage
>       </th>
>
>       <th>
>         Performance time, ms
>       </th>
>
>       <th>
>         HW utilization
>       </th>
>     </tr>
>   </thead>
>
>   <tbody>
>     <tr>
>       <td>
>         Detection Preprocess
>       </td>
>
>       <td>
>         2.87
>       </td>
>
>       <td>
>         GPU
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         Detection Inference
>       </td>
>
>       <td>
>         9.497
>       </td>
>
>       <td>
>         NPU
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         Detection Postprocess
>       </td>
>
>       <td>
>         1.153
>       </td>
>
>       <td>
>         CPU
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         Video Composer
>       </td>
>
>       <td>
>         5.16
>       </td>
>
>       <td>
>         GPU
>       </td>
>     </tr>
>   </tbody>
> </table>
>
> * Overall performance measurements with 8 inputs
>
> <table title="Overall performance measurements">
>   <colgroup>
>     <col />
>
>     <col />
>
>     <col />
>   </colgroup>
>
>   <thead>
>     <tr>
>       <th>
>         Measurment type
>       </th>
>
>       <th>
>         Application
>       </th>
>
>       <th>
>         Decoder only
>       </th>
>     </tr>
>   </thead>
>
>   <tbody>
>     <tr>
>       <td>
>         CPU utilization, %
>       </td>
>
>       <td>
>         81.2
>       </td>
>
>       <td>
>         5.9
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         GPU utilization, %
>       </td>
>
>       <td>
>         19.6
>       </td>
>
>       <td>
>         0
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         Memory usage, MB
>       </td>
>
>       <td>
>         1589
>       </td>
>
>       <td>
>         1040
>       </td>
>     </tr>
>
>     <tr>
>       <td>
>         Max frame rate (throughput)
>       </td>
>
>       <td>
>         236
>       </td>
>
>       <td>
>         291
>       </td>
>     </tr>
>   </tbody>
> </table>
>
> > **Note:** "CPU utilization" and "Max frame rate" are measured on core 7 at maximum clock frequency.
> > The rest of the cores are disabled to avoid inconsistency from execution on different type and frequency cores.

> **Note:** All measurements are made with *fakevideosink* output.
>
> * "Max frame rate" is measured with sync=false.
> * Modules performance times are measured on schedutil CPU scaling mode with sync=true.

## Conclusion

The QIM SDK modular architecture gives developers flexibility and control when building real-time multi-stream video analytics pipelines. By separating inference from post-processing, the post-processing stage can be customized without changing the model execution path. This keeps AI results and video frames decoupled while enabling efficient visualization — post-processing generates an RGBA overlay mask composited onto the original frame without duplicating video data, delivering lower latency, reduced memory overhead, and better scalability for real-time AI video applications.
