Getting Started with GStreamer and ZED
GStreamer is a popular framework used to create custom media pipelines by combining modular plugins. The ZED GStreamer plugins greatly simplify the use of the ZED camera and SDK in a GStreamer media pipeline.
The ZED GStreamer package is composed of five plugins providing five elements, a metadata library and a Linux RTSP Server application.
Plugins
* Only available on NVIDIA® Jetson™ devices with GMSL2 capabilities
Libraries
Applications
Installation
Prerequisites
- Stereo camera: ZED X / ZED X Mini, ZED 2i, ZED 2, ZED Mini, ZED X One
- CMake (v3.1+)
- GStreamer 1.0
Windows installation
-
Install the latest ZED SDK from the official download page [Optional to compile the
zedsrcplugin to acquire data from a ZED camera device] -
Install Git
-
Install CMake
-
Install a GStreamer distribution (both
runtimeanddevelopmentinstallers). -
The installer should set the installation path via the
GSTREAMER_1_0_ROOT_X86_64environment variable. -
Add the path
%GSTREAMER_1_0_ROOT_X86_64%\binto the system variablePATH -
[Optional] Install OpenCV to build the
zedodverlayfilter -
Run the following commands from a terminal or command prompt, assuming CMake and Git are in your
PATH.
Linux installation
Install prerequisites
-
Install the latest ZED SDK from the official download page
-
Update list of
aptavailable packagessudo apt update -
Install GCC compiler and build tools
sudo apt install build-essential -
Install CMake build system
sudo apt install cmake -
Install GStreamer, the development packages and useful tools:
-
[Optional] Install OpenCV to build the
zedodverlayfilter
Clone the repository
Build
Installation test
Open a command line console and try the following commands to verify that everything is correctly installed:
-
Check
ZED Video Source Plugininstallation inspecting its properties: -
Check
ZED X One Video Source Plugininstallation inspecting its properties (only Jetson™): -
Check
ZED Video Demuxerinstallation inspecting its properties: -
Check
ZED Data Mux Plugininstallation inspecting its properties: -
Check
ZED CSV Sink Plugininstallation inspecting its properties: -
Check
ZED Object Detection Overlay Plugininstallation inspecting its properties:
Use cases
Following a list of use case examples, linked to the relative documentation page:
- DISPLAY THE LEFT IMAGE ON THE SCREEN
- DISPLAY COLOR STEREO COUPLE WITH VGA RESOLUTION AT 100 FPS
- DISPLAY DEPTH MAP WITH HD720 RESOLUTION AT 60 FPS
- H264 STREAMING OVER UDP ON THE LOCAL NETWORK
- SPLIT THE STEREO COUPLE AND DISPLAY SINGLE STREAMS
- SPLIT THE RGB/DEPTH SYNCHRONIZED STREAM AND DISPLAY SINGLE STREAMS
- SENSORS DATA LOGGING TO CSV FILE
- DISPLAY OBJECT DETECTION BOUNDING BOXES
- DISPLAY SKELETON TRACKING RESULTS
- INJECT ZED METADATA INFORMATION IN A STREAM
- CREATE AN RTSP SERVER TO STREAM ZED DATA

