Skip to main content
This section covers QIM SDK multimedia pipelines that use LiteRT for inference.

1. Camera


1.1 Single 1080p YUV stream from live source

Description Captures a live feed from a camera device (e.g., USB via V4L2 or MIPI camera via qticamsrc) and displays it on the screen using Wayland. Pipeline Diagram This Pipeline diagram for USB camera Pipeline Diagram Pipeline Command
In case of an Internal data stream error for USB camera, ensure that the USB camera device node or for RTSP camera RTSP stream location are correctly configured.

1.2 Three 1080p YUV streams from live source

Description Captures three 1080p streams from a single multi-stream capable camera source (qticamsrc) and displays them at different positions on the same screen. Pipeline Diagram Pipeline Diagram Pipeline Command

2. Camera and Video Encode

2.1 One Stream — 1080p AVC Video Record

Description This pipeline captures a single 1080p live camera stream, encodes it to H.264 (AVC) using hardware acceleration, muxes it into an MP4 container, and saves it to the device filesystem. Pipeline Diagram Pipeline Diagram Pipeline Command
export command
pipeline command
Pull Recorded File to Host PC

2.2 One Stream - 1080p AVC RTSP from live source

Description Captures 1080p video, encodes it to H.264, and streams it over RTSP using gst-rtsp-server (via UDP sink). Pipeline Diagram Pipeline Diagram Pipeline Command

2.3 Two streams - 4K AVC and 480p AVC from live source

Description Simultaneously captures and records two streams: one 4K and one 480p, both encoded in H.264 and saved as MP4. Pipeline Diagram Pipeline Diagram Pipeline Command
export command
pipeline command

2.4 Three 1080p AVC streams from live source

Description Records 1080p AVC (H.264), 1080p HEVC (H.265), and displays a live 1080p preview simultaneously. Pipeline Diagram Pipeline Diagram Pipeline Command
export command
pipeline command

2.5 Three stream - 4K JPEG Snapshot, 1080p AVC MP4, 1080p YUV from live source

Description Captures 4K JPEG snapshots, records 1080p video, and displays a preview simultaneously. Pipeline Diagram Pipeline Diagram Pipeline Command
export command
pipeline command

3. Multi Camera/Multi client use cases

3.1 Two streams: Main camera: 4K AVC MP4, 1080p YUV Preview and Secondary Camera: 720p AVC, 720p YUV

Description Uses two camera sensors. Main camera provides 4K recording and 1080p preview. Secondary camera provides 720p recording and 720p preview. Pipeline Diagram Pipeline Diagram Pipeline Command
export command
pipeline command

3.2 Two streams - both 720p - one from each camera with Side-By-Side stitching sent to display

Description Stitches two 720p streams (one from each camera) into a single side-by-side frame using qtivcomposer. The result is recorded and streamed via RTSP. Pipeline Diagram Pipeline Diagram Pipeline Command
export command
pipeline command

3.3 Two streams - both 720p - one from each camera with Picture in Picture composition and sent to display

Description Composes two streams (Picture-in-Picture) using qtivcomposer. The result is recorded and streamed via RTSP. Pipeline Diagram Pipeline Diagram Pipeline Command
export command
pipeline command

4. Transform and Transcode use-cases

4.1 Rotate, Flip, and Scale

Description Demonstrates hardware-accelerated transformations (Rotation, Flip, Downscale) using qtivtransform. Pipeline Diagram Pipeline Diagram Pipeline Command

5. Video Playback use cases


5.1 Single stream video playback

Description The pipeline demonstrates playback of Video stream from a file of media container format like mp4. Pipeline Diagram Pipeline Diagram Pipeline Command
export command
pipeline command

5.2 Two 1080p streams video playback simultaneously

Description Plays two 1080p video files simultaneously to the screen. Pipeline Diagram Pipeline Diagram Pipeline Command
export command
pipeline command

5.3 8-Stream Grid Playback

Description Decodes 8 1080p video files simultaneously and composes them into a 4x2 grid on the display. Pipeline Diagram Pipeline Diagram Pipeline Command
export command
pipeline command

5.4 16-Stream Grid Playback

Description Decodes 16 1080p video files simultaneously and composes them into a 4x4 grid on the display. Pipeline Diagram Pipeline Diagram Pipeline Command
export command
pipeline command
16 hardware decode is supported only on IQ‑9075.

6. Audio use cases


Prerequisites for Audio Use Cases:Before running audio pipelines, ensure the correct audio source is configured:

6.1 PCM Audio Capture

Description Captures audio from the microphone via PulseAudio, converts it, encodes it to WAV, and saves it to a file. Pipeline Diagram Pipeline Diagram Pipeline Command
export command
pipeline command

6.2 PCM Audio Playback

Description A basic audio playback pipeline that reads a WAV file and routes the PCM stream to the PulseAudio sink. Pipeline Diagram Pipeline Diagram Pipeline Command
export command
pipeline command

6.3 MP3 Audio Playback (Software Decode)

Description Reads an MP3 file and decodes it using mpg123audiodec to PulseAudio. Pipeline Diagram Pipeline Diagram Pipeline Command
export command
pipeline command

6.4 Record 1080p Video with Audio (AVC/MP3 Capture)

Description Captures 1080p video from the camera and audio from the microphone.
  • Video: Hardware encoded (H.264).
  • Audio: Software encoded (MP3) using lamemp3enc.
  • Muxing: Muxed into an MP4 container.
Pipeline Diagram Pipeline Diagram Pipeline Command
export command
pipeline command

6.5 1080p AVC/MP3 Video Playback

Description Reads an MP4 file and demuxes it into separate audio and video streams.
  • Video: H.264 decoded via hardware and rendered to display.
  • Audio: MP3 decoded via software (mpg123audiodec) and sent to speaker.
Pipeline Diagram Pipeline Diagram Pipeline Command
export command
pipeline command
asdfsadfhs