Choose your source
Paste one of the following
export VIDEO_SOURCE commands into your device shell:File input
File input
Use a pre-recorded video file to test your pipeline. This is the easiest way to get started — you can replay the same clip repeatedly to validate your model.1. Download sample video on your host machine
Then copy it to your device:2. Set the source
| File | Download | Save as |
|---|---|---|
| Sample video | Input video | video.mp4 |
SCP (SSH)
USB Camera
USB Camera
USB cameras show up as V4L2 devices (e.g. Then set the source using the device node you identified:Note: Adjust the resolution if your camera does not support 1080p.
/dev/video0). Run this on the device to find your camera’s node:Built-in Camera
Built-in Camera
Built-in cameras are accessed using the Note: If multiple cameras are connected, set the
qticamsrc plugin, which handles ISP hardware initialization on Qualcomm SoCs.camera property to select the one you want.RTSP (Network) Camera
RTSP (Network) Camera
RTSP cameras stream encoded video (H.264 or H.265) over the network. The The resolution is determined by the camera and cannot be changed in GStreamer.The RTSP URL format varies by manufacturer. Common formats:If you’re unsure, search for “[your camera model] RTSP URL” or check the manufacturer’s documentation.
rtspsrc plugin receives the stream and the hardware decoder converts it to NV12 for the pipeline.Run example on device

appsink, which notifies the application when a new frame is available. The queue element allows the source and consumer to run in parallel.- GStreamer Command line
- GStreamer Python application
- GStreamer C/C++ application
