Video editing CLI for AI agents. Compose scenes, animate camera moves, retime footage, mix audio, burn captions, and render with FFmpeg.
Project description
moviestar
Video editing CLI for AI agents. Give your coding agent the ability to edit video.
Your agent loads one or many videos, fuzzy-searches the transcript, composes a timeline across multiple cameras, animates per-scene camera moves, retimes footage, mixes source audio with voiceover and music, burns in captions with spoken-word highlighting, and renders with FFmpeg — or extracts any number of standalone clips in one pass. All output is structured JSON. Source files are never modified — edits are described in a declarative spec and applied at render time.
Quick start
Make sure FFmpeg is on PATH (brew install ffmpeg on Mac), create a Python 3.10+ venv, then paste this into Claude Code, Cursor, or any coding agent:
Create a Python 3.10+ virtual environment, then:
pip install moviestar
moviestar --help
Read the --help output — it's your operational briefing.
Then load the video at ~/Downloads/podcast.mp4. Find the moment where
the host says "the bottom line, here's what I think." Trim to just
that sentence with --snap-to-words so the cuts don't land mid-word.
Export the result to ~/Desktop/clip.mp4 and tell me how long it is.
The agent will work through load → find → trim → export, returning structured JSON at every step. No GUI, no timeline, no manual scrubbing.
For a multi-camera recording, the agent can load cam1.mp4 cam2.mp4 screenshare.mp4, concat ranges from each into one timeline, pick whose mic plays with --audio-from, choose a global layout with --layout, or use scenes set for layout changes over time. Then captions generate burns word-highlighted captions from the transcript into the final render.
For a product demo, scenes motion adds source-relative zooms and pans plus speed, target-duration, and hold pacing to individual scene slots. audio places voiceover and music on the finished timeline, adjusts gain and fades, loops beds, and ducks one layer under another.
What's in MovieStar
Browse:
moviestar load— index one or more videos, transcribe with local Whisper.--as <name>names sources;--addappends to an existing project;--no-downloadguarantees a hermetic run.moviestar skim— fast browse: thumbnails + transcript over a range (--text-onlyfor transcript alone).moviestar inspect— dense thumbnails on demand at a configurable interval.moviestar watch— extract an MP4 segment for multimodal model analysis.moviestar status— current project state at a glance.moviestar history— step-by-step edit lineage for a source.
Edit (multi-source):
moviestar trim— append a trim to a source's edit spec (result-time semantics; stacks compose).moviestar cut— remove a range from the middle of a source's result.moviestar concat— stitch ranges from one or more sources into a single composition.--audio-from <source>routes which source's audio plays across the cut;--canvas,--layout,--slot, and--framingbuild canvas-aware visual compositions.moviestar layouts— inspect preset layout regions and sample images before choosing a layout.moviestar scenes set/moviestar scenes list— author and read ordered scene-layout compositions where each scene can use its own preset layout, slots, source ranges, framing, and audio route. For large compositions, pass editable JSON withmoviestar scenes set scenes.json --dry-run, review the resolved plan, then re-run without--dry-run.moviestar scenes motion dump/moviestar scenes motion set— round-trip per-slot pacing and camera state as editable JSON. Speed a source-local range up or down, fit it to an exact result duration, hold a frame, or define source-relative zoom/pan targets.--dry-runreports calculated peer pacing, time maps, normalized/pixel targets, derived crops/zoom, and pacing-driven camera rebases. Screenshot, inspect, watch, and export all render the same resolved camera and pacing plan. Once motion exists, scene/slot IDs preserve it across explicit JSON renames; deletions report exactly which attached motion records were removed.moviestar undo— pop the last operation (or the last concat).moviestar spec— show the current spec (or--editto replace,--resetto clear).moviestar find— fuzzy-search the transcript across every source;--contextreturns the surrounding timestamped segments.
Every source-specific command takes --source <id>, required only when a project has more than one source.
Captions and text overlays:
moviestar captions generate— compile the transcript into caption overlays, following each scene's audio routing.--highlight spoken-wordcolors the word being spoken, timed from the transcript's word timing.moviestar captions import— import.srt/.vttcaption files as overlays (cue timing is result-time; line breaks preserved).moviestar captions rules add --merge "ground -truthing=ground-truthing"/--replace "mispelled=misspelled"— persist exact project-level token corrections that every futurecaptions generateapplies before cue grouping. Usecaptions rules listandcaptions rules remove <rule-id>to inspect or remove them.moviestar overlays add— one timed text overlay: title, lower third, label, or creative emphasis text. Position presets or normalized--x/--y,--z-indexstacking, style presets plus a CSS-like subset (--css "font-size: 72px; color: white; -moviestar-stroke: 4px black; transform: rotate(-8deg)").moviestar overlays dump/moviestar overlays set— round-trip the complete overlay state as editable JSON: fix caption text, shift timing, restyle, then atomically replace after validation.moviestar fonts list/moviestar fonts add path/to/font.ttf --name "My Font"— see bundled fonts and install custom.ttf,.otf, or.ttcfiles without touching package internals. Inside a loaded project, fonts install tomoviestar/fonts; outside a project, they install to~/.moviestar/fonts. Use them from captions or overlays with--css "font-family: My Font".- Overlays render on every verification surface —
screenshot,inspect,watch, andexportall burn them in, with bundled or installed fonts resolved before rendering.
Audio mix:
moviestar audio source— inspect, mute, or adjust the gain of routed source audio.moviestar audio add— place voiceover or music against result time with source trimming, gain, fades, optional looping, and signal-driven ducking.moviestar audio dump/moviestar audio set— round-trip the complete mix as editable JSON and validate it with--dry-runbefore rendering.watchandexportrender the same resolved mix. Non-default mixes use a final clipping-protection limiter, with optional loudness normalization applied after the complete mix.
Output:
moviestar export— render the composition, scene composition, layout composition, or a single source's edit to MP4,moviestar-clips/export.mp4by default. Use--loudness-target -14to normalize shorts-style audio, and--audio-join-fade 0.08to smooth sequential cut/scene joins without changing result timing.moviestar clip— extract one standalone clip to its own MP4 (source-time, leaves the edit spec untouched).moviestar batch— extract many standalone clips from a JSON recipe in one atomic, frame-exact pass.moviestar clean— preview or delete generated media artifacts.moviestar screenshot— single frame at a timecode (project-aware:--atis in result-time).
Always-available:
moviestar probe— ffprobe metadata as JSON. Add--loudness(optionally with--from/--to) for structured integrated loudness and peak metrics.moviestar models pull <model>— pre-download a Whisper model before a load, CI job, or offline session.--dry-runon every expensive or high-impact command (load,inspect,watch,export,clip,batch,concat,scenes set,spec --edit).
Run moviestar --help for the full command list.
Why moviestar
Video editing tools are built for humans with GUIs. Agents don't have hands on a timeline or eyes on a canvas. moviestar is the hands; the agent is the brain.
- Verbose by default. Every command returns rich structured JSON — agents can discard what they don't need, but can't invent data the CLI didn't provide.
- Deterministic. Same input + same parameters = same output. No randomness, no hidden model calls.
- Result-time semantics. A second trim narrows the current result, not the original source.
findmatches resolve to both source-time and result-time so screenshots and exports compose cleanly. - Multi-source native. Load many cameras into one workspace, compose a timeline across them, and route audio per-composition — the same structured CLI the single-source flow uses.
- Non-destructive. Source files are never modified.
Full design and product principles in the project docs.
Requirements
- Python 3.10+
- FFmpeg on
PATH(brew install ffmpeg/apt install ffmpeg)
The package weighs ~210MB on install — faster-whisper ships local transcription out of the box (no API keys, no cloud round-trip). Diarization is opt-in: pip install moviestar[diarize].
Status
v0.4 adds per-scene camera motion and pacing plus result-time audio mixing to the v0.3 visual-composition arc. M20 and M21 engineering are complete, and v0.4 is ready for people to use while canonical real-QuickTime, talking-head, voiceover, and music validation continues. The mix path covers routed source audio, external tracks, fades, looping, sidechain ducking, clipping protection, and final loudness normalization. The roadmap of what's next lives with the project.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file moviestar-0.4.0.tar.gz.
File metadata
- Download URL: moviestar-0.4.0.tar.gz
- Upload date:
- Size: 807.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2bc1a8aa966fb676c923143faf75843d247e6a6e6fbec9a184ae76ba5b99415
|
|
| MD5 |
9346c087ffdc5b13f7b32ee348fd0741
|
|
| BLAKE2b-256 |
7b7a4a6f504ac6a2a9eab43974d986fa6ee00df95f2bd52f9ca5da1e1e71303b
|
Provenance
The following attestation bundles were made for moviestar-0.4.0.tar.gz:
Publisher:
publish.yml on jdilla1277/moviestar
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
moviestar-0.4.0.tar.gz -
Subject digest:
a2bc1a8aa966fb676c923143faf75843d247e6a6e6fbec9a184ae76ba5b99415 - Sigstore transparency entry: 2199104730
- Sigstore integration time:
-
Permalink:
jdilla1277/moviestar@d54748af8f94de317b48570183d6971f2fb9cc44 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/jdilla1277
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d54748af8f94de317b48570183d6971f2fb9cc44 -
Trigger Event:
release
-
Statement type:
File details
Details for the file moviestar-0.4.0-py3-none-any.whl.
File metadata
- Download URL: moviestar-0.4.0-py3-none-any.whl
- Upload date:
- Size: 638.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a23e28d0ee8f1c037e29f512d0f3c7c5c77cfaca02f486d6685c6ddba6542f6d
|
|
| MD5 |
4a76d71add66cb077cab6cccce285eb8
|
|
| BLAKE2b-256 |
589187ff4a31776352a9c0406855a7a7a636394943367eba5d7822872d645687
|
Provenance
The following attestation bundles were made for moviestar-0.4.0-py3-none-any.whl:
Publisher:
publish.yml on jdilla1277/moviestar
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
moviestar-0.4.0-py3-none-any.whl -
Subject digest:
a23e28d0ee8f1c037e29f512d0f3c7c5c77cfaca02f486d6685c6ddba6542f6d - Sigstore transparency entry: 2199104893
- Sigstore integration time:
-
Permalink:
jdilla1277/moviestar@d54748af8f94de317b48570183d6971f2fb9cc44 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/jdilla1277
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d54748af8f94de317b48570183d6971f2fb9cc44 -
Trigger Event:
release
-
Statement type: