# 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

- **Space:** xr-glasses-and-headsets-public (https://github.com/Tech-Realm/space-xr-glasses-and-headsets-public/tree/main/spatial-video-sbs)
- **Level:** L1 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** ffmpeg, ffprobe, bash
- **Routes:** ffmpeg-local, apple-mv-hevc; checks: 2
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use xr-glasses-and-headsets-public/spatial-video-sbs` or MCP `get_pack xr-glasses-and-headsets-public/spatial-video-sbs`
- **Files:** CHANGELOG.md, code/make_sbs.sh, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/results.json, pack.yaml, spec/SPEC.md, spec/source.md

## Purpose (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.



---

Canonical URL: https://logicpacks.io/packs/xr-glasses-and-headsets-public/spatial-video-sbs

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
