Skip to main content
N

dsh-video-notes

nixz0824/dsh-video-notes

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

dsh plugin --profile web add github:nixz0824/dsh-video-notes

README

dsh-video-notes: DeepSeek Harness plugin that turns Bilibili and YouTube videos into standalone dual-density HTML, PDF, and Markdown notes with subtitles and adaptive keyframes

Version 0.9.0 Platform DSH Web License MIT

在 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
dsh-video-notes DSH sidebar panel in light mode showing input box, recent notes, and job usage statisticsdsh-video-notes DSH sidebar panel in dark mode showing vermilion accent button, recent notes, and job history

生成的独立 HTML 笔记(同一文件内置「速览 / 精读」双密度切换)

Generated standalone HTML video note in Quick View showing title, one-sentence conclusion, four structured takeaways, timecoded keyframes, and clickable timestamp pills


为什么好用 · 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

Five-stage local pipeline: link or keyword input, Ego Lite subtitle and 4-12 frame capture, structured JSON generation across 4 genres, dual-density HTML rendering, and Shadow DOM preview with PDF/Markdown export and security guardrails

  • 四种文体(默认自动判别,也可手动指定):复盘(先判断后拆解)、教程(步骤 + 验收清单)、对谈(问答对照标记)、资讯(先事实后观点),不同文体自动匹配专属配色与版式。
  • 即点即回看:叙事地图条、回看胶囊与截图时间码均保留原视频精确参数(含 B站分 P ?p= 与 YouTube ?v=&t=),一键跳回原片对应时刻。
  • 面板内直览:采用 Shadow DOM 隔离渲染,内置脚本与事件属性净化,同时提供「存为 PDF」「导出 Markdown」「复制路径」「引用到聊天」。

快速安装 · Quick Start

前置条件

  1. 已安装并运行 DeepSeek Harness (DSH)(桌面端或 Web 端),且当前 profile 已挂载 llm 与默认模型。
  2. 本机已安装 Ego Lite,且 ego-browser 在系统 PATH 中可用。
  3. 目标视频需具备平台字幕(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/路径安全、并发队列等)

License

MIT © 2026 Nixz0824

Related plugins