OUTPUT_DIR (default ./output).
Directory structure
- Single video
- Chapter-aware video
- Batch / playlist
Main notes file (<title>.md)
The study notes are generated in clean Markdown with a hierarchical structure:
Generation strategy
| Transcript size | Strategy |
|---|---|
| ≤ 4,000 tokens | Single LLM pass with the full transcript |
| > 4,000 tokens | Split into overlapping 4,000-token chunks, each generated independently, then combined by a second LLM call |
| Long video with chapters (> 1 hr) | Each chapter processed independently with the same chunking logic |
Quiz file (<title>_quiz.md)
Generated with --quiz. Contains 10–15 multiple-choice questions grouped by topic:
Transcript text (<title>_transcript.txt)
Generated with --export-transcript txt. Plain text with all transcript segments joined by spaces:
Transcript JSON (<title>_transcript.json)
Generated with --export-transcript json. Array of segment objects with timing:
Filename sanitization
Output filenames are derived from the video title with:- Control characters and special filesystem characters removed
- Leading/trailing whitespace stripped
- Length capped at 100 characters (
MAX_FILENAME_LENGTH)