Extract and analyze content from video ads using Gemini Vision AI. Supports frame extraction, OCR text detection, audio transcription, and AI-powered scene analysis. Use when analyzing video creative content, extracting text overlays, or generating scene-by-scene descriptions.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install meta-video-ad-analyzer或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install meta-video-ad-analyzer⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/meta-video-ad-analyzer/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: video-ad-analyzer version: 1.0.0 description: Extract and analyze content from video ads using Gemini Vision AI. Supports frame extraction, OCR text detection, audio transcription, and AI-powered scene analysis. Use when analyzing video creative content, extracting text overlays, or generating scene-by-scene descriptions. ---
AI-powered video content extraction using Google Gemini Vision.
# Required for Gemini Vision
GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json
# Required for audio transcription
# (same service account needs Speech-to-Text API enabled)
pip install opencv-python pillow easyocr ffmpeg-python google-cloud-speech vertexai google-api-python-client
Also requires ffmpeg and ffprobe installed on system.
from scripts.video_extractor import VideoExtractor
from scripts.models import ExtractedVideoContent
import vertexai
from vertexai.generative_models import GenerativeModel
# Initialize Vertex AI
vertexai.init(project="your-project-id", location="us-central1")
gemini_model = GenerativeModel("gemini-1.5-flash")
# Create extractor
extractor = VideoExtractor(gemini_model=gemini_model)
# Analyze video
result = extractor.extract_content("/path/to/video.mp4")
print(f"Duration: {result.duration}s")
print(f"Scenes: {len(result.scene_timeline)}")
print(f"Text overlays: {len(result.text_timeline)}")
print(f"Transcript: {result.transcript[:200]}...")
frames, timestamps, text_timeline, scene_timeline, thumbnail = extractor.extract_smart_frames(
"/path/to/video.mp4",
scene_interval=2, # Check for scene changes every 2s
text_interval=0.5 # Check for text every 0.5s
)
# Works with images too
result = extractor.extract_content("/path/to/image.jpg")
print(result.scene_timeline[0]['description'])
ExtractedVideoContent(
video_path="/path/to/video.mp4",
duration=30.5,
transcript="Here's what we found...",
text_timeline=[
{"at": 0.0, "text": ["Download Now"]},
{"at": 5.5, "text": ["50% Off Today"]}
],
scene_timeline=[
{"timestamp": 0.0, "description": "Woman using phone app..."},
{"timestamp": 2.0, "description": "Product showcase with features..."}
],
thumbnail_url="/static/thumbnails/video_thumb.jpg",
extraction_complete=True
)
| Feature | Description | |---------|-------------| | Scene Detection | Histogram-based change detection (threshold=65) | | OCR Confidence | Tiered thresholds (0.5 high, 0.3 low) | | AI Proofreading | Gemini cleans up OCR errors | | Source Reconciliation | Merges OCR + Vision text intelligently | | Native Video | Direct Gemini analysis for <20MB files |
Customize AI behavior by editing prompts in the prompts/ folder:
scene_analysis.md - Frame analysis promptsscene_reconciliation.md - Scene enrichment prompts安装 Meta Video Ad Analyzer 后,可以对 AI 说这些话来触发它
Help me get started with Meta Video Ad Analyzer
Explains what Meta Video Ad Analyzer does, walks through the setup, and runs a quick demo based on your current project
Use Meta Video Ad Analyzer to extract and analyze content from video ads using Gemini Vision AI
Invokes Meta Video Ad Analyzer with the right parameters and returns the result directly in the conversation
What can I do with Meta Video Ad Analyzer in my design & creative workflow?
Lists the top use cases for Meta Video Ad Analyzer, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/meta-video-ad-analyzer/ 目录(个人级,所有项目可用),或 .claude/skills/meta-video-ad-analyzer/(项目级)。重启 AI 客户端后,用 /meta-video-ad-analyzer 主动调用,或让 AI 根据上下文自动发现并使用。
Meta Video Ad Analyzer 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Meta Video Ad Analyzer 可免费安装使用。请查阅仓库了解许可证信息。
Extract and analyze content from video ads using Gemini Vision AI. Supports frame extraction, OCR text detection, audio transcription, and AI-powered scene analysis. Use when analyzing video creative content, extracting text overlays, or generating scene-by-scene descriptions.
Automate my design & creative tasks using Meta Video Ad Analyzer
Identifies repetitive steps in your workflow and sets up Meta Video Ad Analyzer to handle them automatically
Meta Video Ad Analyzer 属于「Design & Creative」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。