# Single camera streaming
Source: [https://docs.qualcomm.com/doc/80-70023-50/topic/gst-camera-single-stream-example.html](https://docs.qualcomm.com/doc/80-70023-50/topic/gst-camera-single-stream-example.html)
The **gst-camera-single-stream-example** application allows you to use a single
camera with various outputs, including preview, encode, YUV dump, and RTSP
streaming.
For example, you can use this application in a security system where the goal is to
capture a video from one camera and stream it across a network. You can either view it
or archive it for future review.
The following figure shows the pipeline flow for various single camera stream use cases.
For more information, see [Pipeline flow](https://docs.qualcomm.com/doc/80-70023-50/topic/gst-camera-single-stream-example.html#gst-camera-single-stream-example__section_dq4_h2s_nbc).
Figure : gst-camera-single-stream-example pipeline
## Run the application
1. Ensure that you complete the [Prerequisites](https://docs.qualcomm.com/doc/80-70023-50/topic/mm_sample_apps_prerequisites.html).
2. In the terminal of the target device, select any of the following use cases and
run the respective command:
- **Live camera use case**: View the live camera on
Waylandsink:
gst-camera-single-stream-example -o 0 -w 1920 -h 1080Copy to clipboard
- **MP4 use case**: Dump the MP4 to the
/etc/media/
folder:
gst-camera-single-stream-example -o 1 -w 1920 -h 1080Copy to clipboard
- **YUV use case**: Dump the YUV data to the
`/etc/media/`
folder:
gst-camera-single-stream-example -o 2 -w 1920 -h 1080Copy to clipboard
- **RTSP use case**: View the RTSP stream (run the RTSP server) on the
Linux host computer:
1. Run the RTSP server in a separate console on the target device
with `udpsrc` (you can run it in the background
as a
service):
gst-rtsp-server -a -p 8900 -m /live "( udpsrc name=pay0 port= caps=\"application/x-rtp,media=video,clock-rate=90000,encoding-name=H264,payload=96\" )"Copy to clipboard
For
example:
gst-rtsp-server -p 8900 -a 10.92.182.47 -m /live "( udpsrc name=pay0 port=8554 caps=\"application/x-rtp,media=video,clock-rate=90000,encoding-name=H264,payload=96\" )"Copy to clipboard
2. Run the following
command:
gst-camera-single-stream-example -o 3 -w 1280 -h 720 -i -p Copy to clipboard
3. In the terminal of the host computer, run the following commands to view the
stream on the VLC player or FFplay respectively:
**For VLC:**
vlc -vvv rtsp://:8900/liveCopy to clipboard
**For FFplay:**
ffplay rtsp://:8900/liveCopy to clipboard
4. To stop the use case, use CTRL + C.
5. In the terminal of the target device, run the following command in the SSH shell
to display the available help
options:
gst-camera-single-stream-example --helpCopy to clipboard
6. In the terminal of the host computer, run the following command to pull the
files from the target
device:
scp root@:/etc/media/Copy to clipboard
## Expected output
The following table lists the expected output based on the selected output type.
Table : Expected output for gst-camera-single-stream-example
| Output | Description |
| :--- | :--- |
| Display | Preview the stream. |
| Dump the MP4 and YUV data | Save the output to a file at /etc/media/. |
| RTSP | View the output on a remote display. |
Figure : Expected output for gst-camera-single-stream-example application

## Pipeline flow
The following table lists the plugins used in the single camera streaming
pipeline:| Pipeline | Description |
| --- | --- |
| Live camera preview on display |
Capsfilter is applied to enforce constraints on the raw video data.
v4l2h264enc is used to encode the video using the H.264 format.
H264parse is used to parse the video, rtph264pay is used to load the stream to RTSP, and then the stream is sent to a UDP sink for RTSP streaming.
|
## Related information
[Camera streaming using OpenCV](https://docs.qualcomm.com/doc/80-70023-50/topic/gst-camera-opencv-resize-py.html)
**Parent Topic:** [Run sample applications for a camera](https://docs.qualcomm.com/doc/80-70023-50/topic/camera-sample-applications.html)
Last Published: Mar 27, 2026
[Previous Topic
Run sample applications for a camera](https://docs.qualcomm.com/bundle/publicresource/80-70023-50/topics/camera-sample-applications.md) [Next Topic
USB camera](https://docs.qualcomm.com/bundle/publicresource/80-70023-50/topics/usb-camera.md)