bettercut
README.md
# BetterCut
**Raw clips in. Finished reel out.** A free, open-source editor for short vertical video (Reels, Shorts, TikTok).
It cuts your footage, captions it, styles it, and lets you edit by chatting with the AI app you already pay for.
<p align="center">
<img src="docs/bettercut-demo.gif" alt="BetterCut demo" width="300">
</p>
This demo was cut, captioned and rendered by BetterCut itself. [Watch it with sound](docs/bettercut-demo.mp4).

## What it does
- **Cuts for you.** Transcribes your clips, keeps the last clean take of every repeated line, and removes fillers and dead air.
- **Edit by editing text.** Click a word to cut it, punch it up or fix its spelling. The video follows.
- **Timeline.** Split at the playhead, drag a shot's edges to trim, delete and reorder shots, freeze a frame, set a shot's speed or apply a speed ramp, pick a transition for each cut, play a shot in reverse, drag overlays and b-roll to move or resize them, scrub and zoom.
- **Keyframes.** Animate an overlay's position, size, rotation and opacity, or a shot's zoom and focus point, between keyframes you set on the timeline.
- **Translated captions.** Add a second language, one line per sentence. Show both languages or the translation only. Type the lines yourself or ask your AI to translate the reel.
- **Beat markers.** Add music and the timeline shows its beats. The playhead and trimmed cuts snap to them, and one click cuts a shot on every beat, every second beat or every fourth.
- **Camera log footage.** Pick Apple Log, Sony S-Log3 or Panasonic V-Log and the flat picture is converted to normal colour.
- **Green screen.** Remove a flat backdrop, with the colour found for you, and put any background behind the subject.
- **Record in the browser.** Film yourself with a teleprompter that scrolls your script, or record a voiceover from your microphone while the reel plays. Voiceovers sit on their own track and the music ducks under them.
- **Media layers.** Put extra video, images and sound on their own tracks above the footage. Place, size, turn, fade and keyframe each one, and change which is in front.
- **Effects stack.** Stack effects on any shot or layer and set each one's strength: blur, black & white, glow, colour fringing, duotone, film grain, vignette and more. They apply in order.
- **One-click animation.** Make a layer or overlay fade, slide, zoom, pop or spin in and out, or pulse, float and sway, with one choice. Each preset writes ordinary keyframes you can fine-tune.
- **Motion cards.** Animated donut and bar charts, a row of big numbers, a before-and-after, chapter markers and a gradient title, filled in with plain lines like "Followers: 12.4k". Numbers count up and keep their $, % or k.
- **Masks and a keyframe graph.** Show only part of a layer through a rectangle, rounded rectangle or ellipse with a soft or hard edge. See each animated property as a curve and drag its keyframes to change when and how far things move.
- **Multi-camera.** Add other cameras that filmed the same moment. BetterCut lines them up by their sound and cuts to whoever is talking, or you pick the camera at the playhead.
- **Screen recordings that zoom on clicks.** Record your screen in the browser, with your mic. BetterCut zooms in wherever something happens on screen and pans between spots; move, resize or remove any zoom.
- **Review links.** Share a link to the latest render. People watch it in their browser and pin comments to a moment and a spot on the picture, with no account; you jump to each one, resolve it, or hand the open ones to the AI as notes.
- **4K export.** Render at twice the size (2160x3840 for a vertical reel). The footage is rebuilt from your full-size clips, so 4K clips stay sharp; the editor keeps a light copy for the preview.
- **Add clips later.** Append more footage to a reel you have already edited; only the new clips are transcribed.
- **Captions and style.** 17 looks, 63 caption styles, 16 layouts, 61 motion effects, 13 opening titles, 19 animated overlays.
- **Pro finish.** Colour grades and LUTs, voice clean-up, loudness for social, sound effects, face-aware framing.
- **Any shape, any frame rate.** A video keeps the shape and frame rate of its footage: landscape clips make a 16:9 video, vertical clips a 9:16 reel, 24 fps stays 24 fps. Or pick the shape when you create it. Render 9:16, 4:5, 1:1 and 16:9 from one edit. Export SRT, VTT and an FCPXML timeline.
- **Works without a voice.** Clips with no speech (b-roll, music, screen recordings) become reels too.
- **Mimic.** Point it at a reference reel and it builds a matching look.
- **Edit from Claude or ChatGPT, with no API key.** BetterCut is an MCP connector: your AI app calls its editing tools and the open editor updates live.
- **Remembers you.** Spellings, style rules and defaults carry over to every new reel. The AI can only suggest a memory; you approve it.
- **Clips you can move.** Every clip you imported is in the media bin. Drag one onto the footage track to move it or bring it back after deleting it, or drop it above to lay it over the video. Drag shots along the track to reorder them.
- **One editor, laid out like the tools editors know.** A media bin with thumbnails on the left, the preview with timecode and frame-by-frame transport in the middle, an inspector for whatever you select on the right, and a timeline with track labels, a select tool and a razor.
- **Fast to edit.** J, K and L to shuttle, arrows to step frame by frame or cut to cut, and a shortcut list on `?`. Press T, click the preview and type to put text on the video. Pick a named camera move (Push in, Pull back, Settle, Glide, Slide, Rise) for any shot.
- **Doesn't lose your work.** Edits save as you go. If a save fails, the editor says so, keeps the edit and retries. Undo and Redo (⌘Z, ⇧⌘Z), a warning before closing with unsaved edits, and a crash in one panel doesn't take down the editor.
- **Runs on your machine.** Speech recognition is local. Your footage is not uploaded anywhere.
## Quick start
You need Python 3.10+, Node 22+ and ffmpeg.
```bash
git clone https://github.com/PriyanshMathur1/bettercut.git
cd bettercut
./scripts/setup.sh
.venv/bin/python -m bettercut ui
```
Open http://localhost:4790, click **New reel** and drop in a clip. The first run downloads the speech model (about 500 MB).
Prefer the command line:
```bash
.venv/bin/python -m bettercut make my-reel ~/Videos/clip.mp4 --look bold-pop
.venv/bin/python -m bettercut render my-reel --quality high --aspect all
```
Projects are saved in `~/bettercut-projects`. Run `python -m bettercut --help` for every command.
## Edit with Claude (no API key)
Claude Desktop or Claude Code edits your reels on this computer, on your normal Claude subscription. The open editor
shows each change as it lands, and every change is one Undo step. Nothing leaves your computer except what you type to
Claude.
Print the setup for this computer (paths filled in):
```bash
.venv/bin/python -m bettercut mcp --config
```
- **Claude Desktop:** paste the `claude_desktop` part into Claude Desktop's config file (Settings > Developer > Edit
Config), then restart Claude Desktop. It starts the editor by itself when Claude needs it.
- **Claude Code:** with the editor running (`.venv/bin/python -m bettercut ui`), run
```bash
claude mcp add --transport http bettercut http://127.0.0.1:4790/mcp
```
Then ask, for example: "Make a reel from ~/Movies/take1.mov and ~/Movies/take2.mov, hook first, under 30 seconds", or
"In my latest reel, tighten the pauses and make the hook a question". Claude can start reels from files on this
computer, add clips and camera angles, zoom on clicks, cut to the speaker, edit anything in the reel, and render.
The connection only answers apps on this computer. Hosted AI apps (Claude.ai, ChatGPT) can only reach a public HTTPS
site: for those, deploy BetterCut (below) and give each user their connector link from **Settings > Connect your AI**.
If you would rather use an API key, the Notes box in the editor works with Anthropic, OpenAI, Gemini, OpenRouter or any
OpenAI-compatible endpoint.
## Pipeline mode: brief to finished video
Ask Claude to make a whole video in stages, approving each one before the next starts. Pipelines (in
`bettercut/pipelines/`): **talking-head** reel, **travel-montage** (scenery and moments cut to music), **screen-demo**,
**multicam** conversation, and **clip-factory** (many short clips from one long video). Claude can look at the footage
(frames as a labelled contact sheet) to pick shots when there are no words to go by, and add a music track from your
computer so cuts land on the beat. Each stage has a goal, a guide for Claude and a checklist: brief, rough cut, the pipeline's own
middle stages (captions, zooms, camera pass, finding moments), polish and export.
In Claude Desktop pick a pipeline from the prompt menu, or just ask: "Use the talking-head pipeline on ~/Movies/take.mov:
a 15-second tips reel for Instagram". When a stage is ready, the editor shows it with **Approve** and **Send back** (with a
note); you can also answer Claude in the chat. The reel remembers its stage, so you can carry on in a new chat later.
## Host it for others
`bettercut/deploy/` has a Docker image, HTTPS through Caddy and a step-by-step guide for a free server:
[DEPLOY.md](bettercut/deploy/DEPLOY.md). Sign-in is Google only, through Supabase. Each person sees only their own reels.
## How it works
- `bettercut/` is the Python pipeline: transcription (faster-whisper + whisperX alignment), auto-cut, colour, audio, export,
the local editor server, and `cloud/` for the hosted version (accounts, job queue, storage, connector).
- `composer/` is the renderer and the editor: a [Remotion](https://www.remotion.dev) composition driven by one JSON spec,
and a React editor that previews the same composition.
- The whole edit is one `spec.json`. People, the editor and AI tools all change the reel by changing that file.
[SKILL.md](bettercut/SKILL.md) documents every field.
## Tests
```bash
.venv/bin/pip install -r requirements-dev.txt
.venv/bin/python -m pytest tests -q
cd composer && npm test
```
## Status
This is a young project. What has been checked and what has not:
- Checked: the pipeline, editor and renders on macOS (Apple Silicon); 92 Python tests and 58 Node tests.
- Not yet checked: the Docker image has not been built, hosted Google sign-in has not been run against a live Supabase
project, and the connector has been exercised with direct calls only, not yet from Claude.ai or ChatGPT.
Issues and pull requests are welcome.
## Licences you should know about
- BetterCut's own code is MIT licensed. See [LICENSE](LICENSE).
- **Remotion** (the renderer) has its own licence. It is free for individuals and for companies of up to three people; larger
companies need a paid Remotion licence. See https://www.remotion.dev/license.
- The whisperX alignment models for French, German, Spanish and Italian are licensed for non-commercial use.
- Fonts are loaded from Google Fonts under their open licences.