LecturAL
A tool that turns a YouTube video, local video, or local audio file into deterministic evidence for video-based work — every utterance, every on-screen text, every scene — available as markdown notes or a versioned JSON contract. Best on lecture and slide-style video.
LecturAL is an evidence compiler: evidence comes first, and notes are one consumer of it. See Product identity for the product boundary, priorities, and feature admission test.
Features
- 🧾 Full transcript + study notes — a raw
transcript.md(every utterance) and a seven-sectionnotes.md(3줄 요약 / 목차 / 흐름 / 핵심 개념·이론 / 정리 노트 / 복습 질문 / 정리 커버리지). Note prose is Korean by design. - 🔗 Video deeplinks — YouTube inputs use
youtu.be?t=links; local media usestranscript.md#tHHMMSS[-n]anchors. - 🇰🇷 Korean & English — uses YouTube captions when available, falls back to speech-to-text (faster-whisper) otherwise. Local files always use STT.
- 🚧 Completeness gate — checks speech gaps, scene coverage, and artifact presence, and blocks "done" until they pass.
--skip-ocrkeeps scene frames and skips only the slide-text OCR check. - 📦 Versioned extraction JSON —
lectural extract ... --jsonwrites a publicevidence.jsonmanifest with safe artifact paths, completeness, timestamp integrity, representative frames, and explicit OCR state.
How it works
flowchart TD
A[YouTube URL or local media] --> B{YouTube captions available?}
B -->|yes| C[Acquire captions]
B -->|no / local / --force-stt| D[Audio -> STT faster-whisper]
C --> E[Visual evidence: ffmpeg keyframes / scene cuts]
D --> E
E --> F[Deduplicate frames: histogram / SSIM]
F --> G[OCR unless --skip-ocr]
G --> H[lectural extract: evidence.json + transcript.md + frames/]
H --> I{Generate notes?}
I -->|yes| J[lectural notes: synthesis_input.json + notes.md + coverage.json]
I -->|no| K[Evidence bundle]
L[Existing evidence bundle] --> J
J --> M{Completeness gate}
M -->|pass| N[Done]
M -->|fail · exit 2| O[Fix the gap, then retry]
O --> J
Local .wav skips the visual path. Local video/audio never use yt-dlp.
Requirements
- Python 3.10+
- uv — installs and runs the Python dependencies
- ffmpeg — system binary, must be on PATH (STT/VAD and local-video audio extraction)
- yt-dlp — YouTube only; checked and installed by
/lectural:setup(doctor)
Install
1. Install the plugin (Claude Code)
/plugin marketplace add haesol-shin/lectural
/plugin install lectural@lectural
This registers the completeness Stop hook and the /lectural:notes and /lectural:setup commands.
2. Prepare the runtime
Run once after installing:
/lectural:setup
It installs the Python run dependencies → checks/repairs ffmpeg and yt-dlp → reports anything left to do. Local-only runs need ffmpeg, not yt-dlp.
Manual setup:
uv pip install -e ".[run]", then installffmpegper OS (Windowswinget install --id Gyan.FFmpeg -e, Linuxsudo apt-get install ffmpeg, macOSbrew install ffmpeg).
Coding-agent skill
skills/lectural/SKILL.md is the short, host-neutral guide for routing evidence requests through LecturAL's public CLI and contract. Claude Code discovers plugin skills from the plugin-root skills/<name>/SKILL.md layout (plugin documentation); AGENTS.md points Codex and other coding agents to the same skill.
A Python wheel or PyPI runtime install does not include plugin files. Accordingly, lectural doctor checks the runtime only by default; pass --plugin to validate plugin files and manifests.
Quick start
/lectural:notes https://youtu.be/<VIDEO_ID>
/lectural:notes ./recording.mp4 --skip-ocr
/lectural:notes ./audio.wav
Or run the CLI directly without Claude Code (ffmpeg must be installed separately):
uvx --from ".[run]" lectural notes "https://youtu.be/<VIDEO_ID>" --out ./output
uvx --from ".[run]" lectural notes ./recording.mp4 --skip-ocr --out ./output
For machine-readable extraction, negotiate the contract and use a new output directory:
lectural --version --json
lectural extract ./recording.mp4 --out ./evidence-run --skip-ocr --json
See docs/contracts/cli.md for the public contract and JSON Schemas. The extraction command accepts one source, rejects an existing output directory, and retains representative frames independently of OCR annotations.
Usage
| Command | Description |
|---|---|
/lectural:setup |
Prepare and verify the runtime (first run) |
/lectural:notes <source> [options] |
Turn a media source into evidence and complete markdown notes |
lectural notes <input>... [options] |
Generate notes from sources or regenerate notes from evidence bundles |
lectural extract <source> --out <dir> --json |
Extract a versioned evidence bundle without generating notes |
lectural inspect <bundle> [--json] |
Inventory a bundle without modifying it |
lectural verify <bundle> [--source <file-or-URL>] [--json] |
Verify bundle structure, artifact integrity, and completeness |
For notes, --out ./output sets the output root for source inputs. --force-stt, --model, --skip-ocr, and --keep-frames apply only to sources and are rejected for evidence-bundle inputs. Bundles are regenerated in place. Source inputs and bundles can be processed sequentially.
The commands run only on explicit request (they do not auto-trigger on a stray YouTube link). At session end, the Stop hook re-verifies note completeness.
Output
output/<video-title>/
├── evidence.json # extracted speech, frame, and completeness evidence
├── transcript.md # raw timestamped transcript — every utterance
├── notes.md # study notes: seven sections + source-appropriate citations
├── frames/ # scene images (video sources)
├── coverage.json # completeness-gate results
└── synthesis_input.json # text input used to enrich the notes
lectural extract ... --json creates the evidence bundle only. lectural notes <source> creates the bundle and notes; lectural notes <bundle-dir> regenerates notes from its existing evidence.json in place.
FAQ
No captions? STT transcribes audio when captions are missing or weak (--force-stt forces it). Local files always use STT.
Does a local run need yt-dlp? No.
What does --skip-ocr do? Keeps scene frames, skips OCR, and relaxes only the slide-text OCR gate.
Long video (1–2h)? CPU STT gets slower with length; LecturAL warns on very long inputs, and --model small trades accuracy for speed.
Empty OCR text on some frames? Expected. Many frames (e.g. the speaker only) have no text, so OCR miss rate is not used as a gate.
License
MIT.
Metadata
Release files for lectural 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lectural-0.3.0.tar.gz | 162.2 kB | With provenance | Details for lectural-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lectural-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for lectural-0.3.0-py3-none-any.whl |
Total release size: 251.2 kB
Release files / lectural-0.3.0.tar.gz
| Download URL | lectural-0.3.0.tar.gz |
|---|---|
| Size | 162.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec2c9f2dc12b332ca3f566ae0460e34c419f41a399cfd48c282231415e6e5359
|
|
BLAKE2b-256 checksum How to use checksums |
111f06606bf4c34d3ee09280cb1c651d5a6efbf8e886083a53674232c83b3e6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.
Transparency logRelease files / lectural-0.3.0-py3-none-any.whl
| Download URL | lectural-0.3.0-py3-none-any.whl |
|---|---|
| Size | 88.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8eb02a1ea2020e9b6730e59c4852448be97db41627b7c08d41866c0df0822a91
|
|
BLAKE2b-256 checksum How to use checksums |
be9537374eb77ed927b2c42df1b3692489d30b406760e51dd3eb0017d9a2facb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.
Transparency logSecurity for lectural 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for lectural-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.