Skip to main content
The Qualcomm Dragonwing™ RB3 Gen 2 device comes preinstalled with GStreamer-based AI sample applications. Some of these applications support RTSP input (such as from IP cameras) and RTSP output that can be viewed on the host computer.

Run the multistream inference sample application

The gst-ai-multistream-inference application demonstrates AI inference (object detection and classification) on up to 8 combined input streams from a camera, file, or RTSP source. The output can be displayed on an HDMI display, saved as an H.264-encoded MP4 file, or streamed as RTSP output.
  1. Download the YoloX and InceptionV3 quantized models from Qualcomm AI Hub and copy them to the device.
  2. Copy the models and input video files to the device from your host computer terminal:
  3. On the QDC device shell, download and extract the labels file:
  4. Create the /etc/xdg/weston directory on the device:
  5. Create or edit the /etc/xdg/weston/weston.ini file on the device:
  6. Edit the /etc/configs/config-multistream-inference.json configuration file. For RTSP input and RTSP output:
    The input-rtsp-path field is a JSON array of RTSP input addresses. The output is streamed at rtsp://<output-ip-address>:<output-port-number>/live. For file input and file output:
    The input-file-path field is a JSON array of input file paths. The output is saved to the path specified in output-file-path.
  7. Run the sample application:
    For a full list of configuration options, run:
  8. View or copy the output:
    Copy the output file to your host machine:
For more information, see multistream inference.

Run the multi-input object detection sample application

The gst-ai-multi-input-output-object-detection application performs object detection on video streams from various sources such as a file or RTSP stream. The output can be displayed on an HDMI display, saved as an H.264-encoded MP4 file, or streamed as RTSP output.
  1. Generate the yolov5.tflite model and download the label files.
  2. Copy the model and input video files to the device:
  3. On the QDC device shell, download and extract the labels file:
  4. Unless already done, create the /etc/xdg/weston directory on the device:
  5. Unless already done, edit the /etc/xdg/weston/weston.ini file on the device:
  6. Edit the /etc/configs/config-multi-input-output-object-detection.json configuration file. For file input and file output:
    For file input and RTSP output:
  7. Run the sample application:
  8. View or copy the output:
    Copy the output file to your host machine:
For more information, see multi-input inferencing.