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

Could you please do this project for using with local files? #12

Open
DasFragezeichen opened this issue Sep 13, 2022 · 3 comments
Open

Comments

@DasFragezeichen
Copy link

Could you please do that project for using with local files? I only use the Insta360 Studio to stitch my videos and I hate it, because I edit my videos with another program. If I understand the description correct with your script it's no longer need to spent a lot of time in stitching and rendering the files with the Studio.

@etlweather
Copy link

You shouldn't need this project for local files. It uses the SDK but not really. It uses the demo program that comes with the SDK as shown with this snippet of code:

                        cmds = []
                        cmds.append("{}/stitcherSDKDemo".format(SDK_PATH))
                        cmds.append("-inputs")
                        cmds.append("{}/{}".format(working_folder, need_convert_files['left']['name']))
                        if is_img != True:
                            cmds.append("{}/{}".format(working_folder, need_convert_files['right']['name']))
                            cmds.append("-output_size")
                            cmds.append("5760x2880")
                            cmds.append("-bitrate")
                            cmds.append("200000000")
                        else:
                            cmds.append("-output_size")
                            cmds.append("6080x3040")
                        cmds.append("-stitch_type")
                        cmds.append("dynamicstitch")
                        if stabilize_flag:
                            cmds.append("-enable_flowstate")
                        cmds.append("-output")
                        cmds.append("{}/{}".format(working_folder, convert_name))
                        log("360 convert command: {}".format(cmds))
                        if is_img:
                            p = Popen(" ".join(cmds), stdin=PIPE, stdout=PIPE, stderr=PIPE, shell=True)
                            return_code = p.wait()
                            log("return_code of the conversion: {}".format(return_code))
                            if return_code == 139 and is_img and stabilize_flag:
                                stabilize_flag = False
                            elif return_code != 0:
                                retry = False
                                raise RuntimeError("return_code of the conversion is not 0")
                            else:
                                retry = False

@DasFragezeichen
Copy link
Author

Thanks for that. Very nice.

@davidrbrake
Copy link

For those of us who are even further down the "coder knowledge" hierarchy, if someone could create an ultra simple pre-packaged Win or Mac app that just took in a source directory or file list and spat out 360 video and 360 photos to the best available free viewer platforms (the user having input appropriate username and password) that would be a significant service. Unfortunately I have discovered that my Quest 2 won't view Google Photos 360 photos natively (you just have to pan around them manually). Likewise with Google Drive. Kuula supports a WebGL viewer for photos but only a limited number for free and an even more limited number of videos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants