# Single stream from camera to RTSP with ML detection
Play a stream from the camera through RTSP on a media player (such as VLC).
- Single stream from camera to the RTSP:
**Figure : Pipeline for camera to RTSP**
gst-launch-1.0 -e qtiqmmfsrc ! video/x-raw,format=NV12,width=1920,height=1080,framerate=30/1 ! \
v4l2h264enc capture-io-mode=4 output-io-mode=5 ! queue ! h264parse config-interval=1 ! queue ! qtirtspbin address= port=
Copy to clipboard
Connect to the stream. For more information, see [RTSP stream on host computer](https://docs.qualcomm.com/doc/80-80021-50/topic/camera-and-video-encode.html#section-ayq-2nh-pyb).
- Single stream from camera to the RTSP with ML detection meta stream:
**Figure : Pipeline for camera to RTSP with ML detection**
**Figure : Preview with RTSP source**
**In console 1:**
gst-launch-1.0 -e qtiqmmfsrc ! video/x-raw,format=NV12,width=1280,height=720,framerate=30/1 ! queue ! tee name=split \
split. ! queue ! qtivcomposer name=mixer ! queue ! v4l2h264enc capture-io-mode=4 output-io-mode=5 ! queue ! h264parse config-interval=-1 ! queue ! \
qtirtspbin address= port= \
split. ! queue ! qtimlvconverter ! queue ! qtimltflite delegate=external external-delegate-path=libQnnTFLiteDelegate.so \
external-delegate-options="QNNExternalDelegate,backend_type=htp;" model=/etc/models/yolov8_det_quantized.tflite ! queue ! \
qtimlpostprocess results=5 settings="{\"confidence\": 50.0}" module=yolov8 labels=/etc/labels/yolov8.json ! video/x-raw,format=BGRA,width=640,height=360 ! queue ! mixer.
Copy to clipboard
## Related information
[qtirtspbin](https://docs.qualcomm.com/doc/80-80021-50/topic/qtirtspbin.html)
Last Published: Mar 26, 2026
[Previous Topic
Video super resolution and display with LiteRT](https://docs.qualcomm.com/bundle/publicresource/80-80021-50/topics/video-super-resolution-and-display-with-litert.md) [Next Topic
Four stream batching with LiteRT](https://docs.qualcomm.com/bundle/publicresource/80-80021-50/topics/four-stream-batching-with-litert.md)