course2md README

项目的 README,来自 github.com/mizorewww/course2md。合并为一个 markdown 文件:README.md。

course2md app icon

course2md

Turn lecture videos into illustrated notes you can read, search and keep.

Paste a YouTube or Bilibili link, or drop in a local video. course2md captures a screenshot every time the slide changes, transcribes what is said beneath it, and keeps the result in a library on your computer.

Newest release, previews included License: MIT macOS · Windows · Linux

English · 中文 · Download · Wiki

Download

Download for macOS Download for Windows Download for Linux

Version 3.0.2: macOS DMG (Apple Silicon, macOS 15 or later) · Windows installer (x64; portable ZIP) · Linux tar.gz (x86_64) · all releases

On macOS you can also install it with Homebrew: brew install --cask mizorewww/tap/course2md-gui. Each download includes the conversion engine and its video tools; Install has the steps for each system.

The course2md reader showing a lecture note with a summary, an outline and typeset formulas

Why course2md

A tour of the app

Add a video

Paste a link or drag a file onto Home, the start page (click the course2md logo to return to it). course2md reads the video first, so you can check the title, length and where its text comes from before anything is converted. How notes are made (speech recognition, AI processing, exports) is set once in Settings, and every conversion uses the settings current when it starts.

Home page with a previewed video

Read, find and copy

The reader opens on a summary and key points, keeps an outline of the sections beside the note, and finds text across the whole note. Formulas are typeset, and copying a passage gives you the original text with each formula's LaTeX.

Browse every slide

The Screenshots view shows the whole lecture at a glance. Open any slide to see it large, zoom and pan, and read what was said at that moment.

Screenshots view with a grid of lecture slides An enlarged slide with the transcript spoken while it was shown

Keep a library

Notes live in a library with nested folders, drag and drop, and search that covers subfolders. You can keep several library locations, and deleted notes go to the Trash (Recycle Bin on Windows and Linux).

Library with a folder tree and note cards

Let it work in the background

Conversions run as tasks you can pause, resume and reorder. Each step shows its progress, and model downloads show their size, speed and time left. If one part fails, read what finished and redo only the rest.

Tasks page with a running conversion and its progress

Make it yours

Choose from 10 themes and reduce motion in Settings → Appearance. Set the UI scale from 75% to 200% in steps of 5%. Drag the slider to see a floating preview. Release it to apply the scale. Reset to 100% restores the default scale.

Appearance settings with theme previews

Install

The desktop app includes the conversion engine and the video tools it runs (ffmpeg, ffprobe and yt-dlp), so the downloads below work without installing anything else. You do not need the command-line tool to use it.

macOS (Apple Silicon, macOS 15 or later)

With Homebrew, this installs the app together with yt-dlp and aria2 (faster model downloads):

brew install --cask mizorewww/tap/course2md-gui

Then open course2md from Applications. Without Homebrew, download the DMG and drag course2md to Applications; see the macOS guide.

Windows (x64)

  1. Download the installer and run it. It installs for your account only, needs no administrator rights, and later versions upgrade it in place. While it is unsigned, SmartScreen asks first: choose More info → Run anyway.
  2. Open course2md from the Start menu. The app includes ffmpeg, yt-dlp, aria2, uv (Intel NPU recognition) and llama-server for GPU (Vulkan) and CPU recognition. GPU and CPU recognition also need the Microsoft Visual C++ runtime; if it is missing, Run checks says so and links the installer.

To run without installing, download the portable ZIP, extract everything to a permanent folder and open course2md-desktop.exe, keeping the other files next to it. Uninstalling keeps your settings, model downloads and notes.

Arch Linux / CachyOS (x86_64)

yay -S course2md-gui-bin

(or paru -S course2md-gui-bin). This installs the app, the system's video tools and the graphics libraries; your GPU needs a working Vulkan driver. See the Linux guide.

Ubuntu and other Linux (x86_64)

Download the tar.gz, install the graphics libraries from the Linux guide, extract it and run ./course2md-desktop. Built on Ubuntu 24.04; it includes ffmpeg, yt-dlp, uv and llama-server (GPU recognition uses your Vulkan driver).

Intel Macs and Linux ARM64 have no desktop app yet; use the command-line tool.

First steps

  1. Open course2md and follow the setup: choose how speech is recognized, optionally connect an AI service and Bilibili, and download the speech model (1–2.4 GB, once).
  2. If anything is missing, Settings → Application → Run checks shows which tool to install.
  3. On Home, paste a link or drop a video, review the preview and click Start conversion. Finished notes appear in Library.

Notes go to a default library; add other folders in Settings → Storage. The interface follows your system language; change it in Settings → Appearance → Interface language. More in the first-launch guide.

Questions

Conversion says ffmpeg is missing. The downloaded app keeps its own ffmpeg next to course2md-desktop; extract or reinstall the whole package. The CLI and the Arch package use the system's: install it (brew install ffmpeg on macOS, winget install --id Gyan.FFmpeg -e on Windows, your package manager on Linux). Settings → Application → Run checks (CLI: course2md doctor) shows where each tool comes from.

A Bilibili video fails or comes back in low quality. Log in under Settings → Services & accounts → Bilibili account by scanning the QR code, or with your password or an SMS code.

YouTube asks you to sign in. Under Settings → Services & accounts → YouTube account, choose the browser where you are signed in to YouTube. yt-dlp reads that browser's cookies when it opens a YouTube video; course2md does not keep them. Downloading with an account may lead YouTube to restrict it, so use it sparingly.

How large are the model downloads, and where do they go? About 1–2.3 GB on Apple Silicon (~/Library/Caches/qwen3-speech/) and 2.4 GB elsewhere (~/.cache/course2md/models/). On a system set up for mainland China (its locale or time zone) they download from domestic mirrors (ModelScope / hf-mirror.com); elsewhere these are fallbacks. HF_ENDPOINT names a host outright, and COURSE2MD_IP_LOOKUP=1 lets course2md ask public services for your country instead, which sends them your IP address. Downloads resume after interruptions, and GPU/CPU models are checked with SHA-256.

How do I use Qwen speech recognition (qwen3-asr-flash)? Add a speech service under Settings → Services & accounts and choose the service type Qwen speech recognition (e.g. qwen3-asr-flash). Use the address https://maas.qianwenaiapi.com/compatible-mode/v1 (or your Alibaba Cloud Model Studio region's …/compatible-mode/v1 address), the model qwen3-asr-flash and your API key. Qwen does not offer this model as Dedicated transcription or Multimodal conversations: it takes the audio alone, so course2md sends it in Qwen's own format and sends the audio in pieces of up to two minutes, well within one request's limit (5 minutes, 10 MB). In the CLI, set it in config.toml:

[defaults]
provider = "api"

[asr_api]
mode = "qwen-chat"
base_url = "https://maas.qianwenaiapi.com/compatible-mode/v1"
model = "qwen3-asr-flash"
# the key: COURSE2MD_ASR_API_KEY

I upgraded from 1.7. Where are my notes? Notes made by 1.x stay where they were as course.md / course.html and still open in any editor or browser, but the 2.0 library only lists notes made by 2.0. Downloaded models, the Bilibili login and the CLI's config.toml keep working; set up recognition and AI services again in the setup steps.

More answers in Troubleshooting.

Command-line tool

Prefer the terminal or scripts? The course2md CLI does the same conversion. It can be installed beside the desktop app; the two share the Bilibili, YouTube and ChatGPT logins and the downloaded speech models, and each keeps its own settings.

curl -fsSL https://raw.githubusercontent.com/mizorewww/course2md/main/install.sh | bash   # macOS / Linux, into ~/bin
brew install mizorewww/tap/course2md                                                      # or Homebrew
yay -S course2md-bin                                                                      # or Arch

It needs ffmpeg; online links also need yt-dlp (installed by the script if missing), and with aria2 models download over several connections. Local recognition on non-Apple systems needs llama-server. Check everything with course2md doctor.

course2md ./lecture.mp4                        # a local file
course2md https://www.youtube.com/watch?v=…    # or a YouTube / Bilibili link
course2md ./lecture.mp4 -o ./notes             # choose where notes go

The first run asks a few setup questions. Each video has one note, the folder platform/ID/ under the output folder; converting the same video again replaces that note in place (a course.md you edited by hand is kept beside it as course.edited.md), and an existing note stays as it was if the new run fails. Work in progress lives in .course2md/ beside the notes.

A speech model is never downloaded without asking. When a conversion needs one that is missing, the CLI names it, its size and where it will be stored, and asks [y/N]; without a terminal (pipes, scripts, --json, --quiet) it stops with exit code 1 (--json: error code model_required). Prepare the model first with course2md models prepare --provider … --model …, or pass --download-models (or set COURSE2MD_DOWNLOAD_MODELS=1) to allow the download in that run. A conversion stopped this way continues where it left off once the model is ready.

Command Purpose
course2md --login bilibili / --logout bilibili Log in to Bilibili with a QR code (--method password or sms for a password or SMS code) / remove the saved login
course2md --login youtube / --logout youtube Use a browser's YouTube sign-in (--browser chrome, or --browser "chrome:Profile 1" for a profile) / stop using it
course2md --login ollama / --login codex Use a local Ollama server / a ChatGPT subscription via the Codex login
course2md doctor Check tools, speech backends and settings
course2md models list / models prepare Check downloaded models / download one ahead of time
course2md llm setup / llm status / llm disable Configure, inspect or turn off AI proofreading
course2md summarize ./notes Add AI summaries to existing notes
course2md config init / config show Create a configuration template / show the settings

CLI settings live in ~/.config/course2md/config.toml (%APPDATA%\course2md\config.toml on Windows), and options override them. course2md remove clears the CLI's AI service settings and the ChatGPT login. --lang en|zh-Hans|zh-Hant|ja (or COURSE2MD_LANG) sets the language; --json output stays in Simplified Chinese for scripts. See <command> --help and the CLI guide.

Help and contributing

Documentation (Wiki) · Upgrade and uninstall · Troubleshooting · Report a problem · Release notes

For developers: contributing · desktop development · crate layout · engine architecture · benchmarks · releases · Changelog

course2md is released under the MIT license.

course2md (mizorewww/course2md)

正在搜索数据库…

这是什么?course2md 把 YouTube、Bilibili 或本地的课程、会议视频录像转换成带幻灯片配图的 Markdown 和 HTML 讲义,每当幻灯片变化就截取一张截图,并把文字记录放在截图下方。
这是桌面应用还是命令行工具?两者都是。它既有自带转换引擎的桌面 GUI 应用,也有独立的 CLI;两者共用同一个配置文件,可以并存安装。
我怎么把它跑起来?在 Apple Silicon Mac 上,安装 Homebrew cask 或下载 DMG;在 Windows 上,下载便携版 ZIP 并运行 course2md-desktop.exe;在 Arch Linux 上使用 yay/paru,其他 Linux 则使用 tar.gz 包。CLI 也可以通过预编译二进制脚本、Homebrew、yay 或「cargo install --path .」安装。
我需要单独安装 ffmpeg 和 yt-dlp 吗?需要——ffmpeg(含 ffprobe)始终是必需的,在线视频链接需要 yt-dlp,GPU/CPU 语音识别需要 llama-server;唯一的例外是 macOS Apple Silicon 包,它的 CoreML 后端不需要额外的运行时。
它能在 Intel Mac 或 Linux ARM64 上运行吗?暂时没有预构建的 GUI——在 GUI 构建可用之前,这些平台只能使用 CLI 版本。
语音识别时我的视频/音频数据会去哪里?本地语音识别(CoreML、Intel NPU 或 llama.cpp 后端)会把所有数据留在你的机器上;除非你显式配置云端 API 后端,否则不会有任何数据离开你的设备。
幻灯片风格的笔记格式是怎么工作的?每当视频的画面内容发生变化,course2md 就会截取一张截图,并把文字记录整理成段落放在每张截图下方,最终导出为 course.md 和 course.html(也可用 --formats 额外导出 JSON)。
它能登录 Bilibili 来解决下载失败或画质低的问题吗?可以,「course2md --login bilibili」会打开二维码供扫码登录,「--logout bilibili」则会移除已保存的会话;这就是解决 Bilibili 视频下载失败或画质变低的方法。
它内置了 AI 校对或摘要功能吗?可选的 AI 校对和摘要通过任何 OpenAI 兼容的端点工作,用「course2md llm setup」配置;该功能默认关闭,所以不启用就不需要 API 密钥。
如果转换过程被中断会怎样?转换可以借助语音检查点和 --resume 标志继续进行,CLI 还支持 NDJSON 进度输出和静默模式,方便在脚本中使用。
作者
mizorewww
大小
57.3 MB
星标
514
时长
3个月
提交 · 90 天