1、Running stitcherSDKDemo.exe
Standalone When executed without additional arguments, stitcherSDKDemo.exe
will produce output similar to the provided illustration:
PS E:\workspace\MediaSDK\bin\MediaSDK20231212(windows)\MediaSDK\bin> .\stitcherSDKDemo.exe
can not find input_file
{-help | default | print this message }
{-inputs | None | input files }
{-output | None | out path }
{-stitch_type | template | template }
{ | optflow }
{ | dynamicstitch }
{-hdr_type | None | singleimagehdr }
{ | multiimagehdr_mbb }
{ | multiimagehdr_mpl }
{-bitrate | same as input vidoe | the bitrate of ouput file }
{-enable_flowstate | OFF | open flowstate }
{-enable_directionlock | OFF | open directionlock }
{-output_size | 1920x960 | the resolution of output }
{-disable_cuda | true | disable_cuda }
{-enable_stitchfusion | OFF | stitch_fusion }
{-enable_denoise | OFF | enable denoise }
{-enable_colorplus | OFF | enable colorplus }
{-colorplus_model | | colorplus_model path }
{-enable_h265_encoder | OFF | default h264 }
{-image_sequence_dir | None | the output dir of image_sequence }
{-image_type | jpg | jpg }
{ png }
{-gpu_no | default 0 | gpu number begin with 0 }
{-camera_accessory_type| default 0 | refer to 'common.h' }
{-enable_area_sample | OFF | used to Eliminate moiré }
Input media can be categorized as video or image:
- For videos, the files are distinguished by resolution:
- 5.7K videos consist of a pair of '.insv' files, labeled as '00' and '10', each corresponding to content from one of the fisheye lenses. The input format should be as depicted:
-inputs /path/to/*00*.insv /path/to/*10*.insv
- Non-5.7K videos are combined into a single file accommodating both fisheye lens outputs. The input format should be as depicted:
-inputs /path/to/*.insv
- For images, they are typically saved as one file containing both fisheye image projections, with the following input format (supporting '.insp' and '.jpg'):
-inputs /path/to/*.insp
-inputs /path/to/*.jpg
Designate the file path and filename, including its extension, for the processed output.
- Applicable for videos with an '.mp4' format.
-output /path/to/*.mp4
- Applicable for images with an 'jpg' format)
-output /path/to/*.jpg
Assigns the folder destination for outputting video frames as an image sequence. When this parameter is used, there is no need to define -output
, simply providing the directory path is sufficient. Use -image_type
to choose the format of the sequence images from either 'png' or 'jpg', with 'jpg' set as the default filetype.
-image_sequence_dir /path/to/
Specifies the target resolution for output media. Ensure the aspect ratio is maintained at 2:1 and input even number values for width and height.
Activates H265 (HEVC) encoding, particularly useful for circumventing hardware encoding limitations in CUDA environments when dealing with resolutions beyond 4K. Defaults to H264 if unspecified.
Determines the method of combining captured images into a seamless panorama: 'template' for template stitching, 'dynamicstitch' for dynamic stitching, and 'optflow' for optical flow stitching. Quality of result enhances from template to optflow, but processing time also increases proportionally.
Defines the targeted bitrate for the output file, impacting file size and quality.
Enables a stabilization feature to reduce motion-induced irregularities in the footage.
Locks the viewing direction to ensure a fixed orientation during playback. Stabilization via -enable_flowstate
must also be activated for this to function.
Activates stitch fusion to reduce chromatic aberrations in stitched panoramic images.
Turns on noise reduction to minimize undesired grain and noise from the final output.
Engages enhanced color correction features. When using this option, the model file path can be specified using the parameter -colorplus_model
.
This parameter is used to set the type of camera accessory.
This participation is used to eliminate moiré when exporting to low resolution.
For optimal viewing of panoramic content, using Insta360's Studio or PotPlayer is recommended, with appropriate panorama viewing settings enabled.