Video Subtitle Generator for Openclaw

A high-performance toolkit for generating, translating, and aligning multilingual video subtitles using state-of-the-art AI models within the Openclaw Skills ecosystem.

jianhua-cui
v1.0.1
Mar 10, 2026
1
1.1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install video-subtitle-generator

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install video-subtitle-generator using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Video Subtitle Generator?

This tool leverages WhisperX and Large Language Models to provide a robust pipeline for video accessibility and localization. As a key component of the Openclaw Skills library, it allows developers and creators to extract audio, transcribe speech with precise timestamps, and translate text into multiple languages simultaneously. By combining local model inference for transcription with API-based translation, it offers a cost-effective yet powerful solution for professional-grade subtitle production.

Integrating this tool into your Openclaw Skills environment ensures a seamless, automated workflow for content globalization. It handles the heavy lifting of speech-to-text conversion locally while utilizing advanced LLMs for context-aware translation, making it ideal for processing everything from short clips to feature-length videos.

Video Subtitle Generator Use Cases

  • Automating captions for video content creators and social media managers looking for precise Openclaw Skills solutions.
  • Translating foreign language films or educational content for global audiences.
  • Generating bilingual subtitles for language learning and cross-cultural communication.
  • Processing large batches of video archives to improve searchability and accessibility within enterprise workflows.

How Video Subtitle Generator Works

  1. Audio Extraction: The system utilizes FFmpeg to isolate high-quality audio tracks from the source video files.
  2. Transcription: WhisperX performs local model inference to detect the source language and generate time-aligned text segments.
  3. LLM Translation: The generated subtitles are processed via a configurable LLM API for high-fidelity translation into the target language.
  4. Alignment & Export: The final output is formatted into industry-standard .srt files, providing options for bilingual or single-language versions.

Video Subtitle Generator Setup

First, ensure you have FFmpeg installed on your system. Then, install the necessary Python dependencies for this Openclaw Skills component:

# Install Python dependencies
pip install -r requirements.txt

# Configure API credentials for translation
export OPENAI_API_KEY="your-api-key"
export OPENAI_BASE_URL="https://openrouter.ai/api/v1"

To transcribe a video, run:

python3 scripts/transcribe.py "/path/to/video.mp4" -o ./output -m small

Video Subtitle Generator Data Schema & Taxonomy

The skill organizes output data into structured subtitle and metadata formats:

File Extension Content Description
*.{lang}.srt Original source language subtitles with precise timestamps.
*.json Full transcription metadata including word-level alignment data.
*.bilingual.srt Subtitles containing both the original source and the translated target text.
*.{target}.srt Translated subtitles in the specific target language requested.

Video Subtitle Generator Advanced Features

  • Support for multiple Whisper model sizes (tiny to large) to balance speed and accuracy within your Openclaw Skills setup.
  • Automated batch processing capabilities for entire directories of video content.
  • Integrated retry logic with exponential backoff to handle LLM API rate limits during translation.
  • Flexible output configurations supporting source-only, target-only, or bilingual subtitle formats.
  • Cross-platform compatibility ensuring consistent performance across macOS, Linux, and Windows.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*