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 and shapes a timeline across multiple cameras, animates per-scene camera and layout motion, 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[transcribe]'
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.
python -m moviestar is an equivalent entry point when an agent wants to
guarantee it is invoking Moviestar from the active Python environment.
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 geometry resizes, places, shapes, borders, or bounces a picture-in-picture slot. 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. Before transcribing, Moviestar checks the audio: stereo channels that are out of phase (which cancel in a mono mix) are transcribed from the louder channel, and audio with no detected speech skips Whisper instead of receiving invented words. Both report as structured warnings;--channel auto|mix|left|rightand--no-speech-checkoverride them onloadandretranscribe. For long recordings,--captions FILE.vtt(or.srt) imports existing captions as the transcript in seconds, and--transcribe-range START END(retranscribe --range) runs Whisper only on that window.moviestar skim— fast browse: thumbnails + transcript over a range (--text-onlyfor transcript alone).moviestar inspect— dense thumbnails on demand at a configurable interval.moviestar activity— read-only visual-change evidence for silent recordings: per-sample scores plus candidate active, idle, and held-frame ranges (--dry-runpreviews decode cost).moviestar storyboard— one labeled contact sheet that maps a whole video or result-time range at a glance.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 geometry SCENE:SLOT— resize and place a slot with named, normalized, or customWxHsizes; choose a circle, rounded rectangle, or rectangle; add a solid border; or animate a bounded bounce at a named speed. Matching bounce motion stays continuous across adjacent scene boundaries, while a new motion run starts at its authored placement. New picture-in-picture scenes default to a medium circular inset with a white border.--dry-runpreviews resolved pixels without writing, and--resetrestores that preset default.moviestar scenes inset— move or resize the rectangular picture-in-picture inset suggested by camera coverage warnings; exact crop targets re-resolve against the new region.moviestar scenes motion target/camera preview/camera apply— point at important content on a real frame, inspect the exact from/to crop plus coverage and softness warnings, then persist exactly what was previewed.camera list,update, andremovehandle later adjustments.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.
Source-specific commands such as trim, cut, and history take
--source <id>, required when a project has more than one source. find
searches all sources: its --source is a boolean flag that includes
trimmed-away transcript regions, not a source selector. Use
moviestar find --source "QUERY", with one quoted query and no source ID.
To select one source's returned matches, filter matches by the source
field. --limit caps the combined results before filtering, so this does
not provide an exhaustive per-source search.
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 audit— enumerate caption visibility states, gaps, overlaps, short components, and estimated geometry changes across the full result timeline.--language enor repeated--connector-wordenables an advisory connector-only check. Select manual text with--track, combine related tracks with--combine-tracks, and optionally render bounded samples with--proof-dir NEW_DIRECTORY. This never edits the spec or approves visual quality; see caption audit.moviestar captions placement— size and place captions like a picture-in-picture slot:--atone of nine anchors,--size small|medium|large|0.06|48px,--margin,--width, or an exact block center with--x/--y. Scope any change to--scene NAMEor--layout PRESET; unspecified controls keep their stored values,--dry-runpreviews,--resetundoes, and running it with no flags reports the current placement. Every response includes the exact pixels (text size, margins, and block bounds) from the same planner export uses. Sizes and margins scale with the canvas; verify platform-specific clearance withscreenshot --platform. Re-runningcaptions generatekeeps the stored placement (--reset-placementstarts fresh) and warns about overrides for scenes that no longer exist.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. Matching is case-sensitive but ignores leading/trailing punctuation, which the replacement keeps (Moviestar=moviestaralso fixesMoviestar.asmoviestar.).captions generateandcaptions rules addreport per-rule application counts and warn withcaption_rule_unmatchedwhen a rule matched nothing. 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 (including all four corners and both sides) 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)"). Sizes accept canvas-relative units such asfont-size: 6vmin.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. Text prefers outlines from the selected font file to avoid incompatible embedded bitmap strikes. Bitmap-only fonts can still require an outline variant; unsupported monochrome-glyph errors include active font names, sizes, paths, and guidance.
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.watch --from ... --to ... --loudness-reportmeasures every routed layer and the final mix over one result-time window. Non-default mixes use a final clipping-protection limiter, with optional loudness normalization applied after the complete mix.
Output:
moviestar export --review/moviestar watch --from X --to Y --review— create a 720p review rendition using intermediate encoder settings and final downscaling after authored composition/text. Add--max-bytes Nfor a measured file-size limit with bounded compression retries; requiresize_budget.met: truebefore sharing through that route. Read measured dimensions and settings inrender_profile; review-export details.moviestar export --review-report/watch ... --review-report— create a report tied to the exact artifact and project state.review record --report FILErecords separate technical, source-alignment, visual, motion, and listening judgments;review show --report FILEreports coverage, stale evidence, and next steps. Caller-reported judgments never imply another dimension's approval; review-evidence workflow.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 (check integrated-LUFStarget_metand final encodedtrue_peak_limit_metseparately), 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). Pass--file export.mp4to extract directly from a raw or exported file and bypass the loaded project. Add--platform tiktok,--platform instagram-reels, or--platform youtube-shortsto draw a versioned social-player UI reference mask and lint known Moviestar overlay/slot geometry. This check does not use OCR, so baked-in source content remains a visual-review task.
Always-available:
moviestar doctor— check FFmpeg/ffprobe availability and the filters and encoders Moviestar needs before authoring. Its structured report names blocked features and exact install fixes.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.moviestar subscribe EMAIL— sign a human up for Moviestar updates. The human receives a double-opt-in confirmation email and is not activated until they open its link.moviestar feedback— print a guided feedback report with required context plus optional diagnostic, positive-feedback, idea, wild-idea, 0–10 recommendation, recommendation-reason, and follow-up email prompts. Save it withmoviestar feedback > feedback.md, complete it, then submit it withmoviestar feedback --file feedback.md(--file -reads stdin). If an email is provided, it is stored separately and used to send a note when that feedback is addressed; it does not create a general updates subscription. For broader Moviestar update emails, an agent can runmoviestar subscribe EMAIL, and the human must confirm by email. For a deliberately short anonymous note, usemoviestar feedback --quick "message". The payload never automatically includes project files, paths, session logs, account identifiers, or command history.moviestar account connect EMAIL— ask Moviestar to email the human a private account claim. The human signs up or signs in, chooses a public handle when needed, and approves the named installation;moviestar account statusthen stores its revocable device credential without exposing the email link or password to the agent. For a returning website user,account open --email-link EMAILrequests an emailed browser sign-in link;--dry-runpreviews it and--request-id UUIDsafely retries an uncertain request. The masked receipt never contains a login link or proves delivery/approval. Lateraccount statuschecks that the grant is still active,account disconnectrevokes this installation, andaccount openopens the human's account page. WhenMOVIESTAR_ACCOUNT_CLAIM_URLtargets Preview, the CLI remembers its service origin for claim exchange, status, disconnect, and open. If a legacy connection lacks an origin, setMOVIESTAR_ACCOUNT_INSTALLATION_URLto the approving service before status or disconnect. If the credential store becomes unavailable,account disconnect --localforgets the local connection; the owner must then revoke its remote grant from the account page. Accounts remain optional for local editing.- Terminal account setup:
moviestar account connect EMAIL --terminalsends an email verification code;account verifycompletes signup, age/terms confirmation, and installation approval without a browser.account termsreviews or accepts account-wide hosted consent for existing accounts. Human confirmation is required for consent and installation access. See the account guide for commands, password/MFA handling, and retry behavior. - Private upload:
moviestar upload final.mp4stores a finished MP4 in the connected account when hosted uploads are enabled. Use--dry-runto preview the file size, account target, and Free limits without a reservation or network request; current usage is unavailable in this preview. The live command prints its retry key to stderr before the first network request, reserves quota, and streams the file directly to private object storage using a short-lived signed URL. After storage completes, Moviestar asks the service to validate the private MP4. A valid H.264 video with optional AAC audio returnsreadywith duration and dimensions; no share link is created. Invalid media returnsinvalid_video, and a temporary validation failure returnsvalidation_unavailablewith a--resumeretry hint. Files must be at most 500 MB; Free accounts have three video slots and 1 GB total storage. If the command is interrupted, retry the same file with the reported--idempotency-key KEY; if completion fails and its reservation ID was reported, use--resume RESERVATION_ID. A retry with the same key after a lost completion response retrieves the existing video. The connected installation must point to the same service where uploads are enabled for that account. The command reportsupload_unavailablewhile hosting is disabled. - Hosted sharing: when publication is enabled,
moviestar share VIDEO_IDcreates an unlisted watch/download link for a ready upload, whilemoviestar share final.mp4uploads and shares in one step. Preview with--dry-run; reuse the reported--idempotency-keyafter interruption to recover the same upload/link. An unknown publication outcome can already be public; reconcile with the same video/key rather than assuming privacy. Set an explicitMOVIESTAR_WATCH_ORIGINbefore sharing if the canonical watch host differs from the API host.moviestar shareslists links (--video VIDEO_IDfilters,--cursor LINK_IDpaginates), andmoviestar unshare LINK_IDrevokes one without deleting its video or freeing quota.moviestar download WATCH_URL --out incoming.mp4anonymously streams a finished MP4 without overwriting files.moviestar share FILE_OR_VIDEO_ID --to EMAILemails the forwardable link to an exact address authorized by the human; provider acceptance does not establish inbox delivery.shares email LINK_ID --to EMAIL --idempotency-key KEYemails an existing link, andshares deliveries LINK_IDlists its email history.moviestar delete VIDEO_IDpermanently removes a hosted video and all its links, freeing quota after cleanup;shares delete VIDEO_IDis an alias. Use--dry-runfor an offline deletion preview and retry the same video ID if the outcome is pending or unknown. Local files and projects stay intact. See sharing and download for retries, privacy, and service targeting. - Replace a shared cut:
moviestar shares replace VIDEO_ID new-cut.mp4updates an owned video's existing links when replacement is enabled. Its--dry-runis a read-only service preview of the account, affected URLs and storage. Retry the same file/key after interruption;shares replacement-status VIDEO_ID REPLACEMENT_IDreads the outcome,shares replace VIDEO_ID FILE --resume REPLACEMENT_IDretries completion without another upload, andshares cancel-replacement VIDEO_ID REPLACEMENT_IDcancels an unpublished request. A lost completion reply may already have published, so preserve the original request. Local files stay intact. See replacement and recovery. --dry-runon every expensive or high-impact command (load,inspect,watch,export,clip,batch,concat,scenes set,spec --edit).
Image-producing commands return files by default: read out or each
thumbnails[].path with the agent's image/file tool. Pass --inline only
when a custom executor converts the returned Base64 bytes into image content
blocks; ordinary CLI harnesses otherwise ingest those bytes as text.
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 on stdout — agents can discard what they don't need, but can't invent data the CLI didn't provide. Progress narration goes to stderr; if you capture both streams together (
2>&1), pass--quiet(or setMOVIESTAR_QUIET=1) onload/retranscribe/exportso the merged stream stays pure JSON. - 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.
Run moviestar --help for the operational contract exposed to agents.
Requirements
- Python 3.10+
- FFmpeg on
PATHfor local media operations (brew install ffmpeg/apt install ffmpeg)
Run moviestar doctor after installation to verify that the FFmpeg build has
the filters and encoders required by the features you plan to use.
The base installation supports account/Cloud metadata commands without FFmpeg
or Whisper. Local speech recognition is optional:
python -m pip install 'moviestar[transcribe]' adds faster-whisper and compatible
PyAV (no API keys or cloud transcription). Load with --no-transcribe or
--captions FILE.vtt to edit locally without Whisper; FFmpeg is still required
for local media operations. Diarization is opt-in and includes transcription:
pip install 'moviestar[diarize]'. See installation profiles.
Fetching captions from a video page URL with load --captions URL is opt-in
too: pip install 'moviestar[url-captions]' adds
yt-dlp.
- Videos shared with your account: after the human accepts an invitation in their browser,
moviestar shared videoslists one page of accepted finished videos (--cursor CURSORcontinues).moviestar shared download VIDEO_ID --out received.mp4uses the recipient's approved installation and rechecks access;--dry-runis offline and reportswould_write_towithout credentials or file writes. Downloads refuse redirects and never overwrite existing files. These commands require recipient access on the connected service;sharesremains owner link history anddownload WATCH_URLremains anonymous. See accepted shared videos.
License and status
Moviestar supports multi-source scene composition, authorable slot geometry and shapes, per-scene camera and layout motion, derived captions, timed overlays, and result-time audio mixing. Every project shape resolves through one compiled timeline; caption recipes follow later edits, manual overlays can bind to scenes, and undo operates on command revisions.
Moviestar v0.7.0 and later is licensed under the Apache License 2.0. Versions through v0.6.0 were released under the Business Source License 1.1; changing the license for newer versions does not relicense those historical releases.
Metadata
Release files for moviestar 0.8.2
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 |
|---|---|---|---|---|
| moviestar-0.8.2.tar.gz | 906.8 kB | With provenance | Details for moviestar-0.8.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| moviestar-0.8.2-py3-none-any.whl | Python 3 | none | any | Details for moviestar-0.8.2-py3-none-any.whl |
Total release size: 1.8 MB
Release files / moviestar-0.8.2.tar.gz
| Download URL | moviestar-0.8.2.tar.gz |
|---|---|
| Size | 906.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f3dbd6fde8bd918854c87aab75705c86b04d7c8b1246c7ab56bc96edb3b744ab
|
|
BLAKE2b-256 checksum How to use checksums |
21d835c97ef145be090c68d66d93018c57d2d3d9544292481dbf135aa9492c6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Nov 13, 2026.
Transparency logRelease files / moviestar-0.8.2-py3-none-any.whl
| Download URL | moviestar-0.8.2-py3-none-any.whl |
|---|---|
| Size | 921.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
17838a6afc146b79876d427c118718009e6b4f6806865db945badc283c2e3916
|
|
BLAKE2b-256 checksum How to use checksums |
bfae624b1e43dd4a0f06a1302f74998e654243ca21708a7442863c30db4b8315
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Nov 13, 2026.
Transparency logSecurity for moviestar 0.8.2
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
Both files in this release have been uploaded with provenance metadata.
Attestation for moviestar-0.8.2.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 Nov 13, 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.