Scripted video editing with FilmCraft (CLI/MCP), whisper transcripts, and a dashcam highlight reel
videofilmcraftrustwhispercaptionsbwrapsandboxteslacamffmpegautomation
FilmCraft (storytold/filmcraft, a young agent-built Rust "Premiere clone") is interesting less as a GUI editor than as an automation surface: a CLI that runs JSONL edit scripts headless, plus an MCP server exposing 17 editing tools. In 2026-10 it was evaluated, built from source with speech-to-text, and used to cut a dashcam highlight reel automatically. Verdict: promising for scripted edits, too young for unattended work, and ffmpeg is still needed alongside it.
Running an untrusted binary safely
Test release binaries inside a bwrap sandbox: no network, read-only filesystem, one writable work dir, the media dir read-only, and a throwaway home (e.g. ~/.cache/<tool>-sandbox-home). A small wrapper script (fc-sandbox) makes this the default way to call the tool.
Building with speech-to-text
Speech-to-text is not in release builds; it needs the whisper cargo feature:
cargo build --release -p filmcraft-cli --features whisper # about 2 minutes; target dir about 840 MB
(Rust via rustup, minimal profile.) With whisper-base, 80 s of audio transcribed in 7.8 s on CPU. The transcript tools (transcript.removePauses, .search, .extract, .createCaptions) produced a rough cut with burned-in captions and an SRT: 30 s of 1080x1920 output in 43 s.
Flaws found
- The first word after a silence gets stretched across the silence (one word timed 0.6 to 7.9 s), so captions hang and pauses hide inside words; pause removal misses them.
- Caption
maxChars/linesare not width-aware: 2-line captions wrap to 4 on portrait video. - whisper-base mishears and loops on noisy audio.
clip.speedDurationignores an explicitclipsparameter ("no clips selected").graphics.newTextposition is the left edge of the text, not its center.- Default export bitrate is high (about 19 Mbps at 720p). Encoder output decoded cleanly with ffmpeg.
Recipe: automatic dashcam highlight reel
For a night of Tesla dashcam clips (TeslaCam/RecentClips, 61 one-minute front-camera clips):
1. Scan: in a single FilmCraft run script, place each clip on a tiny 160x120 sequence, clip.fitToFrame, and file.exportFrame as BMP at intervals (1,804 samples in 2.5 minutes). Doing it inside one script avoids per-call startup cost.
2. Score each sample: z-score of motion + z-score of lights (bright pixels at night) + z-score of scene change. Crude, but enough to rank.
3. Contact sheet of the top 24 candidates; the judgment step (a person or an agent looking at the sheet) picks the keepers.
4. Build: 45 s reel at 1280x960 with the rear camera as picture-in-picture, clock stamps, dissolves and a title; export took 45 s.
TeslaCam clips have no audio. SavedClips folders include event.json with the trigger reason, which would make a better scorer.
Publishing tip
Before uploading an MP4 for web playback, remux with -movflags +faststart so playback starts before the whole file downloads. See Encoding phone clips for the web (HEVC remux, H.264 fallback).
See also
- Encoding phone clips for the web (HEVC remux, H.264 fallback)
- videos.jhampton.io (private video site architecture)