Overview
The qtimetamux element is a core component of an AI-enabled GStreamer pipeline. Its purpose is to synchronize post-processed AI/CV results with the original media buffer and attach those results as GstMeta using the standard metadata mechanism provided by GStreamer.
- Bounding box coordinates
- Class labels
- Segmentation masks
- Key points
- Motion vectors
- Other custom AI/CV metadata
- Live visualization — Metadata can be consumed by overlay elements such as
qtivoverlayto render bounding boxes, labels, and other inference results directly on the video output. - Daisy-chained AI pipelines — The metadata-bearing buffer can be passed to a subsequent inference stage, allowing multi-stage AI workflows where the output of one model feeds the next.
- Application-level access — The resulting buffer can be sent to an
appsink, giving a custom application access to both the media frame and the attached metadata for business logic or decision-making. - Metadata serialization and external integration — The metadata can be forwarded to
qtimlmetaparser, which converts it into JSON. That JSON can then be published to external systems such as MQTT, Kafka, or a REDIS server viaqtiredissink.

Example Pipeline
1
Download Required Files
2
Copy files to device
3
Connect to device
4
Set environment variables
Run below command on your device
5
Run the pipeline
Hierarchy
GObjectGstObject
GstElement
qtimetamux
Pad Templates
sink
src
Element Properties
Main Buffer, Metadata Synchronization and Latency control
The plugin is designed with a single main sink pad that receives the primary video or audio buffers, and multiple auxiliary data pads that collect ML post-processing results or CV motion vectors. Data arriving on auxiliary pads may be provided in string or blob form and is parsed into structured representations. Once parsed, the plugin matches each data buffer to its corresponding main media frame and attaches the result as GstMeta.Async Mode
This is the default synchronization mode. No timestamp-based matching is performed. Instead, metadata buffers are associated with main frames in strict 1:1 order:- The N-th incoming video/audio frame is held until the N-th data buffer has been received on all data pads.
- Once all required data for that frame is available, the metadata is attached.
- The enriched buffer is then pushed downstream.
Sync Mode
In sync mode, the plugin performs timestamp-based synchronization. Each incoming main frame is held for a limited time window of up to1 / framerate seconds (video) or 1 / rate seconds
(audio). For example, at 30 fps, the frame may be held for approximately 33.3 ms.
During this hold period, the plugin waits for data buffers on its auxiliary pads whose timestamps
match the timestamp of the main frame:
- If all expected data buffers arrive within the time window, they are attached before forwarding.
- If one or more auxiliary pads do not provide matching buffers in time, only the successfully matched metadata is attached and the main buffer is released downstream.
Latency Control
In some use cases, the default hold period in sync mode may be too short — especially when metadata generation takes longer than expected. Thelatency property extends the waiting period by
accepting an integer value in nanoseconds, allowing the plugin to wait longer for late-arriving
data buffers before forwarding the main frame.

Usage
Person Detection

1
Download Required Files
If any downloaded file is a
.zip archive, extract it on your host machine before copying:
unzip filename.zip2
Copy files to device
3
Connect to device
4
Set environment variables
Run below command on your device
5
Run the pipeline
Detection-Classification Daisy Chain Pipeline
This pipeline demonstrates a cascaded inference approach where the output of one model (Detection) is used to crop regions of interest (ROIs) which are then fed into secondary models (Classification).
1
Download Required Files
2
Copy files to device
3
Connect to device
4
Set environment variables
Run below command on your device
5
Run the pipeline

