video-watcher

TotalClaw 作者 totalclaw

下载视频、提取文字记录、捕获帧。使用 yt-dlp + Whisper + ffmpeg 分析 YouTube、教程、DD 视频。

安装 / 下载方式

TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~zedit42-dd-video-analyzer
cURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~zedit42-dd-video-analyzer/file -o zedit42-dd-video-analyzer.md
## 概述(中文)

下载视频、提取文字记录、捕获帧。使用 yt-dlp + Whisper + ffmpeg 分析 YouTube、教程、DD 视频。

## 原文

# Video Watcher

Download, transcribe, and screenshot videos for analysis.

## Requirements

```bash
brew install yt-dlp ffmpeg openai-whisper
```

## Quick Start

```bash
./scripts/analyze.sh "https://youtube.com/watch?v=..."
```

## Output

```
outputs/
├── video.mp4           # Downloaded video
├── audio.mp3           # Extracted audio
├── transcript.txt      # Plain text
├── transcript.srt      # Subtitles
└── frames/             # Screenshots every 30s
```

## Commands

### Analyze video
```bash
./scripts/analyze.sh "URL" [output-dir] [frame-interval] [whisper-model]
```

### Summarize transcript
```bash
./scripts/summarize.sh ./outputs/transcript.txt
```

Or with AI:
```bash
cat outputs/transcript.txt | clawdbot ask "Summarize this"
```

## Config

`config.json`:
```json
{
  "whisper_model": "medium",
  "frame_interval": 30,
  "output_dir": "./outputs"
}
```

## Use Cases

- DD (Due Diligence) videos
- Lecture notes
- Podcast summaries
- Tutorial documentation
- Meeting recordings