SVO2 corrupted on Jetson Orin Nano (ZED SDK 5.4.1)

Hi,
With the recent SDK update it is now possible to save compressed SVO2 movies on Jetson Orin Nano (CPU fallback). That is great news, makes life much easier.
It is working when movie is recorded with e.g. ZED Explorer. However, with a simple grab loop (Python), files are corrupted (can’t be opened by ZED Explorer, or must be repaired).

Loop:

import pyzed.sl as sl
zed = sl.Camera()
init_params = sl.InitParameters()
err = zed.open(init_params)
if err != sl.ERROR_CODE.SUCCESS:
    print(f"Error opening camera: {err}")
    exit()
recording_params = sl.RecordingParameters(
    "output.svo2",
    sl.SVO_COMPRESSION_MODE.H264
)

err = zed.enable_recording(recording_params)
if err != sl.ERROR_CODE.SUCCESS:
    print(f"Error enabling recording: {err}")
    zed.close()
    exit()

# Capture 100 frames
runtime_params = sl.RuntimeParameters()
i = 0
while i < 100:
    if zed.grab(runtime_params) == sl.ERROR_CODE.SUCCESS:
        i += 1
        print(f"Frame {i}/100 recorded", end="\r")
print("\nRecording complete.")
zed.disable_recording()
zed.close()

Recorded with ZED-X, I’m getting:

ZED_SVO_Editor --inf output.svo2
-inf option detected
*FAIL : failed to get infos from “output.svo2”
You can try the -repair option to repair the SVO file

Switching to SVO v1

export ZED_SDK_SVO_VERSION=1

results in working recordings:
Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 261
NvMMLiteBlockCreate : Block : BlockType = 261
Encrypted : No
SVO Infos : SVO v 1
Image Size : [ 1920 x 1200 ]
Framerate : 30
Number of Frames : 96
ZED Serial Number : 59325244
Compression mode : " H264 Lossy (GPU) compression"
Camera model : “ZED X Mini”
Camera Fw version : 2001
[ERROR] (../src/sl_input/mmapi/R392/NvV4l2ElementPlane.cpp:380) <�> Capture Plane:Getting format: failed: Invalid argument

Is it a bug or am I doing something wrong here?
thanks!

Art.

Hi,

Could you please send me the output of ZED_Diagnostic so that I can dig a little further?

Best,

Tristan Leduc

StereoLabs Support