ZED SDK C++ - SVO_COMPRESSION_MODE possibly broken?

I’m trying to read the compression mode of my SVO2 recordings from C++ (recorded via SDK 4.2 and 5.1, read via SDK 5.1) but it reports all of them as H264 (recorded multiple sequences in H265, H265_LOSSLESS, LOSSLESS, and sizes seem to correlate)

Here’s the snippet I’m using to read the information

const auto rec_params = zed.getRecordingParameters();
std::cout << "Detected compression mode: " << rec_params.compression_mode << std::endl;

How to resolve this? Am I missing something?

Hi @sourza
What do you get by using the command ZED_SVO_Editor -inf <filename>?

Hi @Myzhar

This is the output from ZED_SVO_Editor -inf ... on the ZEDBOX I recorded this on. (using stereolabs/zed:5.0-tools-devel-l4t-r36.4 docker image)

Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 279
NvMMLiteBlockCreate : Block : BlockType = 279
SVO Infos : SVO v 2
Image Size : [ 960  x  600 ]
Framerate :  15
Number of Frames :  856
ZED Serial Number :  45480267
Compression mode :  " H265 Lossless (GPU) compression"
Camera model :  "ZED X"
Camera Fw version :  2001
ZED SDK version that generated this file :  5.1.0

This is the output for the same file from my app (running on my machine - stereolabs/zed:5.1-devel-cuda12.8-ubuntu22.04)

Detected compression mode: H264
856 images will be extracted from SVO2 file

Thank you. I will report this bug to the team

1 Like

Here’s minimal reproduction steps

Thank you, this is useful and important :slight_smile: