Insta360Develop / MediaSDK-Cpp

MediaSDK-Cpp is a C++ library to handle stitching, editing of media from Insta360 Cameras.
60 stars 8 forks source link

jpg stitching doesn't work #18

Closed eungyoda closed 1 year ago

eungyoda commented 1 year ago

hi.

In stitcher.h, there is a comment like this:

/**

but! in MediaSDK-Cpp readme.md (https://github.com/Insta360Develop/MediaSDK-Cpp#supported-fileformat) It is insp & jpg supported.

And There is also a code that checks the jpg file extension in the sample code.

like this : std::string suffix = input_paths[0].substr(input_paths[0].find_last_of(".") + 1); std::transform(suffix.begin(), suffix.end(), suffix.begin(), ::tolower); if (suffix == "insp" || suffix == "jpg") { auto image_stitcher = std::make_shared(); image_stitcher->SetInputPath(input_paths);

But the jpg stitch doesn't work.

cmake-build-debug/sticher [05-23 11:47:44.303] 13360 13360 I ExtraInfoAsset.cc:0263: extrainfo asset Parse: iotool read header fail [05-23 11:47:44.303] 13360 13360 I offset_serializer.cpp:0108: Check Offset String failed!

[05-23 11:47:44.303] 13360 13360 E OffsetUtil.cc:0872: merge offset v1v2v3 fail, offset v1 emtpy [05-23 11:47:44.486] 13360 13360 E image_stitcherImp.cpp:0062: blender init failed

In OSC mode, insp cannot be taken, and jpg cannot be stitched. What should I do?

Tianweihaihaihai commented 1 year ago

pls update to lastest version, it was supported. the error you met is the jpg file miss some information. pls keep the firmware and sdk version the lastest, if still met this problem pls contact our support team for help

eungyoda commented 1 year ago

I checked that LinuxSDK20230424 version works well. Thanks~

eungyoda commented 1 year ago

I ran some tests.

  1. Extracted jpeg directly from SD card
  2. Using the download file of OSC Mode

Stitching doesn't operate normally when using the download file of OSC Mode.

AlonEshelAB commented 5 months ago

Hi @Tianweihaihaihai , I met this problem now when using the image stitcher. Device: X3 Firmware version: v1.0.85 SDK version: LinuxSDK20231211

The output I receive (not using cuda) when running the compiled example over jpg captured using the CameraSDK:

[02-12 15:38:14.926]  2625305 2625305 I ExtraInfoAsset.cc:0263:  extrainfo asset Parse: iotool read header fail
[02-12 15:38:14.926]  2625305 2625305 E OffsetUtil.cc:0872:  merge offset v1v2v3 fail, offset v1 emtpy
[02-12 15:38:14.963]  2625305 2625305 E ImageAsset.cc:0859:  AssetFile does not contain ExtraInfo!
[02-12 15:38:14.965]  2625305 2625305 E image_stitcherImp.cpp:0096:  blender init failed

Can you please instruct on how to solve this?