
Justcaptions
io.github.SpaceSheepBoyv1.3.1更新于 Oct 4, 2026
Audio transcription, caption correction, translation and 15 animated video caption styles.
概览
转写视频或音频、校正和翻译字幕,并在本地或通过云端 API 将动画字幕样式烧录进视频。
- 功能
- Just Captions 可转写语音并生成 SRT、VTT 和 JSON 字幕文件,再把 TikTok/Reels 风格的动画字幕烧录进视频。它提供 15 种动画预设(Emoji、Word Highlight、Neon、Typewriter 等),可配置颜色、字体、位置、字号和安全边距。本地工具包括 check_environment、list_styles、preview_style、caption_video、get_job、get_usage 以及任务恢复;远程端点另有 transcribe_audio、correct_captions、translate_captions、pick_emojis、get_pricing 和 get_usage。可处理单个视频或最多 100 个文件的文件夹。
- 适用场景
- 当你希望助手为视频加字幕、生成 SRT/VTT/JSON 文件、翻译或校正已有字幕,或批量套用社交媒体字幕样式时使用。适合从 MCP 客户端或命令行自动化视频字幕的创作者和开发者。
- 运行要求
- 打包的本地 MCP/CLI 需要 Python 3.10+、uv 和 ffmpeg;纯 skill 需要 Python 3.9+ 和 Pillow。远程端点 使用 Streamable HTTP,需在 Authorization 头中提供 Bearer API 密钥,可通过 JUSTCAPTIONS_API_KEY 或已保存的密钥文件提供。离线转写需要 faster-whisper,首次使用会下载模型。云端转写、校正、翻译和 emoji 选择需要 API 密钥。
安装
在 SourceWeft 中
- 打开 控制台中的 Justcaptions,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"justcaptions": {
"type": "http",
"url": "https://api.justcaptions.com/mcp"
}
}
}README
Just Captions for agents
Caption videos from Codex, Claude Code, any MCP client, or your terminal. This skill transcribes the speech, makes SRT/VTT/JSON files, and burns TikTok/Reels-style captions into the video. It does one video or a whole folder at a time.
15 animated portable presets follow the Just Captions app style families. Typography and sampled animations can differ from native iOS. Rendering runs on your machine with Pillow and ffmpeg.
Choose a style and copy a task · API docs · OpenAPI · Style catalog
MCP quickstart
Python 3.10+, uv and ffmpeg are required for the packaged MCP/CLI. The plain skill still works with Python 3.9+ and Pillow.
Codex — add to ~/.codex/config.toml:
Claude Code — merge into your project's .mcp.json:
Set JUSTCAPTIONS_API_KEY, or save a key with the CLI's --signup YOUR_EMAIL. The local MCP also reads ~/.config/justcaptions/api_key. Never put keys in prompts or commits. For recognition without a key, add "--with", "faster-whisper" before "--from" in the uvx arguments. The offline model downloads on first use.
Ask: “Caption ~/Movies/intro.mp4 with Word Highlight for TikTok. Save MP4, SRT, VTT and JSON in ./captioned/, and preserve the original.”
caption_video takes input_path, output_dir, style_id, size, position, safe_area, length, overrides, captions_path, engine, language, translate_to, correct, glossary, burn, and overwrite. See MCP discovery for typed schemas. Up to 100 files per folder job, two concurrent jobs. Jobs persist locally across process restarts; use list_jobs and resume_job to recover. Existing outputs are protected unless explicitly overwritten; folder jobs use per-source output directories.
Remote MCP
https://api.justcaptions.com/mcp uses Streamable HTTP and your API key. It handles audio and caption text. It does not access local files, preview styles or render MP4.
For Codex:
For Claude Code, a project .mcp.json entry:
Tools: list_styles, get_pricing, get_usage, transcribe_audio, correct_captions, translate_captions, pick_emojis. Cloud operations use the existing API pricing and limits. Supply a unique request_id and reuse it only for identical retries. Request hashes and completed replies have a 24-hour replay window, then are removed on a subsequent request or daily cleanup (within 48 hours). The replay store does not retain audio.
Styles and customization
All 15 presets animate in video exports and the website previews, using spoken-word highlights/reveals, pop entrances, fades, typewriting or a pulsing glow.
The authoritative versioned catalog is skills/justcaptions/assets/styles.json: Emoji, Mega, Reveal, Neon, White box, Yellow box, Gray box, Yellow outline, Word Highlight, Highlight Box, Impact, Pop In, Typewriter, Cinema and Editorial. Historical karaoke, black-box and white-outline CLI names remain supported. App IDs such as wordHighlight resolve to their portable preset IDs.
The local MCP accepts overrides, for example:
The CLI takes the same object in --style-config FILE.json. Unknown keys and invalid values are rejected. Colors, backgrounds, outlines, font families, size, word count and letter case are configurable. Use --safe-area tiktok|reels|shorts|none; conservative margins keep captions horizontally centered. Platform UI layouts can vary.
Recognition word timestamps are retained when text is unchanged. Corrected/translated text and imported subtitle-only files use estimated word timing, not forced alignment. Serif/regular families use available system fonts, with a bundled Geist fallback.
Install
You need ffmpeg and Python 3.9+ with Pillow:
As a Claude Code plugin
As a plain skill
Then ask Claude something like "caption interview.mp4 with the emoji style" or "burn Spanish subtitles into everything in ./clips".
Use it without Claude
To change the wording before you burn: run the script without --burn, edit NAME.json or NAME.srt, then run it again with --captions NAME.json --burn. The JSON file keeps per-word timing for karaoke and emoji.
Just Captions API
Without a key, everything runs offline with faster-whisper. With a key you get:
- cloud transcription (better on accents, noisy audio and many languages)
--correctand--translate- AI emoji picks for the Emoji style (the offline fallback is a keyword table)
Getting a key is instant and needs no card:
The key is saved to ~/.config/justcaptions/api_key (readable only by you). If JUSTCAPTIONS_API_KEY is set, it is used instead.
Pricing
- Free plan (no card): stops when the free allowance runs out. When faster-whisper is installed, transcription carries on locally.
- Pay as you go: add a card at https://justcaptions.com/api/account/ to keep going past the free allowance. Stripe invoices you monthly, and the default spend cap is $100 a month.
- Failed requests are not billed.
The API takes audio only. The script pulls a small mono track out of your video, so the video itself is never uploaded, and burning always happens on your machine. API reference: https://justcaptions.com/api/
Want this on your iPhone?
Just Captions on the App Store provides native caption styling on your phone, with on-device transcription, editing and batch export.
Development
Install in an isolated environment with uv pip install -e .. The worker MCP adapter is open source in remote/mcp.mjs; the host injects its existing authenticated API handler. tools/sync-agent-assets.py --site SITE_DIR --backend BACKEND_DIR publishes the canonical catalog, OpenAPI and adapter to the site and Worker source. Generated copies should not be edited independently.
How burning works: each caption state (one per word for karaoke and emoji) is drawn as a full-frame transparent PNG. The concat demuxer plays the PNGs back as a single image stream with exact durations, and one overlay filter puts it over the video. That keeps the ffmpeg command the same size no matter how many captions there are.
License
The code is MIT. The bundled Geist font is SIL OFL 1.1 (skills/justcaptions/assets/fonts/OFL.txt).
Complete first export
After installing Python 3.10+, ffmpeg and the package, run justcaptions --demo --out-dir ./demo --style word-highlight. The bundled human-narration sample includes word timestamps and needs no API key or model download. In MCP use run_demo, then get_job. Narration is attributed in demo credits.
Durable jobs and account controls
list_jobs, get_job, cancel_job and resume_job operate on saved jobs in ~/.local/share/justcaptions (override with JUSTCAPTIONS_STATE_DIR). Resume skips completed files and reuses successful cloud responses. Source files must remain unchanged. An in-flight cloud request can finish and be charged after cancellation. Uncertain cloud requests older than the server replay window require manual usage review rather than silently repeating paid work.
Use estimate_video before recognition, supplying known text_chars for edits. Estimates exclude unknown future text and do not reserve credit. The API reserves capacity atomically for concurrent requests and all dedicated keys share one account's allowance. Manage monthly spend limits, scoped keys, expiry and revocation at https://justcaptions.com/api/account/. Existing charges and running holds are not removed by lowering a limit.
Setup/export statistics are optional. JUSTCAPTIONS_METRICS_ID enables the counters included in copied configurations only when a website visitor opts in. No file paths, captions or API keys are sent by these counters. To disable an installed client's reporting, remove that variable and restart the MCP server.
Distribution
Install a standard wheel from the latest GitHub release:
GitHub Actions builds and checks wheel/sdist artifacts, attaches them to releases and publishes server.json to the official MCP Registry using GitHub OIDC. PyPI publishing uses a trusted publisher when the owner enables it; the website uses the release wheel until that registration is completed.
PyPI pending trusted publisher configuration: project justcaptions-agent; GitHub owner SpaceSheepBoy; repository justcaptions-skill; workflow release.yml; environment pypi. After registration, enable repository variable PYPI_PUBLISH_ENABLED=true and rerun the release workflow.
来源:README.md,提交 1ea77d2
工具
0版本历史
1- v1.3.1最新Oct 4, 2026


