Skip to content

Packs / xr-glasses-and-headsets-public

spatial-video-sbs

Make stereo 3D video for headsets and XR glasses: combine left/right camera clips into full or half side-by-side MP4, and know the MV-HEVC route for Vision Pro spatial video

Install

logicpacks pack use xr-glasses-and-headsets-public/spatial-video-sbs
get_pack xr-glasses-and-headsets-public/spatial-video-sbs

The second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.

Keys it needs (names only)

None.

Playbooks included

  • Spec: spec/SPEC.md (goal, steps, edge cases, don’ts)
  • Routes: ffmpeg-localapple-mv-hevc
  • Checks: 2 in outcome/checks.yaml
  • Code: make_sbs.sh
  • Tools: ffmpeg, ffprobe, bash

Usage, last 8 weeks

New: no recorded use yet.

Purpose (from spec/SPEC.md)

Goal

A stereo video file that plays as 3D in headset players and XREAL 3D mode: frame-synced left/right, correct SBS layout and resolution.

Steps

  1. Sync the two clips (same start frame; use a clap or flash). Trim with -ss per input if needed.
  2. Full SBS (each eye full width): bash code/make_sbs.sh left.mp4 right.mp4 out.mp4 full.
  3. Half SBS (each eye squeezed, same width as one eye; what many glasses' 3D modes expect): ... half.
  4. XREAL Air on a Mac/phone: 3D SBS mode on the glasses turns 3840x1080 or half-SBS 1920x1080 into 3D; play full screen.
  5. Vision Pro spatial video is MV-HEVC: use Apple's AVFoundation MV-HEVC encoding (macOS 14+/Xcode) or a converter that writes MV-HEVC; keep the SBS master.
  6. Check: bash code/make_sbs.sh on synthetic inputs, then ffprobe the size.

Edge cases

  • Different frame rates/resolutions: the script scales and sets fps to the left clip's values.
  • Large disparity hurts: keep cameras ~6.5 cm apart for people-scale scenes.

Don'ts

  • Don't swap eyes (left must be on the left).
  • Don't upload stereo clips of people without consent.