course-media-to-notes
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 "course-media-to-notes" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-fb6874521ad1f15cade134b0832d4cc624796c22a4b87e47efe64cf3445f13de. Verify the upstream source and version against https://skillhub.cn/skills/user_82d22b66/course-media-to-notes 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
Organize course videos, audio, lecture PDFs, images, and subtitles into a standard course asset catalog and generate a Chinese "Course Notes.md." Applicable to MP4/MOV videos, audio courses, PPT or screen-recorded lessons, existing PDF/images/SRT subtitles, and mixed materials. Can extract text from lecture PDFs, call OpenAI-compatible ASR to transcribe audio, build a notes asset bundle, and guide an agent to write reader-facing course notes. Final note writing depends on the executing agent's multimodal capabilities; non-multimodal agents may only use extractable PDF text and subtitles and must not claim understanding of screenshots, charts, or scanned pages.
Introduction source: third_party · user_82d22b66 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Translation pending; see source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: course-media-to-notes
description: 将课程视频、音频、讲义 PDF、图片和字幕整理为标准课程素材目录,并生成中文《课程笔记.md》。适用于处理 MP4/MOV 课程视频、音频课程、PPT 或屏幕录制课程、已有 PDF/图片/SRT 字幕,以及混合课程素材;可提取课件 PDF、调用 OpenAI 兼容 ASR 接口转写音频、构建笔记素材包,并指导执行 agent 写出面向读者的课程笔记。最终笔记写作依赖执行 agent 的多模态能力;非多模态 agent 只能使用可提取 PDF 文本和字幕,不应声称理解截图、图表或扫描页面。课程媒体转笔记
概览
使用本 skill 将课程媒体整理为标准课程目录,并生成 课程笔记.md。保持流程解耦:
- 视频视觉提取:视频/PPT 风格画面 ->
课程讲义.pdf和images/。 - 音频 ASR:视频/音频 ->
字幕.srt、字幕.txt和work/asr_chunks.json。 - 笔记写作:
课程讲义.pdf+images/+ 字幕素材包 ->课程笔记.md。
脚本只负责准备素材;最终笔记由执行 agent 编写。
能力边界
写笔记前,先确认执行 agent 是否能查看图片或渲染后的 PDF 页面:
- 如果支持多模态:结合
images/、渲染后的 PDF 页面、可提取 PDF 文本和字幕文本。 - 如果不支持多模态:只使用可提取 PDF 文本、
字幕.srt、字幕.txt和work/note_source_pack.json;不要声称理解截图、图表、流程图或扫描页面。 - 如果唯一视觉来源是扫描版/纯图片 PDF,且 agent 没有多模态或 OCR 能力:生成仅基于字幕的笔记,并自然说明未纳入可见课程材料。
当接收方模型能力未知时,先阅读 references/multimodal-boundary.md。
依赖
运行脚本前确认本机已安装 ffmpeg/ffprobe,并在当前 Python 环境安装 requirements.txt 中的依赖。别人从 GitHub 下载本 skill 后,可在 skill 根目录运行:
pip install -r requirements.txt
提取视频画面和课程图片需要这些组件:
ffmpeg/ffprobe:读取媒体流、检查视频/音频信息,并为转写切分音频。opencv-python和numpy:抽取视频帧、判断 PPT/课件类画面、去重相似页面。Pillow:保存课件图片、生成课程讲义.pdf和 contact sheet。PyMuPDF:从生成或已有 PDF 中提取文本预览,用于构建work/note_source_pack.json。
工作流程
- 盘点输入路径。遇到原始媒体文件时,先运行
scripts/inspect_media.py。 - 输入为视频或音频时,使用
scripts/prepare_course_from_media.py准备标准课程目录。 - 如果视频有音频,转写视频/音频来源,并独立判断是否适合提取视觉材料。
- 如果视频没有音频,查找显式传入的
--audio或同名音频文件。没有音频时,可在有价值时提取视觉材料,但不要写完整笔记。 - 对非 PPT 类视频默认跳过视觉提取,除非用户明确要求强制提取。
- 如果
字幕.srt已存在,复用现有字幕;除非用户要求重新生成,否则不要重新运行 ASR。 - 使用
scripts/build_source_pack.py构建或刷新work/note_source_pack.json。 - 写
课程笔记.md前,先阅读references/note_template.md。
标准课程目录:
course/
├── source/
│ ├── lecture.mp4
│ └── lecture.m4a
├── 课程讲义.pdf
├── 字幕.srt
├── 字幕.txt
├── images/
├── work/
│ ├── media_manifest.json
│ ├── asr_chunks.json
│ └── note_source_pack.json
├── course.json
└── 课程笔记.md
常用命令
ASR 配置优先从环境变量读取,命令中通常不需要写死服务地址:
export ASR_BASE_URL="https://your-asr.example.com/v1"
export ASR_MODEL="qwen3-asr"
export ASR_API_KEY="your-api-key-if-required"
当前 ASR endpoint 为 ${ASR_BASE_URL}/audio/transcriptions。如果 ASR 服务不需要鉴权,可以不设置 ASR_API_KEY。
准备单个视频或音频文件:
python3 scripts/prepare_course_from_media.py "lecture.mp4" \
--course-dir output/courses/lecture
准备无声视频并指定独立音频:
python3 scripts/prepare_course_from_media.py "lecture.mp4" \
--audio "lecture.m4a" \
--course-dir output/courses/lecture
只检查媒体,不生成准备输出:
python3 scripts/inspect_media.py "lecture.mp4"
直接运行 ASR:
python3 scripts/transcribe_media.py "lecture.mp4" \
--course-dir output/courses/lecture \
--chunk-seconds 60
为已准备好的课程目录构建笔记素材包:
python3 scripts/build_source_pack.py --course-dir output/courses/lecture
决策规则
- 有音频且画面类似 PPT 的视频:提取课件、转写音频;在支持多模态时编写多模态笔记。
- 有音频但画面不像 PPT 的视频:只转写音频,并编写基于字幕的笔记。
- 无音频但有配套音频的视频:仅在画面类似 PPT 时提取视觉材料,转写配套音频后再写笔记。
- 无音频且无配套音频的视频:只准备视觉输出;写笔记前告诉用户缺少音频/字幕。
- 纯音频输入:转写音频,并编写基于字幕的笔记。
- 已有 PDF/图片和 SRT:跳过媒体准备,直接构建素材包。
调整视频提取参数时,阅读 references/lecture-video-heuristics.md。
确认笔记输出要求时,阅读 references/note_template.md。
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决课程多媒体素材整理与笔记生成的实际需求,适用于教育、学习、知识管理等高频场景
- 功能闭环完整,支持视频、音频、PDF、图片、字幕等多种输入格式,输出标准化课程目录与笔记
Highlights
- description 详细覆盖多种媒体格式与处理场景,触发词精准完整
- 明确区分多模态与非多模态 agent 的能力边界,避免误用
Areas to improve
-
缺少 When to Use 显式章节 Reported severity: Minor
文档未设置显式的 When to Use 章节,但使用场景已融入概览与决策规则部分
Recommendation: 建议增加显式的 When to Use 章节以提升可读性
Highlights
- 文档结构清晰,包含完整的工作流程、依赖说明、常用命令和决策规则
- 提供了详细的目录结构和命令示例,便于用户快速上手
Highlights
- 依赖明确,工具来源清晰,ASR 配置通过环境变量管理
- 覆盖了主要异常场景(无声视频、已有字幕、多模态能力判断),逻辑完整
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.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 33 -
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 80 -
Screenshots or screen capture
Capture only a selected window or region. Avoid secrets and private records and review captures before sharing.
Mentioned in main document · lines 3
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- your-asr.example.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Translation pending; see source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.