🎞️ Turn flat video into headset-ready stereo depth 🥽
flat2vr is a Python CLI for video creators and VR viewers who want to turn
ordinary 2D footage into stereoscopic Full Side-by-Side video for headsets such
as Meta Quest 3. Point it at a video and run the conversion on an NVIDIA Docker
host or Modal; it returns an HEVC .mp4 with the source audio retained.
The Python distribution is named flat2vr-cli; it installs the flat2vr
command and flat2vr import package.
The lightweight client stays local. CUDA, FFmpeg, DepthCrafter depth estimation, and M2SVid view synthesis run inside the same pinned GPU container on either backend.
Install
flat2vr requires Python 3.11 or newer and uses uv for its local environment.
git clone https://github.com/tsilva/flat2vr-cli.git
cd flat2vr-cli
uv sync
Run uv run flat2vr --help to inspect the CLI.
Commands
# Check a local or API-addressed NVIDIA Docker host, then convert a video.
uv run flat2vr doctor --backend docker
uv run flat2vr convert input.mp4
# Convert on a remote Docker host over SSH.
uv run flat2vr convert input.mp4 -o output_Full_SBS.mp4 \
--docker-ssh gpu.example.com --docker-sudo
# Build the pinned GPU image explicitly.
uv run flat2vr build
To use Modal instead of Docker:
uv sync --extra modal
uv run modal setup
uv run flat2vr modal deploy
uv run flat2vr doctor --backend modal
uv run flat2vr convert input.mp4 --backend modal
Tune the conversion or run the test suite:
uv run flat2vr convert input.mp4 -o output_Full_SBS.mp4 \
--disparity 0.05 --depth-steps 5 --output-height 1024 --quality 19
uv run python -m unittest discover -s tests -v
Notes
- The default output is
<input>_Full_SBS.mp4. Select SBS/LR or 3D SBS mode manually if your player does not infer the layout from the filename. - At the default output height, a 16:9 source produces an approximately 3584×1024 frame containing two full-resolution eye views.
--encoder autoprefers NVENC and retries with CPUlibx265if NVENC fails.- The first conversion populates the persistent
flat2vr-modelscache with roughly 13 GB of model data. Later jobs reuse it. - Docker can run locally, through a Docker API endpoint, or over SSH. Modal uses
the same pinned container plus
flat2vr-modelsandflat2vr-jobsvolumes. - Successful Modal jobs remove their uploaded input and generated output after download. Failed job files are retained for diagnosis.
- The result provides binocular depth, not six-degree-of-freedom geometry. You can watch the 3D image, but you cannot move around its objects.
- Source revisions, Python environments, model revisions, and model hashes are pinned for reproducible conversions.
Architecture
Metadata
Release files for flat2vr-cli 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flat2vr_cli-0.1.3.tar.gz | 7.9 MB | With provenance | Details for flat2vr_cli-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flat2vr_cli-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for flat2vr_cli-0.1.3-py3-none-any.whl |
Total release size: 8.1 MB
Release files / flat2vr_cli-0.1.3.tar.gz
| Download URL | flat2vr_cli-0.1.3.tar.gz |
|---|---|
| Size | 7.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
67d04f3f60cecdd37233a8591f9f31cc4deeaaa331bc2efe25d21905ec45d6b5
|
|
BLAKE2b-256 checksum How to use checksums |
089b598c79a2425486f3ac65a1c52790ce09c4be36ffce2f535595ad9ca18af3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 14, 2026.
Transparency logRelease files / flat2vr_cli-0.1.3-py3-none-any.whl
| Download URL | flat2vr_cli-0.1.3-py3-none-any.whl |
|---|---|
| Size | 156.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e990394dac934e69e6ca540dbbbaca8d5b473addf4266bce000f53e1540f093
|
|
BLAKE2b-256 checksum How to use checksums |
6d34fa08c220c753c0c808620c41101df7585914323b4fa4122142f931ca871e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 14, 2026.
Transparency logSecurity for flat2vr-cli 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for flat2vr_cli-0.1.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 14, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.