3.3.11 RTSP Stream Decoding Example Introduction
Example Overview
The RTSP stream decoding example is a Python interface development code sample located in /app/pydev_demo/08_decode_rtsp_stream/. It demonstrates how to obtain H.264/H.265 streams from an RTSP video stream and implement real-time video decoding and object detection functions through hardware decoding, video processing, and AI inference. This example showcases a complete video processing pipeline, including RTSP stream reception, hardware decoding, video processing, AI inference, and result display.
Result Display

Hardware Preparation
Hardware Connection
- Prepare an RDK development board
- Connect the development board to a display via an HDMI cable
- Connect an Ethernet cable to the development board
- Connect the power cable

Quick Start
Code and Board Location
Navigate to the /app/pydev_demo/08_decode_rtsp_stream/ directory. The RTSP stream decoding example includes the following files:
root@ubuntu:/app/pydev_demo/08_decode_rtsp_stream# tree
.