sfd-video-captions
Installation
SKILL.md
Video Captions
Add animated captions to videos via the ZapCap API. Automatic speech-to-text transcription with styled caption rendering.
Quick Start
# From a URL
ZAPCAP_API_KEY=xxx bun skills/video-captions/scripts/caption.ts https://example.com/video.mp4 captioned.mp4
# From a local file (requires VIDJUTSU_API_KEY for CDN upload)
ZAPCAP_API_KEY=xxx VIDJUTSU_API_KEY=xxx bun skills/video-captions/scripts/caption.ts local.mp4 captioned.mp4
Usage
bun scripts/caption.ts <input-url-or-path> <output-path> [options-json]
input-url-or-path— public video URL or local file pathoutput-path— path to write the captioned videooptions-json— inline JSON string or path to a JSON file
Options
| Field | Type | Default | Description |
|---|---|---|---|
templateId |
string | ZapCap default | Caption style template ID |
language |
string | auto-detect | Language code (e.g., "en", "es") |
pollInterval |
number | 5000 |
Polling interval in milliseconds |
maxWait |
number | 300000 |
Max wait time in milliseconds (5 min) |
ZapCap API Flow
- Upload —
POST /videos/urlsends the video URL to ZapCap - Create task —
POST /videos/{id}/taskstarts captioning (auto-approved) - Poll —
GET /videos/{id}/task/{taskId}polls until complete - Download — Fetches the captioned video to the output path
Pipeline Integration
Captions should be applied after overlays (ZapCap renders on top of everything):
# 1. Generate video
bun skills/video-director/scripts/generate-multi-scene.ts kling3 chars/maya scenes.json raw.mp4
# 2. Add text overlay (optional)
bun skills/video-overlay/scripts/overlay.ts raw.mp4 overlaid.mp4 '{"text":"Shop now","position":"bottom"}'
# 3. Add captions
bun skills/video-captions/scripts/caption.ts overlaid.mp4 final.mp4 '{"language":"en"}'
Environment Variables
| Variable | Required | Description |
|---|---|---|
ZAPCAP_API_KEY |
Yes | ZapCap API authentication key |
VIDJUTSU_API_KEY |
For local files | VidJutsu API key for CDN upload |
VIDJUTSU_API_BASE |
No | Override API base URL (default: https://api.vidjutsu.ai) |
Prerequisites
- Bun runtime
- ZapCap API key (zapcap.ai)
Related skills
More from tfcbot/shortform-distribution-skills
sfd-model-provider
>-
4sfd-api
VidJutsu — Video Intelligence API. Watch, extract, transcribe, check. The server-side gaps your agent can't fill.
3sfd-analytics
Pull performance data across connected accounts. Content audit, engagement report, and growth trends using Zernio post data and Instagram Insights.
3sfd-media-critic
Analyze video and image content using watch prompts for quality checks, verification, and deep analysis. QA gate before posting.
3sfd-schedule-posts
Schedule content to connected accounts with optimized timing and captions via Zernio.
3sfd-video-director
>-
3