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 X Nano, 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
zedodoverlayfilter -
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
zedodoverlayfilter
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
The following is a list of use case examples, each linked to its relevant 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

