Skip to content
Back to skills

26 Caption Creator

ASecurity

Add professional captions burned into a video or export an SRT subtitle file — uses Whisper for local speech-to-text and FFmpeg for rendering. Supports minimal, full, and animated caption styles.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 14, 2026
toolspythonshellbash

Works with

  • terminal
  • cli

Security analysis

A100/100

Pro scans all 15 files and shows the line behind each finding

Scanned November 14, 2026

npx -y skills add trevorotts1/openclaw-onboarding --skill 26-caption-creator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 26 Caption Creator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 26 Caption Creator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/trevorotts1-26-caption-creator/badge)](https://www.skillsdirectory.com/skills/trevorotts1-26-caption-creator)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: caption-creator
description: Add professional captions burned into a video or export an SRT subtitle file — uses Whisper for local speech-to-text and FFmpeg for rendering. Supports minimal, full, and animated caption styles.
---

# Caption Creator (Skill 26)

Add professional captions to a video (burned into the video), or export an SRT subtitle file.

This skill is intentionally simple and reliable. It is built on:
- **Whisper** (local speech-to-text)
- **FFmpeg** (video rendering)

## What you get

- **Generate a captioned video** with one command (minimal, full, or animated style)
- **Export SRT subtitles** from any video

## Files in this skill

- `Scripts/generate-captions.sh` - transcribe with Whisper, then burn captions into a new video
- `Scripts/export-srt.sh` - export a properly named SRT file (respects `--output`)
- `Scripts/animated_captions.py` - creates an animated style using FFmpeg drawtext
- `Scripts/lib-caption-guard.sh` - the one "is this transcript real?" rule, shared by both shell entry points
- `test/test-caption-content-gate.sh` - the empty-transcription failure contract (both directions)

## Empty transcriptions fail; they are not rendered

Whisper writes a subtitle file even when it recognises no speech. Every entry
point therefore checks the transcript's **content** — at least one timing cue and
at least one line of caption text — not whether a file appeared. A transcription
that yields nothing exits **3** with `AF-CAPTION-EMPTY-TRANSCRIPTION`, renders
nothing and announces nothing.

Usual causes: silent or near-silent audio, an unsupported spoken language, or a
model too small to recognise the speech. Fix the audio or pass a larger
`--model`, then re-run.

## Requirements

1. **Python 3**
2. **FFmpeg** installed and available in your terminal as `ffmpeg`
3. **Whisper CLI** installed (from the `openai-whisper` Python package)

## Quick start

### 1) Export an SRT file

```bash
~/.openclaw/skills/caption-creator/Scripts/export-srt.sh \
  --input "video.mp4" \
  --output "captions.srt" \
  --model medium
```

### 2) Create a captioned video (burn-in captions)

```bash
~/.openclaw/skills/caption-creator/Scripts/generate-captions.sh \
  --input "video.mp4" \
  --output "video_captioned.mp4" \
  --style minimal \
  --model medium
```

## Caption styles

`generate-captions.sh` supports:

| Style | What it looks like | Best for |
|------|---------------------|----------|
| `minimal` | smaller captions, simple outline | clean professional videos |
| `full` | larger captions with stronger background/outline | maximum readability |
| `animated` | animated captions (Python + FFmpeg drawtext) | high-energy social clips |

## Whisper models

You can pick the Whisper model with `--model`:

- `tiny`, `base`, `small` = faster, lower accuracy
- `medium`, `large` = slower, higher accuracy

Example:

```bash
~/.openclaw/skills/caption-creator/Scripts/export-srt.sh \
  --input "video.mp4" \
  --output "captions.srt" \
  --model base
```

## Output notes

- `export-srt.sh` writes the SRT file to the exact path you pass in `--output`.
- `generate-captions.sh` creates a new video file at the path you pass in `--output`.

## Core updates policy

Follow `CORE_UPDATES.md` for the only core files this skill is allowed to update.

Files in this skill

  • CHANGELOG.md252 B
  • CORE_UPDATES.md657 B
  • EXAMPLES.md2.3 KB
  • INSTALL.md3.3 KB
  • INSTRUCTIONS.md2.6 KB
  • QC.md9.9 KB
  • SKILL.md3.2 KB
  • Scripts/animated_captions.py3.6 KB
  • Scripts/export-srt.sh1.8 KB
  • Scripts/generate-captions.sh2.5 KB
  • Scripts/lib-caption-guard.sh2.8 KB
  • caption-creator.skill17.9 KB
  • qc-caption-creator.sh1.9 KB
  • skill-version.txt7 B
  • test/test-caption-content-gate.sh7.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.