๐ฌ One-stop video content extraction and copywriting analysis tool. Download videos, smart subtitle extraction (embedded/burned/audio), and analyze scripts using three AI frameworks.
Overview
๐ฌ One-stop video content extraction and copywriting analysis tool. Download videos, smart subtitle extraction (embedded/burned/audio), and analyze scripts using three AI frameworks.
README
Video Copy Analyzer
ไธญๆๆๆกฃ | English
๐ฌ One-stop video content extraction and copywriting analysis tool. Download videos, smart subtitle extraction (embedded/burned/audio), and analyze scripts using three AI frameworks.
โจ Features
| Stage | Function | Description |
|---|---|---|
| 1๏ธโฃ | Video Download | Download from Bilibili/YouTube/Douyin (yt-dlp + custom downloader) |
| 2๏ธโฃ | Smart Subtitle Extraction | Three-tier priority: Embedded โ OCR (RapidOCR) โ ASR (FunASR/Whisper) |
| 3๏ธโฃ | Smart Correction | Context-based auto-correction of transcription errors |
| 4๏ธโฃ | Three-Dimensional Analysis | TextContent + Viral + Brainstorming |
๐ Quick Start
Prerequisites
# 1. yt-dlp (video downloader)
pip install yt-dlp
# 2. FFmpeg (must be installed and in PATH)
ffmpeg -version
# 3. Python dependencies
pip install pysrt python-dotenv
# 4. FunASR (Recommended for Chinese, lightweight & accurate)
pip install funasr modelscope
# 5. RapidOCR (ONNX lightweight, for burned subtitle detection)
pip install rapidocr-onnxruntime
# 6. Whisper (Alternative for English/multilingual)
pip install openai-whisper
# 7. requests (for Douyin download)
pip install requests
Usage
This is a Claude Skill designed for AI agents. Install it in your .agent/skills/ directory:
git clone https://github.com/ALBEDO-TABAI/video-copy-analyzer.git .agent/skills/video-copy-analyzer
Then use it with Claude:
โAnalyze this video: https://www.bilibili.com/video/BV1xxxxxโ
๐ฏ Smart Subtitle Extraction (3-Tier Priority)
The skill automatically selects the best extraction method:
Video Input
โ
[1๏ธโฃ Embedded Subtitle] โโโ Detected โโโ Direct Extract (Highest Accuracy)
โ Not detected
[2๏ธโฃ Burned Subtitle OCR] โโโ RapidOCR Frame Sampling โโโ Detected โโโ Full Video OCR
โ Not detected
[3๏ธโฃ Audio Transcription] โโโ FunASR (Chinese optimized) / Whisper (Multilingual)
โ
Output SRT Subtitles
Extraction Methods Comparison
| Tier | Method | Use Case | Accuracy | Speed |
|---|---|---|---|---|
| L1 | Embedded Extract | Video has subtitle stream | โญโญโญโญโญ | โก Fastest |
| L2 | RapidOCR | Subtitles burned into video | โญโญโญโญ | ๐ Fast |
| L3 | FunASR Nano | Chinese audio transcription | โญโญโญโญ | ๏ฟฝ Medium |
| L3 | Whisper | English/multilingual audio | โญโญโญ | ๐ข Medium |
Tech Stack
-
RapidOCR (ONNX): Lightweight OCR for burned subtitle detection
- ๐ Lightweight: ONNX Runtime, no GPU required
- ๐ฏ Cross-platform: Windows/Linux/Mac
- ๐ฆ Easy deploy: Single pip install
- โจ High accuracy: Based on PaddleOCR
-
FunASR Nano: Alibaba open-source Chinese ASR model
- ๐ Lightweight: ~100MB vs Whisper Large ~1.5GB
- ๐ฏ Chinese optimized: Better than Whisper for Chinese
- โฑ๏ธ Timestamp: Word-level timestamps
- ๐จ Fast: Runs well on CPU
๏ฟฝ๐ Three-Dimensional Analysis Framework
1. TextContent Analysis
- Narrative structure breakdown
- Rhetorical device identification
- Keyword extraction
2. Viral-Abstract-Script Framework
- Viral-5D Diagnosis: Hook / Emotion / Peaks / CTA / Social Currency
- Style positioning
- Optimization suggestions
3. Brainstorming Framework
- Core value decomposition
- 2-3 creative direction exploration
- Incremental verification points
๐ Project Structure
video-copy-analyzer/
โโโ SKILL.md # Core skill instructions
โโโ scripts/
โ โโโ download_douyin.py # Douyin video downloader (watermark-free)
โ โโโ extract_subtitle_funasr.py # Smart subtitle extraction (FunASR + RapidOCR)
โ โโโ extract_subtitle.py # Whisper-based extraction
โ โโโ transcribe_audio.py # Audio transcription script
โ โโโ check_environment.py # Environment verification
โโโ references/
โโโ analysis-frameworks.md # Analysis framework details
๐ง Configuration
On first use, the skill will prompt you to set a default output directory:
- Option A: Use default
~/video-analysis/ - Option B: Specify each time
- Option C: Set a fixed custom directory
๐ Output Files
After analysis, youโll receive:
| File | Content |
|---|---|
{video_id}.mp4 |
Original video |
{video_id}.srt |
Raw subtitles |
{video_id}_transcript.md / {video_id}_ๆๅญ็จฟ.md |
Corrected transcript |
{video_id}_analysis.md / {video_id}_ๅๆๆฅๅ.md |
Three-dimensional analysis report |
๐ฏ Supported Environments
This is a Claude Skill that works with AI coding assistants:
| Environment | Model | Status |
|---|---|---|
| Antigravity | Gemini 3 Pro | โ Supported |
| Cursor | Claude 4.5 Opus | โ Tested & Recommended |
| Claude Code | Claude 4.5 Opus | โ Supported |
| Windsurf | Any Claude model | โ Supported |
| Trae | Claude 3.5/4 | โ Supported |
๐ก Best Performance: Tested with Claude 4.5 Opus, achieving optimal results in transcription correction and three-dimensional analysis.
๐ License
MIT License
Recommended Tools
Try a different keyword or remove a filter.
Install
npx skillfish add albedo-tabai/video-copy-analyzer