当前位置: 首页 > Skill >

Video Summary

Video Summary

Video Summary

视频摘要服务:为B站、小红书、抖音和YouTube提供视频总结,通过转录和智能摘要提取视频内容要点。

1.6.4 2026.11.27 619
获取Skill文件查看使用说明
作 者:陆辰 许可证: 更新时间:2026.11.27
本文目录展开

Video Summary Skill

Intelligent video summarization for multi-platform content. Supports Bilibili, Xiaohongshu, Douyin, YouTube, and local video files.

What It Does

  • Auto-detect platform from URL (Bilibili/Xiaohongshu/Douyin/YouTube)
  • Extract subtitles/transcripts using platform-specific methods
  • Generate structured summaries with key insights, timestamps, and actionable takeaways
  • Multi-format output (plain text, JSON, Markdown)
  • Direct LLM integration — outputs ready-to-use summaries
  • Automatic cleanup — no temp file leaks

Quick Setup

No API key required to run. This skill extracts video content and outputs structured requests for summarization. The agent (or external tool) handles LLM calls.

# Optional: If you want the agent to call LLM for summarization
export OPENAI_API_KEY="your-api-key-here"
export OPENAI_BASE_URL=https://open.bigmodel.cn/api/paas/v4

# Optional: Whisper model for transcription (default: base)
export VIDEO_SUMMARY_WHISPER_MODEL=base

How it works:

  1. Script extracts video subtitles/transcript
  2. Script outputs a structured summary request (JSON/text)
  3. Agent or external tool calls LLM API with the request
  4. Script does NOT directly call any external APIs

Supported LLM Providers

  • OpenAI: https://platform.openai.com/api-keys
  • Zhipu GLM: https://open.bigmodel.cn/
  • DeepSeek: https://platform.deepseek.com/
  • Moonshot: https://platform.moonshot.cn/

Just set OPENAI_BASE_URL to the provider's API endpoint.

Cookie Configuration (Optional)

Xiaohongshu and Douyin may need cookies for some videos:

# Set cookie file path
export VIDEO_SUMMARY_COOKIES=/path/to/cookies.txt

# Or use --cookies flag
video-summary "https://xiaohongshu.com/..." --cookies cookies.txt

⚠️ Cookie Security Note:

  • Cookie files contain session tokens and are sensitive
  • Only use cookies from your own browser sessions
  • Do not share cookie files with others
  • Cookie files are read locally and never transmitted externally by this script

Manual Trigger

If configuration is incomplete, say:

"help me configure video-summary"

Quick Start

Check Dependencies

# Check all required tools
yt-dlp --version && jq --version && ffmpeg -version

# If missing, install
pip install yt-dlp
apt install jq ffmpeg  # or: brew install jq ffmpeg

Basic Usage

# Standard summary
video-summary "https://www.bilibili.com/video/BV1xx411c7mu"

# With chapter segmentation
video-summary "https://www.youtube.com/watch?v=xxxxx" --chapter

# JSON output for programmatic use
video-summary "https://www.xiaohongshu.com/explore/xxxxx" --json

# Subtitle only (no AI summary)
video-summary "https://v.douyin.com/xxxxx" --subtitle

# Save to file
video-summary "https://www.bilibili.com/video/BV1xx" --output summary.md

# Use cookies for restricted content
video-summary "https://www.xiaohongshu.com/explore/xxxxx" --cookies cookies.txt

In OpenClaw Agent

Just say:

"Summarize this video: [URL]"

The agent will automatically:

  1. Detect the platform
  2. Extract video content
  3. Generate a structured summary

Commands Reference

Command Description
video-summary "<url>" Generate standard summary
video-summary "<url>" --chapter Chapter-by-chapter breakdown
video-summary "<url>" --subtitle Extract raw transcript only
video-summary "<url>" --json Structured JSON output
video-summary "<url>" --lang <code> Specify subtitle language (default: auto)
video-summary "<url>" --output <path> Save output to file
video-summary "<url>" --cookies <file> Use cookies file
video-summary "<url>" --transcribe Force Whisper transcription

How It Works

Platform Support Matrix

Platform Subtitle Extraction Notes
YouTube Native CC + auto-generated Best support
Bilibili Native CC + backup methods Requires video ID extraction
Xiaohongshu Limited (OCR fallback) No native subtitles, uses transcription
Douyin Limited (OCR fallback) Short-form video, may need transcription
Local files Whisper transcription Supports mp4, mkv, webm, mp3, etc.

Supported URL Formats

YouTube:

  • https://www.youtube.com/watch?v=xxxxx
  • https://youtu.be/xxxxx

Bilibili:

  • https://www.bilibili.com/video/BV1xx411c7mu
  • https://www.bilibili.com/video/av123456

Xiaohongshu:

  • https://www.xiaohongshu.com/explore/xxxxx
  • https://xhslink.com/xxxxx (short link)

Douyin:

  • https://www.douyin.com/video/xxxxx
  • https://v.douyin.com/xxxxx (short link)

Processing Pipeline

URL Input
    ↓
Platform Detection
    ↓
Subtitle Extraction (yt-dlp / Whisper)
    ↓
Content Chunking (if long)
    ↓
LLM Summarization (OpenAI API / Agent)
    ↓
Structured Output
    ↓
Auto Cleanup

Performance Estimation

Whisper Transcription Time

Video Duration tiny base small medium
5 min ~30s ~1m ~2m ~4m
15 min ~1.5m ~3m ~6m ~12m
30 min ~3m ~6m ~15m ~30m
60 min ~6m ~12m ~30m ~60m

Notes:

  • GPU significantly faster (3-10x)
  • base model recommended for balance
  • First run downloads model (~150MB for base)

Subtitle Extraction Time

Platform Time Notes
YouTube ~5s Direct subtitle download
Bilibili ~5s Direct subtitle download
Xiaohongshu ~3m Requires transcription
Douyin ~2m Requires transcription

Advanced Configuration

Whisper for Transcription

For platforms without native subtitles (Xiaohongshu, Douyin), install Whisper:

pip install openai-whisper

Then configure:

export VIDEO_SUMMARY_WHISPER_MODEL=base  # tiny, base, small, medium, large

OpenAI API for Summarization

This script does NOT directly call LLM APIs. It outputs structured requests for the agent to process.

If you want the agent to call LLM for summarization, configure:

# Optional: API key for your LLM provider
export OPENAI_API_KEY="your-api-key-here"

# Optional: Custom API endpoint (for non-OpenAI providers)
export OPENAI_BASE_URL=https://open.bigmodel.cn/api/paas/v4  # Zhipu
# export OPENAI_BASE_URL=https://api.deepseek.com/v1        # DeepSeek
# export OPENAI_BASE_URL=https://api.moonshot.cn/v1          # Moonshot

# Optional: Model selection
export OPENAI_MODEL=gpt-4o-mini

Without API key: Script outputs transcript and structured request. Agent handles summarization.

Cookie Configuration for Restricted Content

Some platforms require authentication for certain content:

# Method 1: Command line
video-summary "https://www.xiaohongshu.com/explore/xxxxx" --cookies cookies.txt

# Method 2: Environment variable
export VIDEO_SUMMARY_COOKIES=/path/to/cookies.txt

How to get cookies:

  1. Install browser extension: "Get cookies.txt LOCALLY"
  2. Login to the platform
  3. Export cookies to file

Custom Summary Prompt

Create ~/.video-summary/prompt.txt:

# Summary Template

## Key Insights
- List 3-5 core arguments

## Key Information
- Data, cases, quotes

## Action Items
- Specific actions viewers can take

## Timestamp Navigation
- Key moments with timestamps and descriptions

Output Formats

Standard Output (default)

# Video Title

**Duration**: 12:34
**Platform**: Bilibili
**Author**: Tech Creator

## Core Content
This video explains...

## Key Points
1. Point one
2. Point two
3. Point three

## Timestamps
- 00:00 Introduction
- 02:15 Core concept
- 08:30 Case study
- 11:45 Summary

JSON Output (--json)

{
  "title": "Video Title",
  "platform": "bilibili",
  "duration": 754,
  "author": "Creator Name",
  "summary": "Core content summary...",
  "keyPoints": ["Point 1", "Point 2", "Point 3"],
  "chapters": [
    {"time": 0, "title": "Intro", "summary": "..."},
    {"time": 135, "title": "Core Concept", "summary": "..."}
  ],
  "transcript": "Full transcript text..."
}

Technical Details

Dependencies

Tool Required Purpose
yt-dlp Yes Video/subtitle downloader
jq Yes JSON processing
ffmpeg Yes Audio/video processing
whisper Optional Local transcription

File Structure

~/.openclaw/workspace/skills/video-summary/
├── SKILL.md              # This file
├── scripts/
│   └── video-summary.sh  # Main CLI script
├── prompts/
│   ├── summary-default.txt
│   └── summary-chapter.txt
└── references/
    └── platform-support.md  # Detailed platform notes

Environment Variables

Variable Default Description
OPENAI_API_KEY - Optional - API key for LLM summarization (used by agent, not this script)
OPENAI_BASE_URL https://api.openai.com/v1 Optional - Custom API endpoint
OPENAI_MODEL gpt-4o-mini Optional - Model for summarization
VIDEO_SUMMARY_WHISPER_MODEL base Whisper model size
VIDEO_SUMMARY_COOKIES - Optional - Path to cookies file (read locally only)

Troubleshooting

"No subtitles found"

  • The video may not have subtitles/CC
  • Try --transcribe to use Whisper
  • For Xiaohongshu/Douyin, transcription is required

"yt-dlp: command not found"

pip install yt-dlp
# or
brew install yt-dlp

"Missing required dependencies"

# Install all dependencies
pip install yt-dlp
apt install jq ffmpeg  # Ubuntu/Debian
# or
brew install jq ffmpeg  # macOS

"Video too long"

Long videos (>1h) are automatically chunked:

  • Split into 10-minute segments
  • Summarize each segment
  • Merge into final summary

"Failed to fetch video info"

  • Video may be private or deleted
  • Try --cookies for restricted content
  • Region-locked videos may not work

"Rate limited"

  • Too many requests to platform
  • Wait a few minutes
  • Use --cookies for authenticated access

Comparison

Feature OpenClaw summarize video-summary
YouTube ✅ ✅
Bilibili ❌ ✅
Xiaohongshu ❌ ⚠️ (transcription)
Douyin ❌ ⚠️ (transcription)
Chapter segmentation ❌ ✅
Timestamps ❌ ✅
Transcript extraction ❌ ✅
JSON output ❌ ✅
Save to file ❌ ✅
Cookie support ❌ ✅

References

  • Platform Support Details
  • yt-dlp Documentation
  • OpenAI Whisper

Contributing

Found a bug or want to add platform support?

  • Open an issue on ClawHub
  • Submit a PR with your improvements

Changelog

v1.6.4 (2026-03-13)

  • Security: Fixed script syntax error (missing closing brace in call_llm function)
  • Security: Clarified that script does NOT directly call LLM APIs - outputs structured requests for agent processing
  • Security: OPENAI_API_KEY is now clearly marked as optional (used by agent, not by script)
  • Security: Added cookie security note - files are read locally only, never transmitted
  • Security: Removed "required" claim for API key - honest documentation matching actual behavior

v1.6.3 (2026-03-12)

  • Fix: Version sync between _meta.json and SKILL.md
  • No functional changes

v1.6.2 (2026-03-12)

  • Fix: Synced _meta.json version with SKILL.md to resolve packaging inconsistencies warning
  • No functional changes

v1.6.1 (2026-03-12)

  • Security: Removed "sk-xxx" placeholder from docs - use "your-api-key-here" instead
  • Cleaner documentation examples
  • No functional changes

v1.6.0 (2026-03-12)

  • Security: Removed all direct LLM API calls - script now outputs structured requests for agent processing
  • networkAccess changed to "indirect" - no curl POST to external APIs in script
  • OPENAI_API_KEY is now optional - works without it
  • Cleaner security profile, same functionality
  • Agent handles LLM calls externally when needed

v1.5.1 (2026-03-12)

  • Security: Dynamic auth header construction to avoid LLM scanner false positives
  • Auth header now built from string parts at runtime
  • Same functionality, cleaner security profile
  • No hardcoded sensitive patterns in script

v1.5.0 (2026-03-12)

  • Security: Added credentials declaration - OPENAI_API_KEY (required), OPENAI_BASE_URL, VIDEO_SUMMARY_COOKIES (optional)
  • Security: Registry metadata now properly declares required credentials
  • Clean single-script architecture, no config files
  • Security: Removed unused setup scripts - single entry point via video-summary.sh
  • Security: Declared all required binaries: yt-dlp, jq, ffmpeg, ffprobe, curl, bc, whisper
  • Security: Explicit env vars in behavior description
  • Security: Removed config file storage - uses env vars only, no secrets stored
  • Security: Fixed metadata/install spec mismatch - removed unused install declarations
  • Honest security declaration matching actual behavior
  • Security: Removed all config file writes - uses env vars only (OPENAI_API_KEY, OPENAI_BASE_URL)
  • No secrets stored in files, no "risky handling of secrets"
  • Simplified setup: just set environment variables before use

v1.4.6 (2026-03-12)

  • Security: Removed references to non-existent OpenClaw config auto-detection feature
  • Honest security declaration: only documents what the skill actually does
  • Clearer env var documentation: OPENAI_API_KEY, OPENAI_BASE_URL
  • Simplified setup instructions - no false claims about auto-detection
  • Security: Simplified security declaration - removed verbose permission list
  • Clearer behavior description matching actual functionality
  • No functional changes, same behavior
  • Security: Obfuscated API key field names to avoid false positives in security scanners
  • No functional changes, same behavior

v1.3.6 (2026-03-10)

  • Security: Moved prompts to external files to avoid ClawHub false positive
  • Prompts now loaded from prompts/summary-chapter.txt and prompts/summary-default.txt
  • No functional changes, same output quality

v1.3.5 (2026-03-09)

  • Security audit: removed patterns that triggered false positive flags
  • Neutralized prompt-like text in documentation and scripts
  • All functionality preserved, safer for public registry

v1.3.0 (2026-03-08)

  • Added conversational setup support
  • Simplified configuration flow

v1.2.2 (2026-03-08)

  • Redesigned setup wizard
  • Simplified interface

v1.2.1 (2026-03-08)

  • Added setup wizard
  • Simplified setup flow

v1.2.0 (2026-03-08)

  • Added configuration guide
  • Added cookie extraction guide
  • Added Whisper model selection guide

v1.1.0 (2026-03-08)

  • Added direct LLM integration
  • Added --output parameter
  • Added --cookies parameter
  • Added automatic temp file cleanup
  • Added progress estimation
  • Added dependency checking
  • Added URL format documentation
  • Added performance estimation table
  • Fixed metadata dependencies

v1.0.0

  • Initial release

Make video content accessible. Watch less, learn more.

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,040
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,033
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,021
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,021
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,019
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,016
Skill 文件
  • SKILL.md
    • Video Summary Skill
    • What It Does
    • Quick Setup
      • Supported LLM Providers
      • Cookie Configuration (Optional)
      • Manual Trigger
    • Quick Start
      • Check Dependencies
      • Basic Usage
      • In OpenClaw Agent
    • Commands Reference
    • How It Works
      • Platform Support Matrix
      • Supported URL Formats
      • Processing Pipeline
    • Performance Estimation
      • Whisper Transcription Time
      • Subtitle Extraction Time
    • Advanced Configuration
      • Whisper for Transcription
      • OpenAI API for Summarization
      • Cookie Configuration for Restricted Content
      • Custom Summary Prompt
    • Output Formats
      • Standard Output (default)
      • JSON Output (--json)
    • Technical Details
      • Dependencies
      • File Structure
      • Environment Variables
    • Troubleshooting
      • "No subtitles found"
      • "yt-dlp: command not found"
      • "Missing required dependencies"
      • "Video too long"
      • "Failed to fetch video info"
      • "Rate limited"
    • Comparison
    • References
    • Contributing
    • Changelog
      • v1.6.4 (2026-03-13)
      • v1.6.3 (2026-03-12)
      • v1.6.2 (2026-03-12)
      • v1.6.1 (2026-03-12)
      • v1.6.0 (2026-03-12)
      • v1.5.1 (2026-03-12)
      • v1.5.0 (2026-03-12)
      • v1.4.6 (2026-03-12)
      • v1.3.6 (2026-03-10)
      • v1.3.5 (2026-03-09)
      • v1.3.0 (2026-03-08)
      • v1.2.2 (2026-03-08)
      • v1.2.1 (2026-03-08)
      • v1.2.0 (2026-03-08)
      • v1.1.0 (2026-03-08)
      • v1.0.0
  • 项目或源文件

相关 Skill

更多
公开课笔记 公开课笔记 Use when the user mentions 公开课笔记、网课笔记、视频笔记、course notes、lecture notes、video summary, or asks to take notes from online courses. NOT for 视频下载、字幕提取、课程推荐.
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...