@immersive-scroll/cli
v0.1.2
Published
CLI for immersive scroll frame extraction and validation.
Readme
immersive-scroll
CLI for preparing and validating immersive scroll assets. This package turns source video into deterministic frame folders and manifests that the runtime packages can consume directly.
Install
pnpm add immersive-scrollOr run it without adding it to your app:
npx immersive-scroll --helpInside this monorepo, the simplest example-asset workflow is:
pnpm extract "<video-path>"That wrapper rebuilds every example app's shared /public/immersive/scene folder automatically.
Commands
extract <video> <output-folder>: extract frames, write a manifest, and generate a frame index.validate <frames-folder>: validate an existing frame directory and return a machine-readable report.repair <video> <frames-folder>: regenerate frames for a broken or incomplete folder.manifest <frames-folder>: print the resolved manifest JSON for a folder.hash <video>: print the content hash for a source video.doctor: print Node, platform, temp directory, andffmpegavailability details.
Examples
immersive-scroll extract ./assets/story.mp4 ./public/immersive/story --clean
immersive-scroll extract ./assets/story.mp4 ./public/immersive/story --max-frames 180 --clean
immersive-scroll validate ./public/immersive/story
immersive-scroll doctorNotes
ffmpeg-staticis bundled, so the default flow does not require a separately installed systemffmpeg.- Extraction now defaults to roughly
250frames, auto-lowers fps for long videos, scales oversized footage to landing-page dimensions, and tunes WebP quality automatically. - The CLI writes manifests that match the contracts exported by
@immersive-scroll/shared. - The package is designed for build pipelines and local authoring tools, not browser usage.
