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-sbsget_pack xr-glasses-and-headsets-public/spatial-video-sbsThe 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
- Sync the two clips (same start frame; use a clap or flash). Trim with
-ssper input if needed. - Full SBS (each eye full width):
bash code/make_sbs.sh left.mp4 right.mp4 out.mp4 full. - Half SBS (each eye squeezed, same width as one eye; what many glasses' 3D modes expect):
... half. - XREAL Air on a Mac/phone: 3D SBS mode on the glasses turns 3840x1080 or half-SBS 1920x1080 into 3D; play full screen.
- 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.
- Check:
bash code/make_sbs.shon 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.