extract-youtube-slides

A tool that automatically crops frames from YouTube lecture videos, detects slide-change points, de-duplicates, and reconstructs complete projected slides.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "extract-youtube-slides" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-2e294ee48f6634f2fa327ea50aa5b5ece82a380d7d10788084e46e142a1edd87. Verify the upstream source and version against https://skillhub.cn/skills/user_844ab8f0/extract-youtube-slides before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

A tool that automatically crops frames from YouTube lecture videos, detects slide-change points, de-duplicates, and reconstructs complete projected slides.

0 Downloads

Introduction source: third_party · user_844ab8f0 · 1.0.0 Reference

SkillPi interpretation

Tasks
Extract, crop, deduplicate, timestamp, and package presentation slides shown in YouTube talks or local conference recordings. Use when a user provides a YouTube/video URL or local video and asks to recover the speaker's projected deck, extract ordered slide images, identify slide-change timestamps, create a contact sheet, or produce a pixel-faithful HTML or image-based PowerPoint reconstruction.
Inputs and outputs
Produce these unless the user narrows the request: ordered slide PNG files with timestamps in the filenames; `slides.json` containing order, timestamps, source, crop, and extraction settings; a timestamped contact sheet for review; `SOURCE.md` distinguishing official material from reconstruction; Generate these only when requested: a pixel-faithful 16:9 HTML projection deck; an image-based PPTX containing one recovered screenshot per slide; `transcript-by-slide.md` as optional evidence for locating missed pages.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: extract-youtube-slides
description: Extract, crop, deduplicate, timestamp, and package presentation slides shown in YouTube talks or local conference recordings. Use when a user provides a YouTube/video URL or local video and asks to recover the speaker's projected deck, extract ordered slide images, identify slide-change timestamps, create a contact sheet, or produce a pixel-faithful HTML or image-based PowerPoint reconstruction.
slug: extract-youtube-slides
version: 1.0.0
displayName: YouTube 幻灯片提取
summary: 从 YouTube 演讲视频中自动裁切、识别换页、去重并恢复完整投屏幻灯片
tags: [youtube, slides, presentation, video, extraction]

Extract YouTube Slides

Recover a projected slide deck from a talk video while preserving provenance, timestamps, and visual fidelity. Treat frame extraction as reconstruction, not as access to the speaker's original editable deck.

Core rules

  1. Search the video description, speaker page, event page, and official repositories for an original PPTX, Keynote, PDF, or slide link before extracting frames.
  2. Prefer the official deck when it exists. Record the official source and do not run video reconstruction unnecessarily.
  3. When using video frames, call the result a video projection reconstruction or 投屏截图复原版. Never call it the official original PPT.
  4. Preserve the source URL, video title, speaker/channel, crop rectangle, timestamps, sampling settings, and extraction date.
  5. Deduplicate adjacent frames only. Preserve a slide that reappears later in the talk.
  6. Use automated detection to create candidates, then visually review every final slide at full resolution.

Read references/workflow.md before performing a full extraction or packaging the recovered slides as an HTML/PPTX deck.

Default outputs

Produce these unless the user narrows the request:

  • ordered slide PNG files with timestamps in the filenames;
  • slides.json containing order, timestamps, source, crop, and extraction settings;
  • a timestamped contact sheet for review;
  • SOURCE.md distinguishing official material from reconstruction;

Generate these only when requested:

  • a pixel-faithful 16:9 HTML projection deck;
  • an image-based PPTX containing one recovered screenshot per slide;
  • transcript-by-slide.md as optional evidence for locating missed pages.

Workflow

1. Inspect and acquire the source

  • Verify yt-dlp, ffmpeg, ffprobe, Python 3, and Pillow before downloading or processing.
  • For a YouTube URL, retain metadata and timestamped subtitles:
yt-dlp \
  --write-info-json \
  --write-subs --write-auto-subs \
  --sub-langs "zh-Hans,zh,en.*" \
  --sub-format vtt \
  -f "bv*+ba/b" \
  -o "source/%(title)s.%(ext)s" \
  "<youtube-url>"
  • If the video cannot be downloaded, use an authenticated browser only as a fallback. Record that seek-based timestamps may be approximate.

2. Identify the projection crop

  • Extract several full-frame previews from the beginning, middle, and end.
  • Inspect them visually and determine the stable projection rectangle.
  • Crop before detecting changes. Speaker movement, audience shots, and camera cuts create false changes when detection runs on the full stage frame.
  • If the layout changes, split the talk into time ranges and run separate crop settings.

3. Extract and deduplicate candidates

Use the bundled script on a local video:

SKILL_DIR="${CODEX_HOME:-$HOME/.codex}/skills/extract-youtube-slides"

python3 "$SKILL_DIR/scripts/extract_slide_frames.py" \
  --video source/talk.mp4 \
  --out output/talk-slides \
  --crop "x:y:w:h" \
  --sample-every 2 \
  --change-threshold 10 \
  --stable-samples 2 \
  --min-slide-seconds 3 \
  --transcript source/talk.en.vtt \
  --source-url "<youtube-url>"

Start with a 2–3 second interval for reliable recovery. Use 5–7 seconds only for coarse reconnaissance, then re-run at 1–2 seconds around rapid slide changes, code demos, or progressive reveals. The bundled difference detector is a recommended implementation; tune it per video rather than treating one threshold as universal.

4. Curate visually

  • Review the contact sheet, then inspect each candidate at full resolution.
  • Remove player controls, cursor overlays, transition frames, partial animations, stage shots, and duplicates.
  • Default to the final stable state of incremental bullet or code builds. Preserve meaningful builds when the explanation depends on them.
  • Perform targeted re-extraction around missing or fast pages instead of lowering thresholds globally.
  • Rename the curated set sequentially while retaining timestamps.

5. Use timestamps or subtitles to check gaps

  • Preserve slide-change timestamps even when no transcript is available.
  • When timestamped VTT/SRT exists, use it only as supporting evidence to locate rapid changes or missing pages.
  • Let the extraction script optionally attach transcript cues between each slide start and the next slide start.

6. Build a pixel-faithful projection deck

python3 "$SKILL_DIR/scripts/build_projection_deck.py" \
  --manifest output/talk-slides/slides.json \
  --out output/talk-slides/projection.html

Keep each recovered slide as a full-slide image. This is more faithful than retyping the deck and should be the default reconstruction.

7. Build an image-based PPTX only when requested

  • Load the presentations skill before creating or editing PPTX files.
  • Use @oai/artifact-tool; do not use python-pptx.
  • Match the recovered slide aspect ratio and place exactly one screenshot edge-to-edge on each slide.
  • Preserve the curated order and do not add any new content, logos, notes, or decorative elements.
  • Keep the images unmodified except for necessary uniform scaling or letterboxing.
  • Render the PPTX and compare every page with the curated PNG source before delivery.

Failure handling

  • If no clean projection crop exists, report that faithful recovery is not possible and identify the recoverable time ranges.
  • If subtitles have no timestamps, omit transcript alignment; slide extraction can still proceed from video frames.
  • If the talk uses frequent camera cuts, process only ranges with a clear projection view and document gaps.
  • Do not fabricate unreadable slide text. Flag low-confidence pages and retain the best source frame.

Bundled resources

  • scripts/extract_slide_frames.py: sample, crop, detect stable slide changes, export ordered slides, and create a contact sheet plus provenance; VTT/SRT alignment is optional.
  • scripts/build_projection_deck.py: build a keyboard-navigable, pixel-faithful HTML deck from slides.json.
  • references/workflow.md: detailed acquisition, crop calibration, candidate curation, packaging, and QA guidance based on the Fable reconstruction case.

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 解决从 YouTube 演讲视频恢复投屏幻灯片的明确高频需求
  • 功能闭环完整,支持自动裁切、换页识别、去重和时间戳恢复
Trigger Precision95/100

Highlights

  • 触发词精准覆盖多种场景:提取幻灯片、识别换页时间戳、生成 HTML/PPTX 重建等
Structure and Standards90/100

Areas to improve

  • description写错位置 Reported severity: Minor

    顶层 frontmatter 中 description 字段为空,实际描述内容位于 skill_body 内部

    Recommendation: 将 description 内容移至顶层 frontmatter 的 description 字段,确保触发系统能正确读取

Highlights

  • Workflow 分阶段清晰,含完整命令行示例和出口条件
  • frontmatter 完整,文档结构规范,便于用户理解和执行
Execution Reliability88/100

Highlights

  • 工具链来源明确(yt-dlp, ffmpeg, Python, Pillow),参数设置合理
  • 覆盖主要异常场景并提供 fallback 方案,bundled 脚本路径清晰可靠
Evidence Verifiability (mean of the first four)91/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.