Skip to content

About

Create depth-based parallax videos from images with a scriptable, agent-friendly CLI.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Simple Video

Tell your AI agent what video you want. It turns your brief into an editable recipe, uses photos from your camera, images generated by your agent, or images generated by OpenAI, adds subtle depth motion, and returns an MP4 you can review. The agent runs the CLI from the same machine as your files.

npm packages

Package Use
@simple-post/video-editor Embed the React editor and player in a React 18 or 19 app. Import the package’s style.css to apply the theme.
@simple-post/video-core Create and validate portable projects and calculate their timelines in a browser or Node.js. The editor and CLI both depend on it.
@simple-post/video Run the simple-video CLI or import renderProject and preparePhotoDepth from @simple-post/video/renderer in a Node.js host.

Use the same project in either interface. An agent can discover the format with simple-video schema --editor --json, edit the shot and audio fields, and run simple-video compose cut.json --output cut.mp4. Add --preview for the same full-cut preview as the playground. Project example and React integration

Try the editor locally

From the repository root with Node.js 24+ and FFmpeg installed:

npm ci
npm run dev

Open the loopback address printed in the terminal (default http://127.0.0.1:4173). Choose photos and an aspect ratio. Open Shot settings and use Adjust crop beside Framing to position a fill-frame photo. In the storyboard, Remove photo removes the selected shot and Clear project starts a fresh cut. Both support Undo. Set each shot’s duration, combine parallax, zoom and pan under Camera motion, add captions or music, then select Full cut to preview or Export MP4 to download. The selected shot plays live in the browser. The first parallax preview prepares a reusable depth map, then you can scrub and adjust motion without waiting for another video render. The playground saves the draft in your browser and keeps media on your computer. DepthFlow motion uses the native renderer setup. With Parallax direction set to Off, zoom and pan use FFmpeg alone. Embed the editor in another React app.

Use images generated by an agent

Have the agent generate the individual stills using its own image tool and save them locally. Pass the files to the Simple Video CLI in playback order:

simple-video init ./trip --agent-image ./photos/arrival.png --agent-image ./photos/dusk.png --duration 2
simple-video --project ./trip plan --json --no-input
simple-video --project ./trip create --id first-cut --output ./exports --json --no-input

The plan reports zero paid image requests. Rendering these images requires no OpenAI login. Use --photo for camera photos and --prompt when you want the CLI's optional OpenAI image generator. Optional spoken narration uses a separate, explicitly requested generation step. Voiceover and editor project commands

Install the agent skill

From your project folder, run this and choose your agent:

npx skills add simple-post/simple-video --skill simple-video

The skill gives a terminal-capable agent the instructions to run Simple Video. It can invoke the CLI through npm. Use Node.js 24 or later. In Claude Code, invoke it with /simple-video; in Codex, with $simple-video. Other agents load it automatically when a request matches.

Then ask your agent for a video:

Use @simple-post/video to make a 9-second vertical parallax video of a tiny robot trying to order coffee. Create three realistic photos with a consistent character and use short captions. Keep the motion subtle. Give me the MP4 and the editable recipe.

Use @simple-post/video to make a 12-second parallax slideshow from the four photos in my Trip photos folder, in filename order. Keep faces in frame and leave the video silent. Give me the finished MP4.

For a free first run, ask it to make a demo with the built-in artwork. For a matchup, name the two sides and tell the agent if you want the winner to change on the last round. For music, point it at a local track you have permission to use and describe the desired timing.

What you’ll do once

  • Approve renderer setup if needed. Your agent can check the environment, show you the proposed downloads, and run setup after approval. You need Node.js 24+, FFmpeg with ffprobe and libx264, and a working OpenGL context for the default renderer. The managed Python environment and depth weights can take several GB.
  • Check your platform. Rendering is verified on Apple Silicon Macs. Setup includes Intel macOS, glibc Linux and Windows x64 builds, but GPU rendering on those is still untested. Run doctor --check-render first, and please report results either way. See support status.
  • Add an OpenAI key for the built-in OpenAI image generator or AI voiceover. Run simple-video auth login in a terminal and enter the key at the hidden prompt. Choose the native OS store to reuse it across projects, or use a secret manager or environment variable for unattended jobs. Uploaded photos, agent-generated images and the demo work without a key.

Once set up, give the agent the brief. It can pick the layout, write the prompts or order the photos, validate the plan, render, fix visual issues using the same images, and return the finished file. The CLI creates the video locally. It sends image-generation requests to OpenAI only if the agent runs generation with --execute.

Install the skill from npm

The npm package also bundles the skill. Copy it into your agent's skill directory from your project folder:

# Claude Code
npx --yes --package=@simple-post/video@latest -- simple-video skill --output .claude/skills/simple-video
# Codex
npx --yes --package=@simple-post/video@latest -- simple-video skill --output .agents/skills/simple-video

For another agent, use that agent’s skill directory. A terminal-capable agent can also use npx --yes --package=@simple-post/video@latest -- simple-video skill --print to read the instructions on demand. The latest tag selects the current stable release.

Commands your agent runs

Install the CLI if you prefer a command on PATH:

npm install -g @simple-post/video@latest
simple-video --version

Check a machine or prepare the renderer:

simple-video doctor --runtime-only --json --no-input
simple-video setup --runtime-only --dry-run --json --no-input
# After approval, if the renderer is missing:
simple-video setup --runtime-only --yes --json --no-input
simple-video doctor --runtime-only --check-render --json --no-input

For an original photo, the agent writes the description itself:

simple-video init ./coffee --json --no-input \
  --name "Coffee Break" --duration 6 \
  --prompt "A tiny red robot standing at a busy cafe counter, warm window light, clear foreground and background"
simple-video --project ./coffee plan --json --no-input
simple-video --project ./coffee create --id coffee-break --execute \
  --output ./finished --json --no-input

For supplied photos, the agent passes them in the desired order. One photo creates a single scene. Multiple photos create a slideshow.

simple-video init ./trip --json --no-input \
  --name "A Weekend Away" --duration 3 \
  --photo "./Trip photos/01.jpg" --photo "./Trip photos/02.jpg" --photo "./Trip photos/03.jpg"
simple-video --project ./trip create --id weekend --output ./finished --json --no-input

For a comparison, start with init --template comparison --hero "A red fox" --opponent "Arctic foxes" --setting "A rocky tundra valley". For customized scenes and music, the agent can edit the recipe and check the supported fields with simple-video schema --json and plan. A comparison alternates split screens and result photos. The template keeps the same winner through the penultimate round.

The agent reads the exported path at data.export.video and checks the contact sheet at data.contactSheet. --json --no-input prints a structured result on stdout and progress or errors on stderr. It never prompts. For a render interrupted during generation, resume with the same recipe and run ID. An unknown outcome from the image API needs investigation before a retry that could incur another charge.

Files and limits

  • simple-video.json is the editable recipe. Input paths in it are relative to that file. init --photo references the original photos in place.
  • .simple-video/ in the project holds generated photos, cached renders, contact sheets and run records.
  • create --output DIR writes the finished MP4 and a JSON manifest to the chosen folder. Use render --run ID --intensity 0.07 to reduce motion using the existing photos, then export --run ID --variant VARIANT --output DIR to export the revised cut.
  • The parallax effect adds camera motion to still photographs. Stronger motion can stretch edges. Music is optional and new projects are silent by default.
  • Your agent can pass the finished MP4 to SimplePost when you ask it to publish or schedule. Video generation and exporting require no SimplePost account.

The TypeScript CLI is MIT licensed. DepthFlow is installed separately under AGPL-3.0. See third-party notices and contributing. The CLI contract, renderer setup, recipes and music, and credential storage are also bundled in the npm package.

About

Create depth-based parallax videos from images with a scriptable, agent-friendly CLI.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages