video-content-analyzer
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseVideo Content Analyzer
视频内容分析工具
Analyze short-form videos with Gemini AI to extract hooks, content structure, delivery style, and CTA strategies.
借助Gemini AI分析短视频,提取钩子、内容结构、呈现风格和CTA策略。
Prerequisites
前置要求
- environment variable
GEMINI_API_KEY - and
google-genaiPython packagesrequests
- 环境变量
GEMINI_API_KEY - 和
google-genaiPython 包requests
Usage
使用方法
bash
python3 .claude/skills/video-content-analyzer/scripts/analyze_videos.py \
--input outliers.json \
--output video-analysis.json \
--platform instagram \
--max-videos 5bash
python3 .claude/skills/video-content-analyzer/scripts/analyze_videos.py \
--input outliers.json \
--output video-analysis.json \
--platform instagram \
--max-videos 5Parameters
参数说明
| Arg | Description |
|---|---|
| Input JSON file with outlier posts (required) |
| Output JSON file for results (required) |
| Platform: |
| Max videos to analyze (default: 5) |
| 参数 | 说明 |
|---|---|
| 包含异常值帖子的输入JSON文件(必填) |
| 用于保存结果的输出JSON文件(必填) |
| 平台: |
| 要分析的最大视频数量(默认值:5) |
Input Format
输入格式
Accepts outlier JSON from platform-specific research skills. Handles both formats:
- Direct list:
[{post1}, {post2}, ...] - Wrapped:
{"outliers": [{post1}, {post2}, ...]}
The script automatically maps platform-specific fields:
| Platform | Video URL Fields | Caption | Username |
|---|---|---|---|
| | | |
| TikTok | | | |
| YouTube | | | |
TikTok Note: The Apify TikTok Scraper returns (the TikTok page URL) rather than a direct video download URL. Gemini will attempt to analyze from this page URL.
webVideoUrl接受来自平台特定研究工具的异常值JSON,支持以下两种格式:
- 直接列表:
[{post1}, {post2}, ...] - 包裹格式:
{"outliers": [{post1}, {post2}, ...]}
脚本会自动映射平台特定字段:
| 平台 | 视频URL字段 | 标题/描述 | 用户名 |
|---|---|---|---|
| | | |
| TikTok | | | |
| YouTube | | | |
TikTok 注意事项:Apify TikTok 爬虫返回的是(TikTok页面URL),而非直接的视频下载URL。Gemini会尝试通过该页面URL进行分析。
webVideoUrlOutput
输出格式
Returns JSON array with analysis for each video:
json
[
{
"post_id": "ABC123",
"username": "creator",
"url": "https://...",
"platform": "instagram",
"likes": 50000,
"comments": 1200,
"views": 500000,
"analysis": {
"hook": {
"technique": "pattern-interrupt",
"opening_line": "Stop scrolling if you...",
"attention_grab": "Creates urgency and targets specific audience",
"replicable_formula": "Stop scrolling if you [pain point]"
},
"content_structure": {
"format": "problem-solution",
"sections": [...],
"pacing": "fast",
"retention_techniques": ["pattern interrupts", "text overlays"]
},
"delivery_style": {
"speaking": "direct-to-camera",
"energy": "high-energy",
"text_overlays": true,
"visual_style": "quick cuts with b-roll"
},
"cta_strategy": {
"type": "follow",
"cta_text": "Follow for more tips",
"placement": "end"
},
"why_it_works": "..."
}
}
]返回包含每个视频分析结果的JSON数组:
json
[
{
"post_id": "ABC123",
"username": "creator",
"url": "https://...",
"platform": "instagram",
"likes": 50000,
"comments": 1200,
"views": 500000,
"analysis": {
"hook": {
"technique": "pattern-interrupt",
"opening_line": "Stop scrolling if you...",
"attention_grab": "Creates urgency and targets specific audience",
"replicable_formula": "Stop scrolling if you [pain point]"
},
"content_structure": {
"format": "problem-solution",
"sections": [...],
"pacing": "fast",
"retention_techniques": ["pattern interrupts", "text overlays"]
},
"delivery_style": {
"speaking": "direct-to-camera",
"energy": "high-energy",
"text_overlays": true,
"visual_style": "quick cuts with b-roll"
},
"cta_strategy": {
"type": "follow",
"cta_text": "Follow for more tips",
"placement": "end"
},
"why_it_works": "..."
}
}
]Hook Techniques
钩子技巧
The analyzer identifies these hook types:
- - Breaks expected patterns
pattern-interrupt - - Opens with engaging question
question - - Makes surprising statement
bold-claim - - Hints at compelling narrative
story-tease - - Striking visual opening
visual-shock - - Creates information gap
curiosity-gap - - Speaks to specific audience
direct-address - - Polarizing opinion
controversial-take - - Targets common struggle
relatable-pain - - Shows before/after
transformation-preview
分析工具可识别以下钩子类型:
- - 打破常规模式
pattern-interrupt - - 以引人入胜的问题开场
question - - 做出惊人陈述
bold-claim - - 暗示引人入胜的叙事
story-tease - - 震撼的视觉开场
visual-shock - - 制造信息差
curiosity-gap - - 针对特定受众发言
direct-address - - 有争议的观点
controversial-take - - 瞄准普遍痛点
relatable-pain - - 展示前后对比
transformation-preview
Content Formats
内容格式
- - Present problem, offer fix
problem-solution - - Numbered tips/items
listicle - - Narrative arc
story - - Step-by-step how-to
tutorial - - Transformation reveal
before-after - - Lifestyle content
day-in-life - - Response to other content
reaction - - Opinion piece
hot-take - - Product/tool showcase
tool-demo
- - 提出问题,提供解决方案
problem-solution - - 编号式技巧/条目
listicle - - 叙事结构
story - - 分步教程
tutorial - - 前后对比展示
before-after - - 生活日常内容
day-in-life - - 对其他内容的回应
reaction - - 观点类内容
hot-take - - 产品/工具展示
tool-demo