3.3.1 [Beginner] Video stitching by Stitcher

  1. Recognize format and storage format of photo files

    image

    • Video is stored as MP4 format, encoded by H.264.

    • Each shoot creates a folder containing all description files (gyro.bat and pro.prj) as well as video files. When the camera opens up gyroscope, it generates gyro.bat files.

    • origin_*.mp4 sequences are original files captured by each independent lens for post stitching. Resolution 3840 * 2160 can stitch 8K panoramic video at the maximum, resolution 2560 * 1440 can stitch 4K panoramic video, and resolution 3200 * 2400 can stitch 6K3D video and 6K panoramic video at the maximum.

    • Preview.mp4 is a preview file of 1920 * 960 with frame rate of 1 fps, which can be used as a later timeline reference.

    • Audio files recorded inside the camera have been reduced noises by algorithm and two audio channels are stored separately in both origin_0.mp4 and origin_1.mp4. Finally panoramic sounds can be obtained via Stitcher stitching.

    • If real-time stitching is performed, then audio and video will be merged into the pano.mp4 file.

  2. Stitcher interface introduction

    image

    • On the top is the menu bar: File, Settings, Language, Help. You can find functions of file import, google street view upload, log display, preference settings (hardware decoding or software decoding) , hardware performance test, language settings, log upload, etc.

    • On the left is a list of files. You can drag folders directly to import files. Stitchingbox refers to using Pro’s own function for stitching. And the operating mode is described in detail in 3.3.4

    • Pro's official forum is shown at the bottom left, which provides latest software information, tutorials, technical discussions, feedback and suggestions to Insta360.

    • In the middle is real time monitor window, supporting the playback of the file in any lens.

    • Below is task status bar, where you can see the stitching process and check what has been done.

    • In the upper right is stitching setting area, where you can set up stitching Content Type (Monoscopic and Stereo) and Stitching Mode (optical flow and template stitching).Sampling type and Blender Type generally have default settings. Default Circle Position is used to optimize stitching at top of the frame and under dark conditions.

  3. Hardware performance testing

    Because video stitching has high requirements on computer performance, it is suggested that speed test should be carried out first before using Stitcher. Select hardware performance test in the settings, and the test will take a while. image

    image

    After testing, results for computer performance will be provided for your reference.
    image

  4. Stitching step

    Import a video folder
    image

    Content types include Monoscopic, Stereo (Left Eye on Top) and Stereo (Right Eye on Top).
    image

    For Stitching Mode, you can select new optical flow and optical flow to calculate new template according to current picture.

    Optical Flow: basic optical flow algorithm, general stitching speed.

    New Optical Flow: an increase of nearly 3 times of stitching speed on original basic optical flow but few scenes can achieve less stitching effect than basic optical flow. It is suggested to try basic optical flow and compare effects when you feel dissatisfied about the stitching effect of new optical flow.

    Scene-specific Template: speed is fastest but it is not optical flow stitching, so it has limited effect when there’s parallax error and in near distance.

    image

    As for Sampling Type, if the camera is still static then three sampling types are not very different from each other. If the camera is moving, sampling with slower speed can obtain better image quality which is commonly used in video stitching.
    image

    Blender Type is generally automatically chosen by the computer.

    CUDA: if the computer use NVIDIA graphics cards, you have to select NVIDIA CUDA technology to enable hardware acceleration.

    OpenCL: if the computer doesn’t use NVIDIA graphics cards, we also provide hardware acceleration through OpenCL.

    CPU: non hardware acceleration, pure CPU computing.
    image

    Using default circle position option for some scenes with shelter at top and scenes under dark conditions will help improve stitching effects.

    Gyroscopic Stabilization can make screen keep horizontal automatically when exporting 2D panoramic photo, but the stitching of 3D video does not support Gyroscopic Stabilization. Please choose hardware decoding and hardware coding based on the resolution and computer performance of the video. Hardware decoding is not supported when the resolution of exported video is higher than 4K x 4K or using the H265 encoding on MAC.
    image

    Software encoding speed means the higher encoding speed you choose, the faster the stitching is, but quality details may lose.

    For example, for some static scenes, fast encoding speeds can also get good quality, but mosaic may appear for fast encoding of moving scenes in terms of screen details. This requires users to make choices according to content scenarios, stitching quality and stitching speed.

    Please note that if you select Cuda or OpenCL hardware acceleration, there is no software encoding speed option because it uses hardware coding in these modes.
    image

    Setting reference frame in video stitching is especially important. Stitcher applies the stitching parameters of the selected reference frame to to the whole stitching process.Therefore, when selecting a reference frame, one should select the frame in time interval of output time which should be at important moment of the video, such as the moment when the camera is at the closest distance between characters, or setting one frame as key frame in high-proportion scene, like scenery shooting.
    image

    When preview stitching effect, you can change reference frame, adjust screen level, center angle of view and make simple color correction. Zenith Optimization function can optimize scenes with regular lines at top, such as air conditioning exhaust vents on the ceiling. Please note that there is no function of adjusting screen level and center angle in 3D video stitching.
    image

    Selecting time periods that need to be exported can save time and computer resources to export valid snippet, which is convenient for post editing.
    image

    Resolution can be customized except for preset resolutions.
    image

    image

    Stitcher supports coding of both H264 and H265. H265 encoding has better quality and need less storage space, but it is not well supported by many VR player and editing software. Especially when editing the video, H265 encoding has high requirements on hardware.
    image

    Profile is an optional configuration parameter for H264 encoding. The higher the compression ratio of Baseline, Main and High, the higher the requirement on the decoding performance of players.
    image

    Generally speaking, Stitcher can automatically match preset bitrate, based on resolution settings. 60 Mbps is recommended for 4K 2D panorama, while 120 Mbps for 4K 3D panorama.
    image

    Audio type: if Spatial audio is selected, the video will have 4 sound tracks. If Normal audio is selected, there will be only stereo orbit.
    image

    You can also choose to export audio files separately.
    image

    Output directory path and output file name can be set. When setup completes, you can add to batch list for pending processing or stitch immediately.
    image

    The stitching process can be checked in stitching taskbar. During the process of panoramic video stitching, stitching can also be terminated, and the software will automatically save the parts already stitched.
    image