Open nickponline opened 3 years ago
@zhangyabin_nature @capjason I get a very bad result compared to Insta360 Studio. Insta360 gives:
Where as using the MediaSDK I get:
Input videos: https://www.dropbox.com/s/grbomf1vadkbozs/df.zip?dl=0 My code is simply:
std::vector<std::string> input_paths; input_paths.push_back("VID_20171231_175657_00_002.insv"); input_paths.push_back("VID_20171231_175657_10_002.insv"); std::string output_path = "result.mp4"; STITCH_TYPE stitch_type = STITCH_TYPE::DYNAMICSTITCH; HDR_TYPE hdr_type = HDR_TYPE::ImageHdr_NONE; int output_width = 5760; int output_height = 2880; int output_bitrate = 40000000; bool bEnableFlowState = true; std::string strExt = input_paths[0].substr(input_paths[0].find_last_of(".") + 1); std::transform(strExt.begin(), strExt.end(), strExt.begin(), ::tolower); auto videoStitcher = std::make_shared<ins_media::VideoStitcher>(); videoStitcher->SetInputPath(input_paths); videoStitcher->SetOutputPath(output_path); videoStitcher->SetStitchType(stitch_type); videoStitcher->SetOutputSize(output_width, output_height); videoStitcher->SetOutputBitRate(output_bitrate); videoStitcher->EnableFlowState(bEnableFlowState); videoStitcher->SetStitchProgressCallback(process_callback, 0); videoStitcher->SetStitchStateCallback(error_callback, 0); videoStitcher->StartStitch(); getchar(); return 0;
@nickponline Did this issue get resolved?
would you pls update sdk version to try?
@zhangyabin_nature @capjason I get a very bad result compared to Insta360 Studio. Insta360 gives:
Where as using the MediaSDK I get:![image](https://user-images.githubusercontent.com/590151/92946452-87e57180-f40b-11ea-8336-e779cfd85fcc.png)
Input videos: https://www.dropbox.com/s/grbomf1vadkbozs/df.zip?dl=0 My code is simply: