can't grab the second image from svo2 file recorded by ZED X ONE

Hello

I use a ZED X ONE camera to record a svo2 file. Then I use C++ API to exact information, like this:

CameraOne zed;
InitParametersOne init_parameters;
init_parameters.input.setFromeSVOFile(argv[1]);
zed.open(init_parameters);
zed.grab();
zed.grab();

Opening zed is successful, it return ERROR_CODE::SUCCESS. First grab success too. But second grab fail, and it return END OF SVO FILE REACHED. My svo2 file has 212 frames.It shouldn’t end when just grab twice.

SDK vision is 4.2.2. Codes run on ZED Box Orin NX.

When I run the code, cmd says

Opening in BLOCKING MODE
NvMMLiteOpen: Block: BlockType = 279
NvMMLiteBlockCreate: Block: BlockType = 279
[ZED][ERROR][ZED] sl::Camera::Open has not been called, no Camera instance running.
Gtk-Message:Failed to load module "canberra-gtk-module"
Gtk-Message:Failed to load module "pk-gtk-module"

I don’t know if they are related to the mistakes I encountered. Please tell me how to exact information from svo2 file. Thank you very much.

Hi @Laoju,

Welcome to the Stereolabs forums :wave:

I apologize for the inconvenience, the ZED SDK version 4.2.2 had some issue on reading SVO files from ZED X Ones.

We released the ZED SDK 4.2.3 which includes fixes on these SVOs, could you install the latest version and try running your script again?

Hello

Problem isn’t resolved. I have installed “ZED_SDK_Tegra_L4T36.3_v4.2.3.zstd.run” by “ZED SDK for JetPack 6.0 GA(L4T 36.3) 4.2(Jetson Orin, CUDA 12.2)” .

Then I run the method grab() based on svo_playback.cpp. Result is the same as at the beginning. It still report END OF SVO FILE REACHED when I grab the second time.

There is some difference. Before update, svo_playback.cpp takes dozens of seconds to report “END OF SVO FILE REACHED”, when the input is a svo2 file with 4868 frames. After update, it report “END OF SVO FILE REACHED” immediately when I use the same input to run the codes.

Please tell me what should I do. Thank you very much.

Hi @Laoju,

Would it be possible to send over an SVO for the problem you are experiencing? Please send it to support@stereolabs.com with a link to this post, we will be able to take a look at the issue of the SVO.