Hello,
I recorded one hour of video data using ZED 2i. While ZED Explorer can open and play the video files normally, when I use Python code to convert the format to MP4, it displays an error stating “Detected corruption, attempting automatic repair.” However, when I copy the same video data to someone else and they use the same code, the format conversion runs successfully. Both my colleague and I are using ZED version 5.0.6. When using ZED version 5.1.1, the video fails to open properly. What could be causing this, and how can it be resolved? Thank you.
⚙ 正在初始化ZED SDK...
[2025-12-07 16:18:11 UTC][ZED][INFO] Logging level INFO
[2025-12-07 16:18:12 UTC][ZED][INFO] Corruption detected in SVO file, attempting to auto-repair the file...
[2025-12-07 16:19:38 UTC][ZED][ERROR] [Init] Cannot load SVO file. Check that the path of the SVO is correct, avoid white spaces in filename, add ".svo" or ".svo2" extension to filename.
[2025-12-07 16:19:38 UTC][ZED][ERROR] INVALID SVO FILE in enum sl::ERROR_CODE __cdecl sl::Camera::open(struct sl::InitParameters)
❌ 打开SVO文件失败 [错误代码: INVALID SVO FILE]
Please try to use the “ZED SVO Editor” to fix the SVO.
$ ZED_SVO_Editor
You must provide arguments to this tools, here the list of them :
-inf Print SVO infos
-cut Cut a SVO and save the svo part between <s> and <e> to another svo.
-s or -e parameters must be specified.
-s or -e parameters must be specified.
-start-timestamp could be specified instead -s for cutting from a starting timestamp.
-end-timestamp could be specified instead -e for cutting up to an ending timestamp.
-merge Add/Merge two or more SVO files into a single one.
SVO files must have the same resolution and same ZED Serial Number.
-cpr Convert a SVO into another SVO compression format
-m parameter must be specified.
-m Compression format to use with the -cpr option. m can be 0, 1, 2, 3, 4 , 5 or 6 for respectively PNG (Lossless), ZSTD (Lossless), JPEG (Lossy), H264 Lossy, H265 Lossy, H264 LossLess and H265 LossLess based compressions.
-repair Repair a SVO file by recreating a new SVO <svofilename_repaired.svo> with a recovered index table.
-update-timestamp Update the timestamp of all frames in a SVO video file based on a new reference timestamp provided as input. The new reference timestamp must be specified through to -ref argument. The reference timestamp must be in nanoseconds.
The timestamp of the first frame in the resulting SVO will be set to the specified reference timestamp.
-export-to-mcap Export the SVO2 data (image, imu, gnss, custom data) to a MCAP file readable by foxglove.
Use --no_image_export for skip image export
Use --no_imu_export for skip imu export
Use --no_custom_export for skip custom data export (including GNSS)
Sample usage:
"ZED_SVO_Editor -inf svo1.svo"
"ZED_SVO_Editor -cut svo1.svo -s 100 -e 200 output.svo"
"ZED_SVO_Editor -cut svo1.svo -start-timestamp 1765290591493453568 -end-timestamp 1765294191493453667 output.svo"
"ZED_SVO_Editor -merge svo1.svo svo2.svo output.svo"
"ZED_SVO_Editor -cpr input.svo -m 2 output.svo"
"ZED_SVO_Editor -repair input.svo"
"ZED_SVO_Editor -update-timestamp input.svo -ref 1765294191493453667 output.svo"
"ZED_SVO_Editor -export-to-mcap input.svo"