1
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 machine2. Set the source
Then copy it to your device:
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.2
Run example on device

filesink, because appsink only delivers buffers to an application that pulls them. The native application uses appsink instead, which notifies the application when a new frame is available, with a queue letting the source and consumer run in parallel.- GStreamer Command line
- GStreamer native application

