Token导航 LogoToken导航TokenDH.com
开发操作浏览器github未标认证来源可访问许可证需确认审计提醒

youtube-video-analyzerYouTube 视频分析仪

Agent Skill

用于辅助视频生成、动画合成、脚本化剪辑或 Remotion 等视频项目开发。它适合让 Agent 组织镜头、生成素材说明、维护合成代码或排查渲染问题。使用时需要确认分辨率、时长、素材路径和导出格式;涉及外部素材、人物肖像或商业发布时,应先核对版权授权和内容审核要求。

总安装

404

周安装

17

GitHub Stars

1

下载量

141
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:youtube-video-analyzer(YouTube 视频分析仪)
来源仓库:https://github.com/chenxplorer/youtube-video-analyzer-skill
仓库路径:skills/youtube-video-analyzer
安装命令:
npx skills add https://github.com/chenxplorer/youtube-video-analyzer-skill --skill youtube-video-analyzer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/chenxplorer/youtube-video-analyzer-skill --skill youtube-video-analyzer

简介

YouTube Video Analyzer 通过场景检测与字幕对齐实现专业级视频内容分析。

  • 自动划分镜头段落并提取关键帧,支持多轨道素材的时间轴精准定位。
  • 适用于教学切片制作、影视素材整理与广告创意拆解等视频加工场景。
  • 需提前安装 yt-dlp 与 ffmpeg 工具链以保证完整功能正常运作。
  • youtube-video-analyzer 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

YouTube Video Analyzer

A professional YouTube video analysis assistant using scene detection + subtitle alignment + parallel analysis architecture.

Prerequisites

Before starting, ensure these tools are installed:

# Check installations
which yt-dlp    # Video/subtitle download
which ffmpeg    # Scene detection and frame extraction

# Install if missing (macOS)
brew install yt-dlp ffmpeg

# Or via pip
pip install yt-dlp

Complete Workflow

Phase 1: Setup and Download

# Create working directory
VIDEO_ID="[extract from URL]"
WORK_DIR="youtube_analysis_$VIDEO_ID"
mkdir -p $WORK_DIR/{video,subtitles,frames,output}

# Download video + subtitles + metadata in one call (fewer requests)
yt-dlp -f "worst[ext=mp4]/best[ext=mp4]" \
       --write-info-json \
       --write-auto-sub --write-sub \
       --sub-lang zh-Hans,zh,en \
       --convert-subs srt \
       --no-playlist \
       -o "$WORK_DIR/video/source.%(ext)s" \
       "YOUTUBE_URL"

# Move subtitles to subtitles/ and keep metadata.json
mv "$WORK_DIR/video/"*.srt "$WORK_DIR/subtitles/" 2>/dev/null || true
cp "$WORK_DIR/video/source.info.json" "$WORK_DIR/metadata.json" 2>/dev/null || true

Phase 2: Scene Detection and Frame Extraction

# Extract keyframes + timestamps in a single decode
ffmpeg -i $WORK_DIR/video/source.mp4 \
       -vf "select='gt(scene,0.3)',showinfo" \
       -vsync vfr \
       $WORK_DIR/frames/scene_%04d.jpg \
       2> $WORK_DIR/ffmpeg_scene.log

# Parse timestamps from log (no second decode)
grep "pts_time" $WORK_DIR/ffmpeg_scene.log | \
  sed 's/.*pts_time:\([0-9.]*\).*/\1/' > $WORK_DIR/frame_timestamps.txt

Scene threshold guidelines:

Video TypeThresholdDescription
Lectures/PPT0.2-0.3Fewer changes, capture slides
Technical tutorials0.25-0.35Code/UI changes
Vlogs/interviews0.3-0.4Moderate changes
Fast-paced/edited0.4-0.5Avoid too many frames

Phase 3: Subtitle Parsing and Alignment

Parse the SRT subtitle file and align with extracted frames:

  1. Read subtitle file from $WORK_DIR/subtitles/
  2. Parse timestamp format: 00:01:23,456 --> 00:01:25,789
  3. Match each frame timestamp to corresponding subtitle segment
  4. Create frame-subtitle pairs for analysis

Phase 4: Parallel Segment Analysis

Divide frames into segments (10-15 frames each) and analyze:

For each segment, use this prompt:

分析以下视频片段:

时间范围:{start_time} - {end_time}
帧图片:[Read the frame images]
字幕内容:
{subtitle_text}

请分析:
1. 每帧的视觉内容(图表、代码、流程图、UI等)
2. 结合字幕理解讲解要点
3. 提取关键概念和术语
4. 标注重要的视觉元素
5. 给出关键细节的解释或小结
6. 如果有步骤/代码,提炼可复现的操作点

输出格式:结构化笔记,标注时间戳

Parallel execution tips:

  • Cap concurrency (e.g., 3–5 segments at once) to avoid rate limits
  • Retry failed segments and merge results incrementally
  • Consider de-dup/contact-sheeting similar frames to reduce token use

Phase 5: Final Summary Generation

Merge all segment analyses and generate complete summary:

Use this prompt for final generation:

整合以下视频分析结果,生成完整的学习总结:

{all_segment_analyses}

**必须包含以下内容:**

1. 概览(中英双语)
2. 核心要点列表
3. 场景时间线表格
4. 关键视觉内容(引用帧图片)
5. 详细笔记(按章节组织)
6. 实践要点清单

**详细度要求:**
- 每个章节至少 3-5 条要点(包含解释、原因或影响)
- 对关键术语给出简短定义/释义
- 对关键步骤给出可复现的操作描述
- 重要结论尽量引用对应帧图(scene_XXXX.jpg)

**必须生成以下图表(Mermaid格式):**

1. **思维导图**(必须)- 展示知识结构
2. **时间线**(必须)- 展示内容分布
3. **流程图**(如有步骤/流程)
4. **概念关系图**(如有概念关联)

Phase 6: Final Deliverables (cleanup)

Keep only final artifacts:

  • Video file
  • Chinese/English subtitles (SRT)
  • Summary document
  • Frames referenced by the summary

Run:

./scripts/finalize.sh "$WORK_DIR" /path/to/summary.md

Use --keep-work to preserve intermediate files for debugging. When using this skill, always run finalize.sh after the summary is generated to remove intermediate artifacts.

Output Format Template

# [视频标题] 学习总结 / Learning Summary

## 概览 / Overview
[中英双语简介]

## 核心要点 / Key Takeaways
- 要点 1 / Point 1
- 要点 2 / Point 2
- 要点 3 / Point 3

## 知识结构图 / Knowledge Mind Map

mindmap root((视频主题)) 核心概念1 子概念A 子概念B 核心概念2 子概念C 实践要点 步骤1 步骤2


## 视频时间线 / Video Timeline

gantt title 视频内容时间线 dateFormat mm:ss section 引言 主题介绍 :00:00, 02:00 section 核心内容 概念讲解 :02:00, 15:00 section 总结 回顾要点 :15:00, 20:00


## 内容流程图 / Content Flowchart (如适用)

flowchart TD A[开始] --> B[步骤1] B --> C{判断条件} C -->|是| D[步骤2] C -->|否| E[步骤3] D --> F[结束] E --> F


## 概念关系图 / Concept Relationships (如适用)

graph LR A[概念A] --> B[概念B] A --> C[概念C] B --> D[概念D] C --> D


## 场景时间线 / Scene Timeline

| 时间 | 场景描述 | 关键内容 |
| --- | --- | --- |
| 00:15 | 标题页 | 主题介绍 |
| 02:30 | 代码演示 | 核心实现 |
| 05:45 | 架构图 | 系统设计 |

## 关键视觉内容 / Key Visuals

### [00:02:30] - 架构图

![架构图](/api/image-proxy?url=https%3A%2F%2Fgithub.com%2Fchenxplorer%2Fyoutube-video-analyzer-skill%2Fblob%2FHEAD%2F.%2Fframes%2Fscene_0005.jpg&s=4ab5235b703b9d9f) **分析 / Analysis**: [图片内容说明及重要性]

### [00:05:45] - 代码示例

![代码示例](/api/image-proxy?url=https%3A%2F%2Fgithub.com%2Fchenxplorer%2Fyoutube-video-analyzer-skill%2Fblob%2FHEAD%2F.%2Fframes%2Fscene_0012.jpg&s=4e90e0beed0d8c04) **分析 / Analysis**: [代码说明及要点]

## 详细笔记 / Detailed Notes

### 第一章:引言 [00:00 - 02:00]

[详细内容...]

### 第二章:核心概念 [02:00 - 10:00]

[详细内容...]

### 第三章:实践演示 [10:00 - 18:00]

[详细内容...]

### 第四章:总结 [18:00 - 20:00]

[详细内容...]

## 关键概念释义 / Key Terms

- 术语 1:解释
- 术语 2:解释

## 复现步骤 / Reproduction Steps

1. 步骤 1
2. 步骤 2
3. 步骤 3

## 常见误区 / Common Pitfalls

- 误区 1:说明
- 误区 2:说明

## 实践要点 / Action Items

- 实践项 1 / Action 1
- 实践项 2 / Action 2
- 实践项 3 / Action 3

## 相关资源 / Related Resources

- [链接1](https://github.com/chenxplorer/youtube-video-analyzer-skill/blob/HEAD/url) - 描述
- [链接2](https://github.com/chenxplorer/youtube-video-analyzer-skill/blob/HEAD/url) - 描述

Execution Tips

  1. Long videos (>30min): Increase scene threshold to 0.4-0.5 to reduce frame count
  2. No subtitles available: Use audio transcription or analyze frames only
  3. Too many frames: Manually select key frames or increase threshold
  4. Token limits: Process in smaller segments, summarize progressively
  5. Faster downloads: Use parallel fragments with yt-dlp (e.g., --concurrent-fragments 4)

Quick Start Script

Run the preprocessing script:

./scripts/preprocess.sh "YOUTUBE_URL"

Optional faster download (parallel fragments) and extra yt-dlp args:

YTDLP_CONCURRENT_FRAGMENTS=4 \
YTDLP_EXTRA_ARGS="--cookies-from-browser chrome" \
./scripts/preprocess.sh "YOUTUBE_URL"

Then analyze the extracted frames and subtitles using the prompts above, generate summary.md, and run finalize.sh to keep only deliverables.

Optional auto-finalize (if summary exists):

./scripts/preprocess.sh "YOUTUBE_URL" 0.3 /path/to/summary.md

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.56%
按下载量换算49

Claude

28.35%
按下载量换算40

Cursor

19.92%
按下载量换算28

Gemini CLI

10.24%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills