extract-youtube-slides
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "extract-youtube-slides":https://skillpi.com/zh/skills/deepskill-2e294ee48f6634f2fa327ea50aa5b5ece82a380d7d10788084e46e142a1edd87。安装前核对上游来源和版本:https://skillhub.cn/skills/user_844ab8f0/extract-youtube-slides。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
skillhub.cn
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
从 YouTube 演讲视频中自动裁切视频帧、识别换页点、去重并恢复完整投屏幻灯片的工具。
介绍来源: third_party · user_844ab8f0 · 1.0.0 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 输入和输出
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
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
- Search the video description, speaker page, event page, and official repositories for an original PPTX, Keynote, PDF, or slide link before extracting frames.
- Prefer the official deck when it exists. Record the official source and do not run video reconstruction unnecessarily.
- When using video frames, call the result a video projection reconstruction or 投屏截图复原版. Never call it the official original PPT.
- Preserve the source URL, video title, speaker/channel, crop rectangle, timestamps, sampling settings, and extraction date.
- Deduplicate adjacent frames only. Preserve a slide that reappears later in the talk.
- 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.jsoncontaining order, timestamps, source, crop, and extraction settings;- a timestamped contact sheet for review;
SOURCE.mddistinguishing 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.mdas 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
presentationsskill before creating or editing PPTX files. - Use
@oai/artifact-tool; do not usepython-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 fromslides.json.references/workflow.md: detailed acquisition, crop calibration, candidate curation, packaging, and QA guidance based on the Fable reconstruction case.
当前收录版本
1.0.0
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 解决从 YouTube 演讲视频恢复投屏幻灯片的明确高频需求
- 功能闭环完整,支持自动裁切、换页识别、去重和时间戳恢复
亮点
- 触发词精准覆盖多种场景:提取幻灯片、识别换页时间戳、生成 HTML/PPTX 重建等
待提升项
-
description写错位置 原报告严重程度:轻微
顶层 frontmatter 中 description 字段为空,实际描述内容位于 skill_body 内部
改进建议:将 description 内容移至顶层 frontmatter 的 description 字段,确保触发系统能正确读取
亮点
- Workflow 分阶段清晰,含完整命令行示例和出口条件
- frontmatter 完整,文档结构规范,便于用户理解和执行
亮点
- 工具链来源明确(yt-dlp, ffmpeg, Python, Pillow),参数设置合理
- 覆盖主要异常场景并提供 fallback 方案,bundled 脚本路径清晰可靠
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。