Skip to content
Projects

imlewc/video-to-subtitle-summary-skill

View on GitHub

About

视频转字幕与AI总结 (抖音/小红书/B 站等)支持 faster-whisper 本地转写和 YouTube 字幕抓取 | Convert short videos to subtitles with AI summary

Design & Media

How these counts are measured

Measured star growth

in 24h
+3
in 7 days
+9
in 15 days
+21
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README_en.md

Original

video-to-subtitle-summary

A Codex / Claude Code Skill powered by AI Douyin (top9.cc) that turns Douyin, Xiaohongshu, Bilibili, X/Twitter, YouTube videos, and local media files into transcripts, SRT subtitles, AI summaries, Douyin comment insights, and Douyin creator batch breakdowns.

中文文档

No-Setup Online Version

Prefer a browser or WeChat mini program without local setup?

  • Web App: Open https://top9.cc — new accounts get 100 free credits.
  • WeChat Mini Program: Search 「琢片」 in WeChat.

Core Capabilities

Capability Use Case Requirements Pricing (1 CNY = 100 credits)
Cloud Analysis (Zero Local Deps) Douyin/Xiaohongshu/Bilibili/X summaries, full transcript, Douyin comment insights Python 3 + AI_DOUYIN_API_KEY (no FFmpeg/Whisper needed) 10 credits/min (min 10 credits; Douyin comment insights +10 credits)
Douyin Creator Batch Posts Fetch a creator's latest/hottest posts with likes & comment stats for batch breakdown Python 3 + AI_DOUYIN_API_KEY 5 credits/request
Download URL + Local SRT Export editable .srt subtitles or transcribe local .mp4/.mp3 Python 3 + FFmpeg + faster-whisper 10 credits/success for online URL parsing; local files incur no API fee
YouTube Subtitle Fetch Fetch manual/auto YouTube captions directly yt-dlp No API fee

New users registering on AI Douyin (top9.cc) receive 100 credits; top-ups of 20/50/100 CNY include 5%/7%/10% bonus credits.

Quick Start

1. Get an AI Douyin API Key (Required for Douyin / Xiaohongshu / Bilibili / X)

  1. Register at https://top9.cc and verify your email.
  2. Create an API key on the API Keys page.
  3. Install the Skill and configure .env:
git clone https://github.com/imlewc/video-to-subtitle-summary-skill.git video-to-subtitle-summary

# Codex
mkdir -p ~/.codex/skills && cp -r video-to-subtitle-summary ~/.codex/skills/video-to-subtitle-summary

# Claude Code
mkdir -p ~/.claude/skills && cp -r video-to-subtitle-summary ~/.claude/skills/video-to-subtitle-summary

cp ~/.codex/skills/video-to-subtitle-summary/.env.example ~/.codex/skills/video-to-subtitle-summary/.env
# Set AI_DOUYIN_API_KEY="sk_xxx" in .env

2. Optional Local Runtime (Only for local .srt generation or local files)

  • FFmpeg: brew install ffmpeg (macOS) / sudo apt install ffmpeg (Ubuntu)
  • yt-dlp (Bilibili fallback / YouTube subtitles): brew install yt-dlp or python3 -m pip install -U yt-dlp
  • faster-whisper:
python3 ~/.codex/skills/video-to-subtitle-summary/scripts/install_faster_whisper.py

Usage Examples

1. Cloud Analysis (Zero Local Dependencies + Douyin Comment Insights)

python3 ~/.codex/skills/video-to-subtitle-summary/scripts/analyze_video_cloud.py \
  "https://v.douyin.com/xxxxxx/" \
  --output-dir /tmp/video_analysis/demo

2. Douyin Creator Homepage Batch Fetch

python3 ~/.codex/skills/video-to-subtitle-summary/scripts/fetch_douyin_user_posts.py \
  "https://www.douyin.com/user/MS4wLjABAAAA..." \
  --count 10 \
  --sort-type 1

3. Local SRT & Summary (Online Link or Local Media)

/video-to-subtitle-summary https://www.xiaohongshu.com/explore/xxxxxx
/video-to-subtitle-summary /Users/me/Downloads/video.mp4

4. List Your AI Douyin Task History

python3 ~/.codex/skills/video-to-subtitle-summary/scripts/list_ai_douyin_tasks.py --page 1 --page-size 20

Setup Guides

Topic Guide
AI Douyin proxy & cloud billing Setup Guide
faster-whisper runtime Setup Guide
Volcengine VC (optional ASR) Setup Guide

Advanced Self-Hosted Options (Optional)

If you prefer your own TikHub token (VIDEO_INFO_PROVIDER=tikhub, see TikHub Setup) or Volcengine VC (ASR_BACKEND=volcengine), you can configure them in .env. Note that self-hosted mode only covers single-video download URL resolution and does not include cloud analysis, Douyin creator batch posts, comment insights, or task archiving.

Project Structure

video-to-subtitle-summary/
├── README.md
├── README_en.md
├── LICENSE
├── SKILL.md
├── .env.example
├── scripts/
│   ├── ai_douyin_client.py
│   ├── analyze_video_cloud.py
│   ├── download_video_candidates.py
│   ├── download_youtube_subtitles.py
│   ├── fetch_douyin_user_posts.py
│   ├── install_faster_whisper.py
│   ├── list_ai_douyin_tasks.py
│   └── transcribe_faster_whisper.py
├── tests/
│   ├── test_ai_douyin_client.py
│   ├── test_analyze_video_cloud.py
│   ├── test_download_video_candidates.py
│   ├── test_download_youtube_subtitles.py
│   ├── test_fetch_douyin_user_posts.py
│   ├── test_install_faster_whisper.py
│   ├── test_list_ai_douyin_tasks.py
│   └── test_transcribe_faster_whisper.py
└── docs/
    ├── ai-douyin-setup.md
    ├── tikhub-setup.md
    ├── faster-whisper-setup.md
    └── bytedance-vc-setup.md

License

MIT

Explore related projects

Loading…