# ZED SDK C++ - SVO\_COMPRESSION\_MODE possibly broken?

**URL:** <https://community.stereolabs.com/t/zed-sdk-c-svo-compression-mode-possibly-broken/10743>\
**Category:** C++\
**Tags:** zed-sdk\
**Created:** [February 4, 2026, 10:34am UTC](https://community.stereolabs.com/t/zed-sdk-c-svo-compression-mode-possibly-broken/10743 "2026-02-04T10:34:06Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![sourza](https://community.stereolabs.com/user_avatar/community.stereolabs.com/sourza/32/4939_2.png) [@sourza](https://community.stereolabs.com/u/sourza)\
**Post date:** [February 4, 2026, 10:34am UTC](https://community.stereolabs.com/t/zed-sdk-c-svo-compression-mode-possibly-broken/10743/1 "2026-02-04T10:34:07Z")

</div>

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

```auto
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?

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [February 4, 2026, 11:56am UTC](https://community.stereolabs.com/t/zed-sdk-c-svo-compression-mode-possibly-broken/10743/2 "2026-02-04T11:56:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sourza](https://community.stereolabs.com/user_avatar/community.stereolabs.com/sourza/32/4939_2.png) [@sourza](https://community.stereolabs.com/u/sourza)\
**Post date:** [February 4, 2026, 1:27pm UTC](https://community.stereolabs.com/t/zed-sdk-c-svo-compression-mode-possibly-broken/10743/3 "2026-02-04T13:27:36Z")

</div>

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)

```auto
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`)

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

```

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [February 4, 2026, 1:42pm UTC](https://community.stereolabs.com/t/zed-sdk-c-svo-compression-mode-possibly-broken/10743/4 "2026-02-04T13:42:04Z")

</div>

Thank you. I will report this bug to the team

---

<div class="post-metadata">

**Author:** ![sourza](https://community.stereolabs.com/user_avatar/community.stereolabs.com/sourza/32/4939_2.png) [@sourza](https://community.stereolabs.com/u/sourza)\
**Post date:** [February 4, 2026, 1:51pm UTC](https://community.stereolabs.com/t/zed-sdk-c-svo-compression-mode-possibly-broken/10743/5 "2026-02-04T13:51:06Z")

</div>

Here’s minimal reproduction steps

- clone [https://github.com/stereolabs/zed-sdk.git](https://github.com/stereolabs/zed-sdk.git)
- Apply this patch [svo-compmode-min-repro.patch](https://community.stereolabs.com/uploads/short-url/czygnTzzi6NbrlSUCRnK2q0xOZA.patch) (924 Bytes)
- Build and run the `ZED_SVO_Export` C++ example

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [February 4, 2026, 1:51pm UTC](https://community.stereolabs.com/t/zed-sdk-c-svo-compression-mode-possibly-broken/10743/6 "2026-02-04T13:51:41Z")

</div>

Thank you, this is useful and important 🙂

---

<div class="post-metadata">

**Author:** ![Parv-Maheshwari](https://community.stereolabs.com/user_avatar/community.stereolabs.com/parv-maheshwari/32/5756_2.png) [@Parv-Maheshwari](https://community.stereolabs.com/u/Parv-Maheshwari)\
**Post date:** [February 9, 2026, 8:37am UTC](https://community.stereolabs.com/t/zed-sdk-c-svo-compression-mode-possibly-broken/10743/7 "2026-02-09T08:37:34Z")

</div>

On a related note about SVO compression mode being buggy or unclear

I have used SVO recording through both SDK and ROS2 . I used H.265 lossless compression, but the compressed file is 9x more compresses then it is supposed to be.

The recording can be found [**here**](https://1drv.ms/u/c/74412457099c39c1/IQBt8JO5d94GRIWFE_S6XJ7bAc3h166xYoKJVjfXCqD6g3s?e=0DMf3D). It is almost a 50s run with complete camera motion. **The file is about 500 MB for 30FPS at 1080.**

However, based on [**this**](https://support.stereolabs.com/hc/en-us/articles/1500009124262-What-is-the-file-size-for-videos-recorded-by-the-ZED-cameras), it seems the file should be around 3.75G not 0.5G.

Example in the attached link - 2K 15Hz lossless recording → 3GB/min.

Given 2k recording → 2208_1242-\> 1.33x 1080P and we record at 30 Hz (2_15), the expected file size = 3\*2/1.33 ~ 4.5GB/min . **So about 3.75-4 GB for a 50s video. Therefore I am not sure why my file is 0.5 GB.**

`So my concern is whether the recording was really encoded using lossless H. 265 or it is a mismatch in SVO metadata and the actual algorithm used to encode it`

### Steps to Reproduce

ZED Explorer Version

1. Open Zed Explorer
2. Set mode to be 1080P and 30 FPS
3. Record SVO using the ZED Explorer GUI.
4. Playback th efile using ZED\_Explorer to Confirm SVO recording is at 1080P, 30Hz and H265 Lossless recording.
5. Check file size

ROS2 Version

1. Set your zedx config to record at 1080 P at 30 Hz
2. `ros2 launch zed_wrapper zed_camera.launch.py camera_model:=zedx`
3. `ros2 service call /zed/zed_node/start_svo_rec zed_msgs/srv/StartSvoRec "{svo_filename: '/path/to/svo/file/file.svo2', compression_mode: 4}"`
4. Move camera for 50s-1 min
5. ` ros2 service call /zed/zed_node/stop_svo_rec std_srvs/srv/Trigger`
6. Check file size
7. Using ZED\_Explorerer Confirm SVO recording is at 1080P, 30Hz and H265 Lossless recording.

### Expected Result

Zed viewer confirms the following

- frame rate - 30
- resolution - 1920\*1080
- Compression - H265 lossless
- duration - 50s ~1min

File size ~3.75-4.5G

### Actual Result

Zed viewer confirms the following

- frame rate - 30
- resolution - 1920\*1080
- Compression - H265 lossless
- duration - 50s

**File size ~0.5G**

### ZED Camera model

ZED

### Environment

```auto
ORIN AGX 64G devkit. ARM 64. Jetpack 6.2.1. Zed SDK 5.1

```

### Anything else?

Please see the recording link to confirm that the recording was made at the right settings, and still the expected file size is not correct.

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [February 10, 2026, 6:12pm UTC](https://community.stereolabs.com/t/zed-sdk-c-svo-compression-mode-possibly-broken/10743/8 "2026-02-10T18:12:18Z")

</div>

Please test if this behavior is still present with the [new ZED SDK v5.2](https://www.stereolabs.com/developers/release)

---

<div class="post-metadata">

**Author:** ![system](https://community.stereolabs.com/uploads/default/original/2X/7/703c26fe16845a046a5c896e226e5f728ea313a0.svg) [@system](https://community.stereolabs.com/u/system)\
**Post date:** [February 10, 2026, 6:12pm UTC](https://community.stereolabs.com/t/zed-sdk-c-svo-compression-mode-possibly-broken/10743/9 "2026-02-10T18:12:29Z")

</div>

Please test if this behavior is still present with the new ZED SDK v5.2

[Discourse post]

Walter

**Walter Lucetti**  
_Senior Computer Engineer_  
SDK / Robotics / HW  
[Stereolabs](https://www.stereolabs.com/) Support

---

<div class="post-metadata">

**Author:** ![sourza](https://community.stereolabs.com/user_avatar/community.stereolabs.com/sourza/32/4939_2.png) [@sourza](https://community.stereolabs.com/u/sourza)\
**Post date:** [February 12, 2026, 4:04pm UTC](https://community.stereolabs.com/t/zed-sdk-c-svo-compression-mode-possibly-broken/10743/10 "2026-02-12T16:04:45Z")

</div>

> [@system](#):
>
> Walter Lucetti

Hi @Myzhar! I can confirm that this works well now. Thanks 🙂
