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

**URL:** <https://community.stereolabs.com/t/cant-grab-the-second-image-from-svo2-file-recorded-by-zed-x-one/7855>\
**Category:** C++\
**Tags:** sdk, jetson\
**Created:** [January 9, 2025, 12:40pm UTC](https://community.stereolabs.com/t/cant-grab-the-second-image-from-svo2-file-recorded-by-zed-x-one/7855 "2025-01-09T12:40:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Laoju](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/l/5fc32e/32.png) [@Laoju](https://community.stereolabs.com/u/Laoju)\
**Post date:** [January 9, 2025, 12:40pm UTC](https://community.stereolabs.com/t/cant-grab-the-second-image-from-svo2-file-recorded-by-zed-x-one/7855/1 "2025-01-09T12:40:24Z")

</div>

Hello

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

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

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

---

<div class="post-metadata">

**Author:** ![mattrouss](https://community.stereolabs.com/user_avatar/community.stereolabs.com/mattrouss/32/2452_2.png) [@mattrouss](https://community.stereolabs.com/u/mattrouss)\
**Post date:** [January 10, 2025, 10:29am UTC](https://community.stereolabs.com/t/cant-grab-the-second-image-from-svo2-file-recorded-by-zed-x-one/7855/2 "2025-01-10T10:29:22Z")

</div>

Hi @Laoju,

Welcome to the [Stereolabs](https://www.stereolabs.com/) forums 👋

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?

---

<div class="post-metadata">

**Author:** ![Laoju](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/l/5fc32e/32.png) [@Laoju](https://community.stereolabs.com/u/Laoju)\
**Post date:** [January 12, 2025, 7:52am UTC](https://community.stereolabs.com/t/cant-grab-the-second-image-from-svo2-file-recorded-by-zed-x-one/7855/3 "2025-01-12T07:52:44Z")

</div>

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](https://github.com/stereolabs/zed-sdk/blob/master/zed%20one/cpp/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.

---

<div class="post-metadata">

**Author:** ![mattrouss](https://community.stereolabs.com/user_avatar/community.stereolabs.com/mattrouss/32/2452_2.png) [@mattrouss](https://community.stereolabs.com/u/mattrouss)\
**Post date:** [January 13, 2025, 10:36am UTC](https://community.stereolabs.com/t/cant-grab-the-second-image-from-svo2-file-recorded-by-zed-x-one/7855/4 "2025-01-13T10:36:44Z")

</div>

Hi @Laoju,

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