cli-anything-videocaptioner
AI-powered video captioning tool. Transcribe speech → optimize subtitles → translate → burn into video.
Installation
Prerequisites:
- Python 3.10-3.12 (
videocaptioner1.4.1 requires>=3.10,<3.13) videocaptionermust be installed (pip install videocaptioner)- FFmpeg required for video synthesis
Usage
Basic Commands
REPL Mode
When invoked without a subcommand, the CLI enters an interactive REPL session:
Command Groups
transcribe — Speech to subtitles
bijian(default): Free, Chinese & English, no setupwhisper-api: All languages, requires--whisper-api-key
subtitle — Optimize and translate
- Three steps: Split → Optimize → Translate
- Bing/Google translators are free
- 38 target languages supported (BCP 47 codes)
synthesize — Burn subtitles into video
- Mirrors the stable backend synthesize surface
- Subtitle look is controlled by the subtitle asset/backend version, not extra harness flags
--review-scriptchecks subtitle/script drift before the final export- Lower
--max-script-diff-ratiowhen copy accuracy matters more than resilience
process — Full pipeline
review — Consistency check and preview
- 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
- Reports whether the installed backend exposes preset styling support
config — Manage settings
download — Download online video
JSON Output
All commands support --json for machine-readable output:
Backend Notes
- The upstream backend currently requires Python
>=3.10,<3.13; prefer Python3.12for matrix runs. - Advanced synthesize-time style flags are backend-version dependent. Use
stylesto check whether the installed backend exposes them. - Compatibility flags such as
layout,render_mode,style,style_override, andfont_fileshould be treated as non-stable unlessstylesand 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.

