JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 57
  • Score
    100M100P100Q76882F
  • License MIT

Command-line interface for ui2v video compositions

Package Exports

  • @ui2v/cli

Readme

@ui2v/cli

中文

Command-line interface for validating, previewing, inspecting, and rendering ui2v animation JSON projects.

Install

npm install -g ui2v
# or: bun install -g ui2v
ui2v --version

Run without global install:

npx ui2v --version

Commands

ui2v doctor
ui2v init my-video
ui2v validate animation.json --verbose
ui2v preview animation.json --pixel-ratio 2
ui2v inspect-runtime animation.json --time 0 --time 1
ui2v render animation.json -o output.mp4
ui2v info

Render Options

ui2v render animation.json -o output.mp4 --quality high --fps 60
ui2v render animation.json -o output.mp4 --width 1280 --height 720 --render-scale 2
ui2v render animation.json -o output.mp4 --codec avc --bitrate 8000000
ui2v render animation.json -o output.mp4 --timeout 300 --no-headless

render currently targets MP4. AVC/H.264 is the default codec. HEVC can be requested only when the local browser supports it.

Local Development

bun install
bun run build
node packages/cli/dist/cli.js doctor

If no browser is found, install Chrome or Edge, set PUPPETEER_EXECUTABLE_PATH, or run:

npx puppeteer browsers install chrome

License

MIT