captions.render
Burns captions onto a video while preserving its audio, rendering animated caption layers or ASS overlays from transcription segments, an SRT file, or a composition path.
Instructions
Burn captions onto a video and keep its audio. The HyperFrames engine (default) renders an animated caption layer; the ffmpeg engine burns in an ASS overlay and needs no extra dependency. Give it transcription segments, an SRT file, or a composition path (engine "hyperframes").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | Composition frame rate (default: source fps) | |
| srt | No | Path to an input .srt file (used as-is, lines and timings preserved) | |
| input | Yes | Path to the source video | |
| style | No | Caption style: "plain", "karaoke" (word highlight), "pop" (scale-in), "box" (background plate). Default "plain". | |
| width | No | Composition width (default: source width) | |
| engine | No | Rendering engine; default "hyperframes" | |
| height | No | Composition height (default: source height) | |
| output | Yes | Path of the rendered video | |
| maxLines | No | Transcript lines per caption chunk (default 2) | |
| overwrite | No | Replace the output file if it exists (default false) | |
| transcript | No | Transcription segments (inline), or a path to a JSON file holding an array of segments or {segments:[…]} | |
| composition | No | Path to a HyperFrames composition HTML (engine "hyperframes") | |
| maxCharsPerLine | No | Transcript wrapping limit per line (default 42) |