Discover and explore top open-source AI tools and projects—updated daily.
xiaohuailabsAI-powered video subtitle generation and transcription
Top 53.1% on SourcePulse
This project provides an end-to-end, local pipeline for transforming foreign-language videos into Chinese-subtitled versions with accompanying transcripts. It targets users of AI coding command-line interfaces (CLIs) like Claude Code, OpenClaw, Gemini CLI, and Codex, offering a zero-cost, privacy-preserving alternative to cloud-based transcription and translation services. The primary benefit is automating a complex, multi-step video processing workflow into a single natural language command.
How It Works
The system orchestrates a five-step process: video download, audio extraction and transcription using Whisper (with word-level timestamps), translation (any language to Chinese), subtitle polishing (semantic segmentation, error correction, timestamp alignment), and finally, burning the subtitles into the video. It leverages local execution, utilizing Apple Silicon's MLX framework with Metal GPU acceleration for Whisper on macOS, or faster-whisper on other platforms. The approach prioritizes accuracy through word-level timing and human-grade subtitle generation, correcting common ASR errors and segmenting text semantically, while offering flexible subtitle output options.
Quick Start & Requirements
install.sh script. Integration involves configuring the specific AI coding tool (e.g., adding skills to Claude Code).yt-dlp, ffmpeg, Python 3.x. Transcription engines: mlx-whisper (Apple Silicon) or faster-whisper (non-Apple Silicon, Windows, Linux). AI coding CLI (e.g., Claude Code).Highlighted Details
Maintenance & Community
No specific details regarding maintainers, community channels (like Discord/Slack), or roadmap were found in the provided README.
Licensing & Compatibility
config.json) or sensitive login states (e.g., Douyin) to public repositories.Limitations & Caveats
Burn-in subtitle rendering requires specific CJK fonts (e.g., PingFang SC on macOS, Microsoft YaHei on Windows, Noto Sans CJK on Linux), necessitating manual configuration on non-macOS systems. Transcription accuracy is dependent on audio quality and Whisper's performance, with potential issues arising from background noise. Integration requires compatible AI coding tools, and specific platforms like Douyin may require manual login steps.
1 month ago
Inactive