lecture-to-notes
Turns a YouTube, Bilibili or X lecture video into a compiled Chinese LaTeX/PDF handout with figures cropped from the video.
Last reviewed by the paperbanana team on Dec 6, 2026

Install
git clone https://github.com/ysyecust/lecture-to-notes.git
cd lecture-to-notes
scripts/install_skill.sh --claudeWhat is lecture-to-notes?
lecture-to-notes is an agent skill for Claude Code and Codex that converts a lecture video into a study handout. You give it a YouTube, Bilibili (including multi-part), or X/Twitter video link, and it produces a LaTeX source file, a PDF compiled with xelatex, cropped figures, a corrected subtitle track, and a delivery-gate report. This page is about lectures and talks, not research papers: it works from the video and its captions. Papers themselves are better served by the paper-reading skills linked below.
The problem it addresses is that a two-hour course lecture is slow to review and a raw transcript is a poor substitute. The skill rebuilds the content around the questions a reader would have rather than the speaker’s order of words. It explains meaning before terminology, follows equations with a symbol table, and attaches the original video time range as a footnote under every figure. The README states that every numeric value should be traceable to the subtitles or the picture.
Note the language and tooling. The output is Chinese-language notes, and the README is mainly in Chinese, with an English version linked. It also needs a real toolchain: yt-dlp, ffmpeg, xelatex with Chinese support, ImageMagick, and Python 3.12 or newer. It suits students and researchers who follow courses, seminars, or conference recordings and want citable, re-readable notes. The repository additionally ships a paper-to-html skill for single-file paper explainers and a public course library site.
Core capabilities
Five-level subtitle fallback
It tries human captions first, then platform auto-captions, then OCR of burned-in subtitles, then local speech recognition, and finally dictionary and multimodal correction of the subtitle file. Whisper backends are chosen by platform.
Smart cropping of video frames
frame_filter.py measures and removes static navigation bars and subtitle bands. For split screens of speaker camera plus slides, it keeps only the slide panel so slide text is not shrunk to half a page.
Figures traced to video time
Each figure carries a footnote with the original time range, for example 00:08:00 to 00:08:15, and verify_figures.py cross-checks timestamp, subtitle, and picture. verify_notes.py requires figure and footnote to share a page.
Reader-first writing with numeric checks
Chapters follow a reader-first style guide, display equations are followed by symbol tables, and numbers with units are logged to numerical_claims.tsv by extract_claims.py for checking.
Delivery gate and web reading
verify_notes.py writes verify_notes.txt that must end in OVERALL PASS. Separately, a hosted course library offers a reflowable web view and an original-PDF view of published handouts.
What you can use it for
Handout for a full university course lecture
Feed it a course video link and get a PDF with equations, symbol tables, and slide figures that you can annotate and review before an exam or a reading group.
Notes from a conference or seminar recording
Capture the argument of a talk with slide crops and timestamps, so you can jump back to the exact moment in the video when a claim needs checking.
Chinese-language study material from English or Chinese videos
The skill targets Chinese LaTeX output, and its fallback chain covers Bilibili videos with burned-in subtitles as well as YouTube videos with captions.
Sharing lecture notes publicly
The repository documents a pull-request route for contributing handout PDFs to its course library, with a validation step for submissions.
How to get started
- 1
Install the system tools
Install yt-dlp, ffmpeg, ImageMagick, poppler, and a TeX distribution with xelatex and CTeX Chinese support, then pip install rapidocr-onnxruntime, Pillow, and numpy plus one transcription backend such as mlx-whisper or faster-whisper. Commands for macOS, Windows, and Debian or Ubuntu are in the README.
- 2
Install the skill
Clone the repository and run scripts/install_skill.sh with --claude for ~/.claude/skills, --codex for ~/.codex/skills, or --all for every supported location.
- 3
Send a video link
In Claude Code or Codex, type /lecture-to-notes followed by the video URL, or just send a YouTube, Bilibili, or X video link.
- 4
Check the delivered files
Open notes.pdf, review figures and the numerical claims table, and confirm verify_notes.txt ends with OVERALL PASS. Optionally tidy intermediate files with scripts/clean_artifacts.py.
How it compares to similar skills
lecture-to-notes works from video, not from PDFs. If your source is a paper or you need slides rather than notes, these pages fit better.
DeepPaperNote
Pick it when the source is a single research paper and you want an evidence-first reading note rather than notes from a video.
Academic PPTX Skill
Pick it when you are the one giving the talk and need conference-style slides, not notes from someone else’s lecture.
DailyPaper Skills
Pick it to discover and prioritize new papers from Hugging Face and arXiv instead of studying a recorded lecture.
