Skip to content
Skills Library
Personal productivity · Conversion & formats

video-note

/video-note

Convert any video (YouTube, Bilibili, local file) into a time-synchronized, illustrated Obsidian note with transcript text and key frame screenshots placed at corresponding positions. Triggers when: user wants to 'reconstruct' or 'restore' a video as a note, create an illustrated transcript, extract key frames with transcript, make a visual summary of a video, or says things like '视频复原', '图文复原', '视频笔记', '关键帧+字幕', 'video to illustrated note', 'visual transcript', '帮我把这个视频变成笔记', 'AI好记'. Even if the user just provides a video URL and says '帮我复原一下' or 'make a visual note', use this skill.

Licence
MIT
Last repository change
05.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
9
Scripts
3
HTML comments
0
URLs in SKILL.md
1
Deprecation

No signals detected. Repository changed on 05.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 3 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/curate_frames.py, scripts/gapfill_frames.py, scripts/video_to_note.py

What it does and when to use it

Convert any video (YouTube, Bilibili, local file) into a time-synchronized, illustrated Obsidian note with transcript text and key frame screenshots placed at corresponding positions. Triggers when: user wants to 'reconstruct' or 'restore' a video as a note, create an illustrated transcript, extract key frames with transcript, make a visual summary of a video, or says things like '视频复原', '图文复原', '视频笔记', '关键帧+字幕', 'video to illustrated note', 'visual transcript', '帮我把这个视频变成笔记', 'AI好记'. Even if the user just provides a video URL and says '帮我复原一下' or 'make a visual note', use this skill.

Triggers from the description

reconstructrestore视频复原图文复原视频笔记关键帧+字幕video to illustrated notevisual transcript
Original author description

Convert any video (YouTube, Bilibili, local file) into a time-synchronized, illustrated Obsidian note with transcript text and key frame screenshots placed at corresponding positions. Triggers when: user wants to 'reconstruct' or 'restore' a video as a note, create an illustrated transcript, extract key frames with transcript, make a visual summary of a video, or says things like '视频复原', '图文复原', '视频笔记', '关键帧+字幕', 'video to illustrated note', 'visual transcript', '帮我把这个视频变成笔记', 'AI好记'. Even if the user just provides a video URL and says '帮我复原一下' or 'make a visual note', use this skill.

How it works

  1. What It Does
  2. Usage
  3. Step-by-step Instructions for Claude
  4. Output Structure
  5. Dependencies
  6. Important Notes
Original SKILL.md headings · 154 lines, 2,039 words
SKILL.md preview
---
name: video-note
description: "Convert any video (YouTube, Bilibili, local file) into a
  time-synchronized, illustrated Obsidian note with transcript text and key
  frame screenshots placed at corresponding positions. Triggers when: user wants
  to 'reconstruct' or 'restore' a video as a note, create an illustrated
  transcript, extract key frames with transcript, make a visual summary of a
  video, or says things like '视频复原', '图文复原', '视频笔记', '关键帧+字幕', 'video to
  illustrated note', 'visual transcript', '帮我把这个视频变成笔记', 'AI好记'. Even if the
  user just provides a video URL and says '帮我复原一下' or 'make a visual note', use
  this skill."
metadata:
  copilot-enabled-agents: claude,opencode,codex
---

# video-note

Convert videos into time-synchronized, illustrated Obsidian notes — transcript text with key frame screenshots placed at the exact corresponding positions. Think of it as a faithful visual reconstruction of the video content.

## What It Does

The script at `scripts/video_to_note.py` (v6: slide-aware monotonic) handles the full pipeline:

1. **Download** video + subtitles via `yt-dlp` (YouTube, Bilibili, Douyin, Xiaohongshu, local files also supported)
2. **Extract transcript** with timestamps (SRT fallback chain: platform API → embedded → auto-generated → Soniox ASR)
3. **Dense frame extraction** at 2s intervals via FFmpeg (high recall — 2.5× v4's density)
4. **Laplacian-variance blur filter** drops the bottom percentile of blurry/transition frames
5. **Slide-aware grouping** with **multi-anchor pHash** (the key innovation): groups consecutive frames that belong to the same logical slide (across slide-build animations), keeping only the LAST frame of each group = the most-complete state. Multi-anchor compares each new frame to ALL hashes seen in the current group, so monotonic build progressions stay merged into one group instead of being split.
6. **AI batch curation** via OpenRouter (DeepSeek V4.1 Flash vision, effort=high) — drops pure-speaker / title-card / b-roll frames; carries cross-batch reference thumbnails to prevent re-selecting recently-kept content
7. **Global pHash dedup** O(N²) on the AI-selected set — catches recurring slides across distant time
8. **Merge** transcript + selected frames into a time-synchronized Obsidian markdown note
9. **Post-review** — AI reads the note in chunks and flags low-value frames into a "建议删除" section. Five categories: A=标题卡 / B=空镜 / C=无关 / D=重复 / E=过渡(中间步骤)

Two complementary post-generation passes (run by Claude, not the script) then finish the job: the **Visual Curation Pass** removes frames that don't earn their place (over-inclusion), and the **Gap-Fill Pass** recovers key frames the sampling/curation pipeline missed (omission) by going back to the video for suspicious gaps and cross-checking candidates against the kept frames.

The final deliverable is a second note: the **Structuring Pass** turns the curated transcript + frames into a Chinese structured note per `smart prompts/Input Structuring/Video Content (transcript + Screenshots) Structuring - CN.md`. The illustrated transcript stays as its `based_on` source.

Empirical benchmark on a 28min slide-heavy presentation: v6 keeps ~92 frames (after accepting AI flags) vs v4's ~182 — 50% reduction in redundancy, while explicitly identifying the transitional/duplicate frames v4 cannot detect.

> **Standard workflow note:** steps 6 & 9 are the script's *built-in* model curation (DeepSeek V4.1 Flash) — a useful but coarse filter. The **authoritative** curation is the **Visual Curation Pass** run after generation, where Claude's own vision reviews every kept frame via parallel subagents (catching solo-speaker portraits, wide "远景" establishing shots, and redundant video-clip frames the in-script pass misses, and recovering real slides it mislabels). It runs **by default** and **replaces** the in-script post-review (so the pipeline is invoked with `--no-review`). See step 3 below and **`references/visual-curation.md`**.

## Usage

Run from vault root, with a `python3` that has the required packages (see `README.md` in this folder; a venv such as `~/.venvs/jarvis-skills/bin/python` works). The AI steps need `OPENROUTER_API_KEY` in the environment; `--no-ai --no-review` runs without any key:

```bash
# From a URL (YouTube, Bilibili, etc.)
python3 copilot/skills/video-note/scripts/video_to_note.py "https://www.youtube.com/watch?v=VIDEO_ID"

# From a local video file
python3 copilot/skills/video-note/scripts/video_to_note.py "/path/to/video.mp4"

# Tune slide-grouping aggressiveness (default: 14; higher = more aggressive merging)
python3 copilot/skills/video-note/scripts/video_to_note.py "URL" --slide-threshold 18

# Switch back to forward-anchor (legacy, splits slide builds more)
python3 copilot/skills/video-note/scripts/video_to_note.py "URL" --anchor-mode forward

# Disable slide-grouping entirely (similar behavior to v4)
python3 copilot/skills/video-note/scripts/video_to_note.py "URL" --no-slide-group

# Custom dense extraction interval (default: 2s — finer than v4's 5s)
python3 copilot/skills/video-note/scripts/video_to_note.py "URL" --interval 3

# Skip post-review (faster, no D/E flagging)
python3 copilot/skills/video-note/scripts/video_to_note.py "URL" --no-review

# Skip AI curation entirely
python3 copilot/skills/video-note/scripts/video_to_note.py "URL" --no-ai
```

## Step-by-step Instructions for Claude

1. **Identify the video source**: Extract the URL or local file path from the user's message.

2. **Run the script** with `--no-review` using Bash. Processing time depends on video length — typically 5-10 minutes for a 30-minute video, plus download time for URL sources. Pass `--no-review` because the Visual Curation Pass (step 3) supersedes the in-script "建议删除" flagging.

   **Videos up to ~10 minutes**: run in the foreground with the command timeout raised to 10 minutes.

   ```bash
   python3 copilot/skills/video-note/scripts/video_to_note.py "URL_OR_PATH" --no-review
   ```

   **Longer videos, or any run that may not finish within 10 minutes** (slow download, live replay): start the script as a detached process, then wait for it by polling in the foreground. Keep the log and pid file in this task's `.tmp/<task>/` directory.

   ```bash
   # Start detached. Extra flags go after --no-review, inside the single quotes.
   LOG=.tmp/<task>/video_to_note.log; PIDF=.tmp/<task>/video_to_note.pid
   nohup sh -c 'python3 -u "$0" "$1" --no-review; echo "EXIT:$?"' copilot/skills/video-note/scripts/video_to_note.py "URL_OR_PATH" > "$LOG" 2>&1 < /dev/null &
   echo $! > "$PIDF"
   ```

   ```bash
   # Poll. One call waits at most ~9 minutes (command timeout: 10 minutes); repeat it until the log ends with an EXIT line.
   LOG=.tmp/<task>/video_to_note.log; PIDF=.tmp/<task>/video_to_note.pid
   for i in $(seq 18); do grep -q '^EXIT:' "$LOG" && break; kill -0 "$(cat "$PIDF")" 2>/dev/null || break; sleep 30; done; tail -n 5 "$LOG"
   ```

   `=== DONE (v6) ===` followed by `EXIT:0` means success. Any other `EXIT:` value, or a dead process with no `EXIT:` line, is a failure: read the log before rerunning.

   Never run this script as a harness background task (`run_in_background` or its equivalent), and do not end your turn while it is running. Reason: harness background tasks are stopped when the turn ends or at the background time limit, and a detached process sends no completion notice, so nothing would resume the workflow. When the script finishes, continue with step 3 in the same turn without asking the user. Use the same detached-and-poll pattern for any other command in this skill that may run longer than 10 minutes.

3. **Visual Curation Pass — always run this.** The model curation inside the script is only a coarse filter; on slide / keynote / long videos it leaves solo-speaker portraits, wide "远景" establishing shots, and redundant video-clip frames behind, and occasionally drops a real slide. Claude's own vision, applied per-frame via parallel subagents, is the decisive quality step that makes the note genuinely information-dense. **Read `references/visual-curation.md` and follow it**: `curate_frames.py plan` → dispatch one vision subagent per batch (aggressive rubric by default) → aggregate their DELETE lists → `curate_frames.py apply` (removes embeds, moves PNGs to a recoverable trash, runs an integrity check) → `curate_frames.py verify`. Deletions are reversible with `curate_frames.py recover`.
   - Default strictness is **aggressive**; honor the user's bar if they ask for `standard`/`gentle`, calibrate to any frames they point at, and offer a stricter re-run.
   - This pass views every frame, so it is token-heavy — say so when you report.

4. **Gap-Fill Pass — always run `analyze`; escalate only when warranted.** Curation fixes over-inclusion; this fixes *omission* — interval sampling or a curation false positive can lose a key chart/slide entirely (e.g. an annotated die shot inside a 2-minute frameless stretch). **Read `references/gap-fill.md` and follow it**: `gapfill_frames.py analyze "<note>"` (free, text-only) → read `.gapfill/gaps.md` and judge which gaps' transcripts describe something visual (deixis like "看到/this chart", dense spec/number enumeration, a narrated demo) → for those windows only, `gapfill_frames.py extract --windows "..."` (URL sources download **only the needed sections** via yt-dlp; candidates are pHash cross-checked against all kept frames so already-represented content never resurfaces) → vision subagents approve only candidates that add genuinely new readable content vs their neighboring kept frames → `gapfill_frames.py insert` places approvals at time-correct positions → `gapfill_frames.py cleanup`. Zero candidates / zero worthwhile gaps is a normal, reportable outcome — never force an insertion.
   - Caveat: notes generated from **local files** often have a dead `source:` path (the temp video is deleted). Ask the user for the file or the original URL and pass it via `--video` / re-supply.

5. **Structuring Pass — always run after step 4, in the same turn, without asking the user.** **Read `references/structuring.md` and follow it**: read the structuring prompt in full → collect what every kept frame shows (Read frames with numbers/key text yourself) → write the structured note into the same `※INBOX/video-note-{title}-v6/` folder with every kept frame embedded exactly once → run the self-check script and fix every hit before reporting. The illustrated transcript note is not edited.

6. **Report results** to the user:
   - The structured note first, then the output folder + illustrated note as wikilinks: `[[※INBOX/video-note-{title}-v6/{title}.md]]`
   - The frame funnel **including both passes** (extracted → dedup → model-curated → visually curated → **gap-filled total**), which categories curation cut, and which gaps were probed/filled (or confirmed talk-only)
   - That dropped frames are recoverable from `.curation_trash/`
   - ASR-uncertain names/terms flagged in the structured note
   - Filing candidates for both notes (follow the vault's filing rules if its agent rules file has them); do not move them until the user chooses
   - If any steps failed, explain clearly

7. **If the user wants adjustments**:
   - Too few frames / a real slide got cut → `curate_frames.py recover "<note>" --frames <names>` if it's in trash; if it was never extracted, run the Gap-Fill Pass on that time window (`gapfill_frames.py extract --windows "..."`); or re-extract denser with `--interval 3`
   - Too many frames remain → re-run the curation pass stricter (or raise `--phash-global-threshold 10` and regenerate)
   - Curation too aggressive overall → re-run at `standard`/`gentle` strictness, or `recover` whole categories
   - Want all frames, no filtering → `--no-ai` and skip the curation pass

## Output Structure

```
※INBOX/video-note-{title}-v6/
├── {title}.md          # The illustrated note (with 建议删除 section at bottom)
├── <事件> - <讲者> - <叙述性标题> - YYYYMMDD.md   # Structured note (step 5), based_on {title}
└── frames/
    ├── frame_00m15s_ac45f533.png
    ├── frame_01m30s_ac45f533.png
    └── ...   # the 8-hex suffix is a per-video tag (see Frame naming below)
```

The markdown note ends with a "建议删除" section listing frames the AI flagged as low-value:
- **Category A** — 标题卡/大字: frames showing only a few large words
- **Category B** — 空镜头/B-roll: generic scenery, stock footage
- **Category C** — 无关内容/娱乐: memes, decorative, not relevant to content

Each flagged frame includes its original position and reason, so the user can decide whether to keep or remove it.

## Dependencies

The script tries once to auto-install missing Python packages. Homebrew and many system Pythons refuse that (`externally-managed-environment`); the script then exits with venv instructions (see `README.md`). System requirements:
- `ffmpeg` and `ffprobe` (must be on PATH — install via `brew install ffmpeg`)
- `yt-dlp` (pip or brew), recent enough to accept `--remote-components`; YouTube downloads also need the `deno` JavaScript runtime
- Python 3.9+ (3.10+ recommended; current yt-dlp releases need it)

Python packages (auto-install attempted if missing):
- `pysrt` — SRT subtitle parsing
- `requests` — API calls
- `Pillow` — image processing
- `imagehash` — perceptual hash deduplication
- `numpy` — blur scoring

## Important Notes

- **All AI calls use OpenRouter** (DeepSeek V4.1 Flash vision, `deepseek/deepseek-v4.1-flash-1017`, reasoning effort `high`, max_tokens at the model's native 384K maximum, provider routing sorted by throughput; switched from Gemini 2.5 Flash on 2026-09-10) — the API key is read from `OPENROUTER_API_KEY`; without it the script exits at start unless both AI steps are off (`--no-ai --no-review`). Override per run with `STRUCTURING_MODEL` / `STRUCTURING_EFFORT` / `STRUCTURING_MAX_TOKENS` env vars (e.g. rollback: `STRUCTURING_MODEL=google/gemini-2.5-flash STRUCTURING_MAX_TOKENS=65536`).
- **Local files**: Pass the absolute path. The script detects local files vs URLs automatically. A sibling `<same name>.srt` next to the video is used as the transcript.
- **Cookies**: pass `--cookies-from-browser chrome` (or `edge`, `firefox`, `safari`…) when a platform needs a logged-in session; default is no cookies.
- **Subtitle fallback**: If no subtitles are available from the platform, the script will fall back to Soniox cloud ASR (`stt-async-v6`). This requires the `SONIOX_API_KEY` environment variable; the script extracts an MP3, uploads it to `/v1/files`, submits an async transcription, polls until completion, and rebuilds timestamped segments from the returned tokens.
- **Frame naming**: Frames are named by their timestamp plus an 8-hex per-video tag (e.g., `frame_05m30s_ac45f533.png`). The tag is an MD5 hash of the output folder name (unique per video / per re-run), so frames from different videos never collide by filename — important because Obsidian resolves `![[...]]` embeds by filename, so two videos both producing `frame_05m30s.png` would otherwise alias to the same image.
- **Idempotent output**: If the output folder already exists, a numeric suffix is added.
- **Post-review parallelism**: The review step processes frame chunks in parallel (default 3 concurrent API calls) for speed.
Files in this package (9)
  • README.en.md 11 KB
  • README.md 10 KB
  • SKILL.md 15 KB
  • references/gap-fill.md 8 KB
  • references/structuring.md 4 KB
  • references/visual-curation.md 12 KB
  • scripts/curate_frames.py 11 KB
  • scripts/gapfill_frames.py 18 KB
  • scripts/video_to_note.py 44 KB

Versions

RepositoryScoreLicence
This page · jasonzhang-obsharing/jarvis-skills-and-prompts100MIT
abcamus/sync-vault-skills100MIT

Database snapshot: 13.11.2026 · package version 86421c6a68d1 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100yt-transcript
    Process YouTube and Bilibili video transcripts into structured Obsidian notes. Triggers when the user provides YouTube or Bilibili URL(s) and asks to process, structure, or summarize the transcript. Also triggers on: 'YouTube transcript', 'YouTube结构化', 'B站结构化', '视频转录',…
  • 95youtube-fetcher
    Retrieve transcripts from YouTube, Instagram, TikTok, X, Vimeo and other video sites, summarize or analyze what was said (and shown on screen), or save an Obsidian-ready Markdown knowledge-base note with captions or a Whisper transcript, creator metadata, frames, language, and…
  • 100youtube-summary
    Summarize a YouTube video from its transcript into a concise Markdown note with a TL;DR, key points and timestamps, then save it to the notes folder set by YOUTUBE_SUMMARY_DIR (for example an Obsidian inbox) or print it in chat. Use when the user shares a YouTube URL and wants a…
  • 100meeting
    Turn a raw meeting / call / 1:1 transcript or notes into a structured Meetings note with key points and action items. Use when /meeting is invoked, when the user says "process this meeting", "clean up these notes", "extract action items from this", or pastes a raw conversation…
  • 100video2obsidian
    把视频转成 Obsidian 笔记。当用户说「转视频为笔记」「把这个视频转成笔记」「视频转 Obsidian」「整理这条视频」,或直接发来抖音 / B站 / YouTube / 微博等视频链接(含 App 分享文案)时使用。执行 python main.py "<链接>",自动完成下载、本地离线转写、AI 重构并写入 Obsidian 知识库。
  • 100youtube-summary
    Summarize a YouTube video into structured notes — TL;DR, key takeaways, chapter-by-chapter breakdown, and reference links. Use when the user shares a YouTube URL (or invokes `/youtube-summary <url>`) and wants a summary, takeaways, transcript notes, or a write-up of a talk,…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.