Using the Video API
The ZED API provides low-level access to the camera hardware and video features, facilitating camera control and high-quality video recording and streaming.
Camera Configuration
To configure the camera, create a Camera object and specify your InitParameters. Initial parameters let you adjust camera resolution, FPS, depth sensing parameters and more. These parameters can only be set before opening the camera and cannot be changed while the camera is in use.
InitParameters contains a default configuration.
Camera settings such as exposure, white balance and others can be manually set at runtime using setCameraSettings().
To see the list of available video modes and settings, read Camera Controls.
Image Capture
To capture images from the ZED, specify your RuntimeParameters and call grab() to grab a new frame and retrieveImage() to retrieve the grabbed frame. retrieveImage() lets you select between different views such as left, right, unrectified and grayscale images.
Video Recording
The ZED SDK uses StereoLabs’ SVO format to store videos along with additional metadata such as timestamps and sensor data.
To record SVO files, you need to enable the Recording module with enableRecording(). Specify an output file name (eg: output.svo) and SVO_COMPRESSION_MODE, then save each grabbed frame using record(). SVO lets you record video and associated metadata (timestamp, IMU data and more if available).
Video Playback
To play SVO files, simply add the file path as an argument in setFromSVOFile(). When loading SVO files, the ZED API will behave as if a ZED was connected and a live feed was available. Every module of the ZED API will be available: depth, tracking, spatial mapping and more. When an SVO file is read entirely, END_OF_SVOFILE_REACHED error code is returned.
Local Streaming
To learn how to stream stereo video on the local network using the ZED SDK, read Local Streaming section.
Code Examples
Get started with stereo video capture, recording and streaming using the following code samples on GitHub:

