Video notes sidebar panel for Bilibili and YouTube: captures subtitles and 4-12 adaptive keyframes via Ego Lite, classifies into four editorial genres (postmortem, tutorial, talk, news), renders standalone Quick/Deep HTML with Shadow DOM preview, and exports PDF, Markdown, or chat references.
Install
# from a prebuilt release tarball
dsh plugin --profile web add -w "https://github.com/Nixz0824/dsh-video-notes/releases/download/v0.9.0/dsh-video-notes-0.9.0.tgz"
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:Nixz0824/dsh-video-notes
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
在 DeepSeek Harness (DSH) 左侧栏新增「视频笔记」面板:粘贴 B站 / YouTube 链接(或直接输入一句关键词搜索 B站),无需下载整条视频、无需导出 Cookie,自动提取字幕与 4–12 张无遮挡关键帧,生成单文件可离线阅读的 HTML 笔记,并支持一键导出 PDF / Markdown 与引用到当前对话。
A DeepSeek Harness sidebar plugin that turns Bilibili & YouTube links (or natural-language search queries) into standalone Quick / Deep editorial HTML notes with inline timecoded keyframes, PDF/Markdown export, and chat quotation—without downloading full videos or exporting browser cookies.
效果预览 · Screenshots
面板界面(自动跟随 DSH 浅色 / 深色主题)
| 浅色主题 · Light Mode | 深色主题 · Dark Mode |
|---|---|
生成的独立 HTML 笔记(同一文件内置「速览 / 精读」双密度切换)
为什么好用 · What Makes It Different
| 维度 | 常见视频总结工具 | dsh-video-notes |
|---|---|---|
| 字幕获取 | 依赖第三方解析站,常需导出 Cookie | 复用本机 Ego Lite 登录态直接拦截播放器字幕轨(含 YouTube pot 令牌适配),不导出 Cookie |
| 关键帧截图 | 无截图,或截到进度条/弹窗遮挡 | 隐藏播放器控件后按时长、字幕密度与章节锚点自适应选 4–12 帧,支持 seeked 精准截净图 |
| 阅读密度 | 一大坨平铺 Markdown 文本 | 单文件内置 速览(~1.5 屏) / 精读(完整时间轴 + 大图 + 折叠字幕) 双视图,支持 4 种文体自动切换 |
| 长视频与容错 | 超长硬截断、无字幕胡编、JSON 报错即白跑 | 超长字幕沿时间轴均匀采样;无字幕明确报错不瞎编;JSON 截断自动修复重试 |
| 可观测与安全 | 消耗黑盒、任务卡死难中止 | 2 并发排队 + 随时取消;每条历史记录分段耗时、Token 与估算费用(实测约 55–90 秒 / ¥0.02–0.05);内置 SSRF 拦截与 DSH 信任护栏 |
工作原理 · How It Works
- 四种文体(默认自动判别,也可手动指定):
复盘(先判断后拆解)、教程(步骤 + 验收清单)、对谈(问答对照标记)、资讯(先事实后观点),不同文体自动匹配专属配色与版式。 - 即点即回看:叙事地图条、回看胶囊与截图时间码均保留原视频精确参数(含 B站分 P
?p=与 YouTube?v=&t=),一键跳回原片对应时刻。 - 面板内直览:采用 Shadow DOM 隔离渲染,内置脚本与事件属性净化,同时提供「存为 PDF」「导出 Markdown」「复制路径」「引用到聊天」。
快速安装 · Quick Start
前置条件
- 已安装并运行 DeepSeek Harness (DSH)(桌面端或 Web 端),且当前 profile 已挂载
llm与默认模型。 - 本机已安装 Ego Lite,且
ego-browser在系统PATH中可用。 - 目标视频需具备平台字幕(B站支持中文/AI 字幕,YouTube 支持字幕轨;暂无纯音频 ASR 兜底)。
安装命令
推荐使用 Release 预打包 .tgz 直接安装:
dsh plugin --profile web add https://github.com/Nixz0824/dsh-video-notes/releases/download/v0.9.0/dsh-video-notes-0.9.0.tgz
或从源码克隆后本地安装:
git clone https://github.com/Nixz0824/dsh-video-notes.git
dsh plugin --profile web add ./dsh-video-notes
安装完成后重启或重载 DSH,在左侧栏点击 「视频笔记」 图标,粘贴任意 B站 / YouTube 链接(或输入一句话搜索关键词),按 Ctrl/Cmd + Enter 即可开始生成。
配置与自定义 · Configuration
插件开箱即用,默认将笔记与设置保存在 $DSH_HOME/video-notes;既可在面板右上角 齿轮设置 中图形化修改,也可在 cordis.patch.yml 中预配:
- insert:
- id: video-notes
name: 'dsh-video-notes'
config:
outputDir: '~/video-notes' # 可选,留空默认 $DSH_HOME/video-notes
frames: 0 # 0 = 自适应(4–12 帧);或指定 4/6/8/10/12
maxTranscriptChars: 24000 # 超长字幕沿时间轴均匀采样上限
安全与已知边界 · Security & Limitations
- 零密钥 / 零 Cookie 外泄:复用 DSH profile 已有
llm与本机 Ego Lite 会话,不保存任何密码或 Token;完整安全设计见 SECURITY.md。 - 已知限制:
- 仅支持可获取平台字幕的视频,无字幕视频会明确提示失败而不编造内容;
- 受 DRM 保护、播放器被遮挡或平台限制截图的视频画面可能出现黑帧;
- 字幕依赖平台机器识别,专有名词或数字建议对照笔记内联原片截图核对。
开发自检与文档 · Verification & Docs
npm run check # 校验 CSS .dsh-vn 前缀、路由、安全护栏与全文件语法
npm test # 运行 13 项核心单元测试(选帧、URL/路径安全、并发队列等)
- 详细版本演进与设计取舍:docs/DETAIL.md
- 变更日志:CHANGELOG.md
- 安全策略:SECURITY.md
License
MIT © 2026 Nixz0824
Links
More in this category
tt-a1i/archify#integrations/deepseek-harness★ 102210
Generate validated, self-contained interactive architecture, workflow, sequence, data-flow, and lifecycle diagrams from repositories or system descriptions.
dream-num/dsh-univer-office★ 770
Give DeepSeek Harness a real office environment. Univer Office Plugin brings spreadsheets, docs, slides, canvases, relational tables, and more into one runtime — with connected data, validation, versioned changes, and isolated worktrees for multi-agent collaboration.
ECNU/EduWork#dsh-knowledge-studio★ 452
A workspace-based Studio for source-grounded reports, slides, tables, mind maps, quizzes, flashcards, audio and video, using DSH models and shared artifact services. Office generation requires Python 3.12+ with its dependencies and DSH_OFFICE_PYTHON configured; media rendering requires Chromium, and local ASR additionally requires whisper.cpp and a model.
Roland0511/dsh-marktext★ 421
WYSIWYG Markdown editor in the DSH right sidebar, built on MarkText's muya engine: open a .md file, edit it as a rendered document, and save back through ctx.fs with a version guard.
PerryLink/dsh-industry-research★ 227
Deterministic industry research reports for DeepSeek Harness — company and industry research flows produce structured, verifiable reports from staged evidence.
joeseesun/qiaomu-ui-learn-dsh★ 98
Browse UI design references and interaction examples, take design quizzes, and export learning notes as Markdown.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.