fortytwode

Meta Video Ad Analyzer

设计创意v1.0.0
作者:fortytwode更新于 2026-05-11meta-video-ad-analyzer@clawhub_fortytwode/meta-video-ad-analyzer
图片编辑视频处理#OCR#Transcription#Audio

据 AlphaMoat 统计,截至 2026-09,Meta Video Ad Analyzer 累计下载 2,485 次、获 1 个星标,在全部 5,078 个 AI 技能中排名第 4,112 位,在「设计创意」分类(512 个)中排名第 400 位。

累计安装
104
累计下载
2,485
星标
1
全站排名
#4,112
全站前 81% · 「设计创意」前 79%
平台累计安装累计下载星标评论
ClawHub ↗742,2821-
SkillHub ↗1042,4851—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

该指南描述从视频或图片中抽取画面、文字、语音转录、场景说明和缩略图,并使用 Google Gemini Vision 进行场景分析。它依赖本地媒体处理组件,也可能将素材发送给 Google AI 服务;识别和转录结果可能不完整或有误,使用前应确认处理授权并复核输出。

资料发布于 2026-10-29

可以用来做什么

  • 为视频广告生成按场景整理的描述。
  • 提取画面中的文字叠加内容或语音转录。
  • 检查素材缩略图及抽取结果是否完整。

什么时候用

  • 需要快速梳理视频或图片广告中的视觉与语音内容时。
  • 将媒体提交外部 AI 服务前,需要确认授权与数据处理要求时。
  • 依据 OCR、转录或场景分析作业务判断前,需要人工复核时。

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

根据这段获准处理的视频总结各场景,并将识别到的文字与推断描述分开。
列出这份转录和 OCR 结果中需要人工复核的片段。

月度数据趋势

累计下载2,485
1,5842,0682,5522026-03 · 累计下载 1,6512026-05 · 累计下载 1,8912026-06 · 累计下载 1,9742026-07 · 累计下载 2,1452026-08 · 累计下载 2,2532026-09 · 累计下载 2,48526-0326-09
星标1
0122026-03 · 星标 12026-05 · 星标 12026-06 · 星标 12026-07 · 星标 12026-08 · 星标 12026-09 · 星标 126-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-092,485—1
2026-082,253+5.0%1
2026-072,145+8.7%1
2026-061,974+4.4%1
2026-051,891—1
2026-031,651—1

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

3.6 KB · ClawHub v1.0.0
---
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.
---

# Video Ad Analyzer

AI-powered video content extraction using Google Gemini Vision.
展开全部(共 127 行)
## What This Skill Does

- **Frame Extraction**: Smart sampling with scene change detection
- **OCR Text Detection**: Extract text overlays using EasyOCR
- **Audio Transcription**: Convert speech to text with Google Cloud Speech
- **AI Scene Analysis**: Describe each scene using Gemini Vision
- **Native Video Analysis**: Direct video understanding for longer content
- **Thumbnail Generation**: Auto-generate thumbnails from first frame

## Setup

### 1. Environment Variables

```bash
# 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)
```

### 2. Dependencies

```bash
pip install opencv-python pillow easyocr ffmpeg-python google-cloud-speech vertexai google-api-python-client
```

Also requires `ffmpeg` and `ffprobe` installed on system.

## Usage

### Basic Video Analysis

```python
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]}...")
```

### Extract Only Frames

```python
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
)
```

### Analyze Images

```python
# Works with images too
result = extractor.extract_content("/path/to/image.jpg")
print(result.scene_timeline[0]['description'])
```

## Output Structure

```python
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
)
```

## Key Features

| 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 |

## Prompts

Customize AI behavior by editing prompts in the `prompts/` folder:

- `scene_analysis.md` - Frame analysis prompts
- `scene_reconciliation.md` - Scene enrichment prompts

## Common Questions This Answers

- "What text appears in this video ad?"
- "Describe each scene in this creative"
- "What does the narrator say?"
- "Extract the call-to-action from this ad"

「设计创意」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。