Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on reocrding SVO2 file #298

Open
2 tasks done
WorstCodeWay opened this issue Jan 23, 2025 · 1 comment
Open
2 tasks done

Error on reocrding SVO2 file #298

WorstCodeWay opened this issue Jan 23, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@WorstCodeWay
Copy link

WorstCodeWay commented Jan 23, 2025

Preliminary Checks

  • This issue is not a duplicate. Before opening a new issue, please search existing issues.
  • This issue is not a question, feature request, or anything other than a bug report directly related to this project.

Description

There are some problems showing from logs below.

  1. Many Error saving frame to SVO errors when starting recording
  2. Core dump when write svo file failed, referring to end of logs below
  3. Error when stopping recording (EDIT: when compression_mode is 1, i.e. H264. No such error when it's 0)
    [ERROR] (/builds/sl/ZEDKit/lib/src/sl_input/mmapi/R364/NvV4l2ElementPlane.cpp:256) <�,���> Capture Plane:Error while Qing buffer: Device or resource busy
  4. What is the meaning by NVMEDIA: Need to set EMC bandwidth : 2872000 , is it a error?```
  5. SVO frame rate and frame number mismatch. ZED_SVO_Editor says frame rate is 30 fps, but according to recording duration( ~ 20 seconds), frame number should be about 600, actually it's about 300. And I have tried compression_mode 0(png) and 1(h264). Same result. Besides, replay svo within ZED_Explorer, frame rate is 15 fps! Which is right? And why?
$ ./ZED_SVO_Editor -inf ~/Downloads/testsvo2_h264.svo2
-inf option detected
SVO Infos : SVO v 2
Image Size : [ 1920  x  1080 ]
Framerate :  30
Number of Frames :  303
ZED Serial Number :  47293210
Compression mode :  " H264 Lossy (GPU) compression"
Product : ZED-X
Sensors Fw version :  1000
Camera Fw version :  2001

Logs

component_container_isolated-4] [INFO] [1737444714.083067944] [cam1.zed_node_1]: Initial ZED left camera pose (ZED pos. tracking): 
[component_container_isolated-4] [INFO] [1737444714.083127624] [cam1.zed_node_1]:  * T: [-0.01,0.06,0.016]
[component_container_isolated-4] [INFO] [1737444714.083182152] [cam1.zed_node_1]:  * Q: [0,0,0,1]
[component_container_isolated-4] [INFO] [1737496801.300476008] [cam1.zed_node_1]: ** Start SVO Recording service called **
[component_container_isolated-4] [2025-01-21 22:00:01 UTC][ZED][INFO] [SVO Recording]  Missing extension in SVO recording name (must be *.svo or *.svo2). The path will be updated with the correct extension
[component_container_isolated-4] [2025-01-21 22:00:01 UTC][ZED][INFO] [Init]  Notice: The recording is using SVO version 2, enabled by default starting from SDK version 4.1. To revert to the original SVO version, set the environment variable "ZED_SDK_SVO_VERSION" to 1
[component_container_isolated-4] [INFO] [1737496801.316943176] [cam1.zed_node_1]: SVO Recording started: 
[component_container_isolated-4] [INFO] [1737496801.317074376] [cam1.zed_node_1]:  * Bitrate: 0
[component_container_isolated-4] [INFO] [1737496801.317126280] [cam1.zed_node_1]:  * Compression: LOSSLESS
[component_container_isolated-4] [INFO] [1737496801.317155112] [cam1.zed_node_1]:  * Framerate: 0
[component_container_isolated-4] [INFO] [1737496801.317175016] [cam1.zed_node_1]:  * Input Transcode: FALSE
[component_container_isolated-4] [INFO] [1737496801.317193640] [cam1.zed_node_1]:  * Filename: testsvo
[component_container_isolated-4] [ERROR] [1737496801.317681928] [cam1.zed_node_1]: Error saving frame to SVO
[component_container_isolated-4] [ERROR] [1737496802.723698056] [cam1.zed_node_1]: Error saving frame to SVO
[component_container_isolated-4] [ERROR] [1737496810.102686984] [cam1.zed_node_1]: Error saving frame to SVO
[component_container_isolated-4] [ERROR] [1737496811.246679400] [cam1.zed_node_1]: Error saving frame to SVO
[component_container_isolated-4] [ERROR] [1737496813.191878472] [cam1.zed_node_1]: Error saving frame to SVO
[component_container_isolated-4] [INFO] [1737496849.573592680] [cam1.zed_node_1]: ** Stop SVO Recording service called **
[component_container_isolated-4] [WARN] [1737496849.752974216] [cam1.zed_node_1]: SVO Recording stopped
[component_container_isolated-4] [INFO] [1737497056.119399208] [cam1.zed_node_1]: ** Start SVO Recording service called **
[component_container_isolated-4] [2025-01-21 22:04:16 UTC][ZED][INFO] [SVO Recording]  Missing extension in SVO recording name (must be *.svo or *.svo2). The path will be updated with the correct extension
[component_container_isolated-4] [2025-01-21 22:04:16 UTC][ZED][INFO] [Init]  Notice: The recording is using SVO version 2, enabled by default starting from SDK version 4.1. To revert to the original SVO version, set the environment variable "ZED_SDK_SVO_VERSION" to 1
[component_container_isolated-4] NvMMLiteOpen : Block : BlockType = 4 
[component_container_isolated-4] ===== NvVideo: NVENC =====
[component_container_isolated-4] NvMMLiteBlockCreate : Block : BlockType = 4 
[component_container_isolated-4] Opening in BLOCKING MODE 
[component_container_isolated-4] 875967048
[component_container_isolated-4] 842091865
[component_container_isolated-4] H264: Profile = 77 Level = 50 
[component_container_isolated-4] [INFO] [1737497056.220902664] [cam1.zed_node_1]: SVO Recording started: 
[component_container_isolated-4] [INFO] [1737497056.221022344] [cam1.zed_node_1]:  * Bitrate: 0
[component_container_isolated-4] [INFO] [1737497056.221055144] [cam1.zed_node_1]:  * Compression: H264
[component_container_isolated-4] [INFO] [1737497056.221072168] [cam1.zed_node_1]:  * Framerate: 0
[component_container_isolated-4] [INFO] [1737497056.221086312] [cam1.zed_node_1]:  * Input Transcode: FALSE
[component_container_isolated-4] [INFO] [1737497056.221104040] [cam1.zed_node_1]:  * Filename: testsvo2
[component_container_isolated-4] NVMEDIA: Need to set EMC bandwidth : 2872000 
[component_container_isolated-4] NvVideo: bBlitMode is set to TRUE 
[component_container_isolated-4] [ERROR] [1737497056.281306568] [cam1.zed_node_1]: Error saving frame to SVO
[component_container_isolated-4] [ERROR] [1737497064.121884680] [cam1.zed_node_1]: Error saving frame to SVO
[component_container_isolated-4] [INFO] [1737497064.229842312] [cam1.zed_node_1]: ** Stop SVO Recording service called **
[component_container_isolated-4] [ERROR] (/builds/sl/ZEDKit/lib/src/sl_input/mmapi/R364/NvV4l2ElementPlane.cpp:256) <�,���> Capture Plane:Error while Qing buffer: Device or resource busy
[component_container_isolated-4] [WARN] [1737497064.467012168] [cam1.zed_node_1]: SVO Recording stopped
[component_container_isolated-4] [INFO] [1737506253.732729608] [cam1.zed_node_1]: ** Start SVO Recording service called **
[component_container_isolated-4] [2025-01-22 00:37:33 UTC][ZED][INFO] [Init]  Notice: The recording is using SVO version 2, enabled by default starting from SDK version 4.1. To revert to the original SVO version, set the environment variable "ZED_SDK_SVO_VERSION" to 1
[component_container_isolated-4] NvMMLiteOpen : Block : BlockType = 4 
[component_container_isolated-4] ===== NvVideo: NVENC =====
[component_container_isolated-4] NvMMLiteBlockCreate : Block : BlockType = 4 
[component_container_isolated-4] Opening in BLOCKING MODE 
[component_container_isolated-4] 875967048
[component_container_isolated-4] 842091865
[component_container_isolated-4] H264: Profile = 77 Level = 50 
[component_container_isolated-4] NVMEDIA: Need to set EMC bandwidth : 2872000 
[component_container_isolated-4] Failed to open mcap writer: failed to open file "/media/vt/testsvo3.svo2" for writing
[component_container_isolated-4] terminate called after throwing an instance of 'std::runtime_error'
[component_container_isolated-4]   what():  could not open mcap writer
[ERROR] [component_container_isolated-4]: process has died [pid 3201, exit code -6, cmd '/opt/ros/humble/lib/rclcpp_components/component_container_isolated --ros-args -r __node:=zed_container -r __ns:=/cam1'].

Steps to Reproduce

  1. (Terminal 1) Bringing multi-cameras nodes up by
    ros2 launch zed_multi_camera zed_multi_camera.launch.py cam_names:=[cam0,cam1] cam_models:=[zedx,zedx] cam_serials:=[48895327,47293210]
  2. (Terminal 2) Recording by calling recording service
    ros2 service call /cam1/zed_node_1/start_svo_rec zed_msgs/srv/StartSvoRec "{bitrate: 0, compression_mode: 1, target_framerate: 0, input_transcode: false, svo_filename: /media/vt/test0.svo2}"
  3. (Terminal 2) Stop recording
    ros2 service call /cam1/zed_node_1/stop_svo_rec std_srvs/srv/Trigger

Expected Result

Recording a normal svo file with no errors.

Actual Result

svo file is generated and save but with errors.

The saved svo file can be opened by ZED_Explorer, but with strange frame rate. Don't know if it has relationship with these errors.

ZED Camera model

ZED

Environment

ZED Camera model: zedx * 2
Jetson AGX origin 64GB
ZED SDK 4.2.3
ubuntu: 22.04
ros2 humble

Anything else?

No response

@WorstCodeWay WorstCodeWay added the bug Something isn't working label Jan 23, 2025
@WorstCodeWay
Copy link
Author

Hi, any suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant