This tutorial explains how to create a 360 video from the content shot with a dual-lens camera.
1. Split the input video file into two video inputs
These cameras output a single video file containing the two lenses feeds. This format is not natively supported by VideoStitch Studio so the first step is to split the two lenses feeds in two videos.
To do so, you will need to download FFmpeg and apply the following commands on your video:
ffmpeg -i input.mp4 -filter:v "crop=in_w/2:in_h:0:0" output-left.mp4
ffmpeg -i input.mp4 -filter:v "crop=in_w/2:in_h:in_w/2:in_h" output-right.mp4
Here is an example:
Your videos are now ready to be imported in VideoStitch Studio
2. Stitch the videos in VideoStitch Studio
Import the two videos (output-left.mp4 and output-right.mp4) in VideoStitch Studio. Then open the calibration widget (Window > Calibration)
Select the "Custom" rig preset, "Circular Fisheye" lens type and input the lens FOV. Here is a list of common FOV values:
- Gear 360: 195°
- Ricoh Theta: 190°
- LG 360: 200°
- Nikon KeyMission 360: 194°
Then click on "Adjust inputs crop" to define the way the image has to be cropped
Then select your calibration sequence (defined by the light gray area in the timeline). You can modify your sequence by moving the left and right marquees.
To optimize calibration results, we recommend choosing a sequence where the camera overlap areas respect the following rules.
- No object close to the camera (e.g less than 2m from the cameras) to avoid introducing parallax errors
- Camera overlapping areas contain enough details (not pointing to a blank wall or the sky for example). Else the calibration algorithm will not be able to find control points
Click on "Calibrate" to launch the calibration. After the calibration is finished, you will see the result on the right panel.
You can then correct the exposure and orientation, stabilize the video and export it!
Here is the exported result in our example: