Skip to content
Skillpedia
Video editing58k Β· #3252

cli-anything-videocaptioner

What it does

This skill lets an AI agent add subtitles to videos. It handles speech-to-text, subtitle translation, and placing the captions on the video, so it suits creators who publish in several languages.

When to use it

  • βœ“When you want captions made automatically for a video you recorded.
  • βœ“When you need subtitles translated into another language.
  • βœ“When you want subtitles permanently added to a video file before you share it.

Skill link

https://github.com/HKUDS/CLI-Anything/blob/main/skills/cli-anything-videocaptioner/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/HKUDS/CLI-Anything/blob/main/skills/cli-anything-videocaptioner/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œI want to add English subtitles to this Spanish video and burn them into the file.”

5 new skills a week. 1 minute to read.

How it works

The agent listens to the speech in the video and writes it down as timed text. It can then clean up the subtitles, translate them, and place them on the video using FFmpeg.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

cli-anything-videocaptioner

AI-powered video captioning tool. Transcribe speech β†’ optimize subtitles β†’ translate β†’ burn into video.

Installation

pip install cli-anything-videocaptioner

Prerequisites:

  • Python 3.10-3.12 (videocaptioner 1.4.1 requires >=3.10,<3.13)
  • videocaptioner must be installed (pip install videocaptioner)
  • FFmpeg required for video synthesis

Usage

Basic Commands

# Show help
cli-anything-videocaptioner --help

# Start interactive REPL mode
cli-anything-videocaptioner

# Transcribe a video (free, no setup)
cli-anything-videocaptioner transcribe video.mp4 --asr bijian

# Translate subtitles (free Bing translator)
cli-anything-videocaptioner subtitle input.srt --translator bing --target-language en

# Full pipeline: transcribe β†’ translate β†’ burn subtitles
cli-anything-videocaptioner process video.mp4 --asr bijian --translator bing --target-language en --subtitle-mode hard

# Review subtitle/script consistency before a final hard-burn
cli-anything-videocaptioner synthesize video.mp4 -s subtitles.srt \
  --subtitle-mode hard \
  --review-script approved_script.txt

# Render a one-frame subtitle preview for review
cli-anything-videocaptioner review subtitles.srt \
  --script approved_script.txt \
  --preview-video video.mp4 \
  --preview-output review_5s.png

# JSON output (for agent consumption)
cli-anything-videocaptioner --json transcribe video.mp4 --asr bijian

REPL Mode

When invoked without a subcommand, the CLI enters an interactive REPL session:

cli-anything-videocaptioner
# Enter commands interactively with tab-completion and history

Command Groups

transcribe β€” Speech to subtitles

transcribe <input> [--asr bijian|jianying|whisper-api|whisper-cpp] [--language CODE] [--format srt|ass|txt|json] [-o PATH]
  • bijian (default): Free, Chinese & English, no setup
  • whisper-api: All languages, requires --whisper-api-key

subtitle β€” Optimize and translate

subtitle <input.srt> [--translator llm|bing|google] [--target-language CODE] [--layout target-above|source-above|target-only|source-only] [--no-optimize] [--no-translate] [-o PATH]
  • Three steps: Split β†’ Optimize β†’ Translate
  • Bing/Google translators are free
  • 38 target languages supported (BCP 47 codes)

synthesize β€” Burn subtitles into video

synthesize <video> -s <subtitle> [--subtitle-mode soft|hard] [--quality ultra|high|medium|low] [-o PATH] [--review-script PATH] [--max-script-diff-ratio FLOAT]
  • Mirrors the stable backend synthesize surface
  • Subtitle look is controlled by the subtitle asset/backend version, not extra harness flags
  • --review-script checks subtitle/script drift before the final export
  • Lower --max-script-diff-ratio when copy accuracy matters more than resilience

process β€” Full pipeline

process <input> [--asr ...] [--translator ...] [--target-language ...] [--subtitle-mode ...] [--layout ...] [--no-optimize] [--no-translate] [--no-synthesize] [-o PATH]

review β€” Consistency check and preview

review <input.srt|input.ass> [--script PATH] [--max-diff-ratio FLOAT] [--preview-video PATH] [--preview-at TC] [--preview-output PATH]
  • Detects subtitle/script drift before a hard-burn
  • Can render a single review frame instead of producing a full final video

styles β€” List style presets

styles
  • Reports whether the installed backend exposes preset styling support

config β€” Manage settings

config show
config set <key> <value>

download β€” Download online video

download <URL> [-o DIR]

JSON Output

All commands support --json for machine-readable output:

cli-anything-videocaptioner --json transcribe video.mp4 --asr bijian
# {"output_path": "/path/to/output.srt"}

Backend Notes

  • The upstream backend currently requires Python >=3.10,<3.13; prefer Python 3.12 for matrix runs.
  • Advanced synthesize-time style flags are backend-version dependent. Use styles to check whether the installed backend exposes them.
  • Compatibility flags such as layout, render_mode, style, style_override, and font_file should be treated as non-stable unless styles and the installed backend confirm they are supported.

Target Languages

BCP 47 codes: zh-Hans zh-Hant en ja ko fr de es ru pt it ar th vi id and 23 more.

FAQ

Is it free to use?

The description says free speech recognition and translation options are included.

What do I need to install?

You need Python 3.10 to 3.12, the videocaptioner package, and FFmpeg for putting subtitles on the video.

Can I preview the subtitles before the final video?

Yes. A review command can render a single-frame preview image of the subtitles.

Details

Original description by the author

AI-powered video captioning β€” transcribe speech, optimize/translate subtitles, and burn them into video via the stable VideoCaptioner backend. Free ASR and translation included.

repo: HKUDS/CLI-Anything

Popularity

GitHub stars
58k
Ranking position
#3252
License
Apache-2.0
Updated
9/21/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills