Video stitching

Also known as: 360 video stitching

On this page 7

Video stitching is the process of combining synchronized footage from several overlapping camera lenses into a single continuous panoramic frame, most often a full sphere for 360-degree video. In XR content creation, it is the step that turns the separate circles or rectangles recorded by a multi-lens rig into one equirectangular image that a headset can wrap around the viewer.

Practitioners also call it 360 video stitching. The quality of the stitch decides whether viewers in a headset perceive a believable surrounding world or notice visible seams, ghosting and broken lines at the borders between lenses, which in immersive viewing is far more distracting than on a flat screen.

How video stitching builds a spherical frame

Video stitching works by aligning, warping and blending the images from each lens so that the content in their overlapping regions matches. Each camera sees a part of the scene, and neighboring lenses share an overlap zone, typically 10 to 30 percent of their field of view, which provides the shared visual information needed to join them.

The software first estimates lens calibration: intrinsic parameters such as focal length and fisheye distortion, and extrinsic parameters describing each lens orientation in the rig. It then finds matching feature points in the overlaps, solves for the best alignment, and reprojects every frame onto a common sphere. Finally, seam finding and blending hide the transitions, and the result is written out in a projection such as equirectangular or cubemap.

The main stages of a typical pipeline are summarized below, together with the problem each stage solves.

StageWhat it doesTypical failure if skipped
SynchronizationAligns frames from all cameras in time, often by audio or timecodeMoving objects split or double at seams
Lens calibrationModels fisheye distortion and lens positionCurved horizons and misaligned edges
Feature matchingFinds identical points in overlap zonesGlobal misalignment between lenses
ReprojectionMaps each image onto a common sphereWrong geometry and stretched areas
Seam blendingHides transitions with feathering or multiband blendingHard visible lines between lenses
Color matchingEqualizes exposure and white balancePatches of different brightness
Stages of a stitching pipeline

Parallax, the core difficulty of stitching

Parallax is the apparent shift of an object when it is seen from two different positions, and it is the fundamental reason why stitching can never be perfect for physical rigs. Because lenses cannot occupy the same point in space, each sees nearby objects from a slightly different angle, so a single warp cannot align both near and far content at once.

The ideal rig would rotate every lens around a shared no-parallax point, often loosely called the nodal point. Compact rigs reduce the distance between lenses to minimize parallax, which is why small two-lens consumer cameras stitch cleanly at a distance. The practical rule is a minimum stitching distance: objects closer than a certain range to the seam produce visible errors.

The following table shows how rig geometry influences the safe working distance for subjects near a seam. The values are approximate and depend on lens count, overlap and software.

Rig typeLens spacingApproximate safe distance near seams
Dual-lens consumer cameraAbout 2 to 3 cmRoughly 0.5 to 1 m
Six-lens prosumer rigAbout 5 to 10 cmRoughly 1 to 2 m
Large stereoscopic rig10 to 20 cm or moreRoughly 2 to 3 m or more
Rig size and minimum stitching distance

Modern stitchers address parallax with optical flow, which estimates per-pixel motion between overlapping images and synthesizes intermediate viewpoints. Optical flow can make close subjects look seamless, but it is computationally expensive and can create warping artifacts on thin structures, repetitive patterns and fast motion.

Stitching methods and when each applies

Stitching methods differ mainly in how they handle parallax and how much processing time they need. Template stitching applies a fixed calibration stored for a known camera, which is fast and reliable for consumer devices. Feature-based stitching recalculates alignment from the footage itself, and optical flow stitching adds per-pixel correction for demanding productions.

MethodSpeedParallax handlingTypical use
Template stitchingVery fast, often in cameraLimitedConsumer cameras, live preview
Feature-based stitchingModerateGood for distant contentProsumer rigs, static scenes
Optical flow stitchingSlow, GPU intensiveStrong for close subjectsHigh-end cinematic VR
Real-time live stitchingReal time on dedicated hardwareLimited to moderateLive events and broadcasts
Comparison of common stitching approaches

Stereoscopic stitching is more demanding still. For stereoscopic video and VR180, the stitcher must produce two consistent views, one for each eye, with correct horizontal disparity. Errors that are tolerable in monoscopic footage, such as small vertical misalignment, cause eye strain and discomfort in stereo because the visual system cannot fuse the two images.

Practical workflow for clean stitches

Clean video stitching starts on set, not in post-production. Planning where seams will fall, keeping the camera level and placing key action in the center of a lens rather than in an overlap reduce the work later. Locking exposure and white balance across all lenses also prevents color mismatches that are hard to correct.

  • Point the center of a lens toward the main subject so that action stays away from seams.
  • Keep people and objects beyond the minimum stitching distance of the rig.
  • Use a thin monopod or tripod directly below the camera so that the nadir is easy to patch.
  • Record a sync signal, such as a clap, when cameras are not hardware synchronized.
  • Review stitches in a headset, because flat previews hide errors that become obvious in immersion.

After the main stitch, editors usually perform nadir and zenith cleanup to remove the tripod and fix the poles of the sphere, where equirectangular projection stretches pixels most. Horizon leveling and stabilization follow, because tilted or shaky 360 footage quickly causes motion sickness.

Common stitching artifacts and fixes

Most visible stitching errors fall into a handful of recognizable patterns, each with a known cause. The table below works as a diagnostic checklist for reviewing a stitched sequence.

ArtifactLikely causeRemedy
Ghosting or doublingSubject too close to a seamReshoot farther away or use optical flow
Broken straight linesCalibration error or parallaxRecalibrate or adjust control points
Brightness stepsUnlocked exposure per lensLock exposure, apply color matching
Jumping seamsUnstable per-frame alignmentUse a fixed template or smooth over time
Warped thin objectsOptical flow failureMask the area or switch blending method
Stitching artifacts, causes and remedies

A frequent misconception is that higher resolution fixes stitching. Resolution does not remove parallax; it only makes errors sharper. Equally, software cannot fully recover information that no lens captured, so careful shooting remains decisive.

In everyday language

Imagine taking several photos while turning in a circle and then gluing them into one long picture. Video stitching does the same thing for video, many times per second, with cameras that point in different directions at once. The result is a moving picture that surrounds you completely when you wear a headset.

The hard part is the edges where pictures meet. Because the cameras sit slightly apart, close objects look a little different to each one, and the joins can show. Good stitching hides those joins so the world feels whole.

Seen in the real world

A small production team records a 360-degree tour of a concert hall with a six-lens rig on a thin stand placed in the center aisle. They aim one lens at the stage, keep the audience at least two meters from the camera, and lock exposure on all lenses before the performance starts.

In post-production, they run optical flow stitching on a workstation, which takes several hours for a 20-minute sequence at 8K equirectangular resolution. They patch the stand out of the nadir, level the horizon and review the result in a headset. A railing near one seam shows doubling, so they mask that area with a cleaner frame. The final video plays without visible seams on the stage, and viewers report that the hall feels convincingly present.