Today I published the first release of framedown on PyPI: you write a Markdown file and get a video. Scenes are separated by ---, like the slides of Marp, and the result is an MP4, a WebM or a GIF with animation, text-to-speech narration and subtitles in several languages. It is a Python package under the Apache-2.0 license, with a command line, an API, an MCP server and a skill for AI agents.
Along with framedown comes framedown-kokoro, a separate package that adds the Kokoro voices. Both share version 0.1.0.
Watch it in two minutes
This tour was written in Markdown and rendered by framedown with Kokoro voices. It runs 2 minutes 8 seconds and shows how to install, write, check and render, then narration, captions, languages and how to ask Claude Code or Claude Desktop for a video.
Narration: AI-generated voice (Kokoro, run locally).
Install
pip install framedown
framedown install
framedown doctor
The second command downloads the headless Chromium that captures the frames, and the third checks that the browser, ffmpeg and the fonts are ready. You need Python 3.14 or later and ffmpeg on the PATH; if you do not have it, pip install "framedown[ffmpeg]" brings a bundled one.
Write
A video is a text file. The front matter sets the size, the frames per second, the theme and the defaults; every scene starts with ---, and an HTML comment carries its directives:
---
framedown: 1
title: Hello
size: 1920x1080
fps: 30
theme: midnight
transition: fade 0.6
---
<!-- layout: title, duration: auto, enter: blur -->
## Demo
# Markdown → video
> [!SAY] This sentence is spoken, never shown.
---
<!-- layout: list, duration: 5, transition: slide 0.8 -->
# How it works
- Front matter sets size, fps, theme and defaults
- HTML comments carry scene directives
- Each frame is a seek of a paused animation timeline
The > [!SAY] block is the narration: you hear it, but it never appears on screen. With duration: auto the scene lasts as long as its narration.
Check and render
framedown validate video.md
framedown plan video.md
framedown snapshot video.md --at s2.mid
framedown render video.md -o video.mp4 --quality draft
framedown render video.md
validate points at every error with its file and line, plan prints the timeline and snapshot saves single frames, so you can look at any moment without rendering the whole video. The draft quality renders at half resolution for fast iteration.
Inside, the Markdown becomes a validated model and a timeline; from there comes an HTML page with paused animations, headless Chromium seeks each frame and captures it, and ffmpeg encodes. The engine never reads the clock or random numbers and the render blocks network requests, so the same file always gives the same video. On Linux, two renders of the same file produce byte-identical frames.
Narration and captions
framedown render video.md --tts tone
pip install framedown-kokoro
framedown render video.md
Speech engines are plugins. tone is built in: it plays a tone per word and is good for drafts, tests and timing. framedown-kokoro adds real voices in English (American and British), Spanish, French, Italian, Portuguese, Hindi, Japanese and Chinese; the model, about 330 MB, downloads on first use and works offline after that.
Kokoro lives in a separate package because of its dependencies: they include espeak-ng, under GPL-3.0, and, with the default torch wheels on Linux, proprietary NVIDIA libraries. That keeps framedown itself GPL-free.
Subtitles are written next to the video as SRT and VTT, timed from the words. With captions: burn they are drawn into the frames too.
Languages
framedown translate video.md --to es
framedown render video.md --lang en,es
framedown render video.md --lang en,es --mode tracks
translate fills a catalog, i18n/es.yaml, that you can correct by hand: what you edit is never overwritten again. render then writes one video and one set of subtitles per language or, with --mode tracks, a single file with one audio track and one subtitle track per language.
The tour above is the source, written in English. This is the same file rendered from its Spanish catalog:
With an AI agent
framedown skills install
claude mcp add framedown -- framedown mcp --root .
claude "Make a one-minute video about our release"
The skill teaches the agent the format and the review loop: validate, plan, check, look at snapshots, render a draft and render the final video. It also teaches the limits that keep a video readable, such as at most 12 on-screen words per scene.
The MCP server exposes those steps as tools: validate, plan, check, snapshot, which returns the PNGs as images, render, which runs in the background and reports progress, and translate, where the agent itself translates, with no API keys. In Claude Desktop you upload framedown.zip from the skills/ folder and connect the server; there is a Docker image to run it in a container.
What else is in it
- Layouts: title, list, stat, code with highlighted steps, quote, text beside a picture, and bar, line and donut charts from a Markdown table.
- Diagrams: Mermaid flowcharts drawn as SVG by framedown itself.
- Images and video: pictures with the Ken Burns effect and embedded clips with their sound.
- Sound: background music that ducks under the narration.
- Marp:
framedown import marpconverts a deck, and the presenter notes become the narration. - Tools: a preview that reloads on save, a terminal UI, and parallel rendering with
--workers. - Export: to HyperFrames, to a standalone HTML player or back to Marp.
The repository has four examples ready to render, each with its video: the first is the tour above and these are the other three:
| Video | What it shows |
|---|---|
| Feature showcase (2:34) | Every layout, code steps, charts, Mermaid, a picture with Ken Burns, an embedded clip and captions burned into the frames |
| The water cycle (1:29) | Spanish source with English and French catalogs: one MP4 with three audio and subtitle tracks |
| From slides to video (1:36) | An imported Marp deck, with the presenter notes as narration |
Links
- Repository: github.com/ecrespo/framedown
- PyPI: framedown and framedown-kokoro
- User guide, step by step
- Examples and agent skills
- Changelog
This is the first public release. If you try it and something fails or is missing, open an issue in the repository.