Stop wasting hours taking screenshots during lectures. Let Lecture2PDF AI detect slides, extract key frames, and generate organized PDFs in minutes.
๐ Fast โข ๐ Private โข ๐ Student Friendly
Lecture2PDF AI is a Chrome Extension that automatically extracts presentation slides from lecture videos and converts them into a downloadable PDF.
Whether you're studying from YouTube, Udemy, Coursera, or recorded college lectures, Lecture2PDF AI helps you focus on learning instead of manually capturing screenshots.
Imagine watching a 2-hour lecture.
Every time the slide changes, you:
- Pause the video
- Take a screenshot
- Save it
- Resume watching
After the lecture, you end up with:
- Hundreds of screenshots
- Duplicate images
- Disorganized notes
- Hours wasted
Most students spend more time collecting notes than actually studying.
Lecture2PDF AI automates the entire process.
Simply:
- Open a lecture video
- Click Scan Video
- Review detected slides
- Generate PDF
That's it.
The extension handles everything automatically.
Automatically identifies meaningful slide transitions throughout the lecture.
Uses Otsu's Thresholding Algorithm to dynamically determine the best detection threshold for each video.
Filters unnecessary captures and focuses on important slide changes.
Preview all detected slides before generating the final PDF.
You can:
- Review captures
- Remove unwanted slides
- Fine-tune results
Convert selected slides into a professional PDF instantly.
Perfect for:
- Exam preparation
- Revision notes
- Quick review sessions
Everything runs locally in your browser.
No:
- Cloud uploads
- External servers
- Data collection
- Tracking
Your lecture data never leaves your device.
Open Lecture Video
โ
Scan Video
โ
Detect Slide Changes
โ
Review Captured Slides
โ
Generate PDF
โ
Download Notes
| Technology | Purpose |
|---|---|
| JavaScript | Core Application Logic |
| Chrome Manifest V3 | Extension Framework |
| HTML/CSS | User Interface |
| Canvas API | Frame Processing |
| PDF-Lib | PDF Generation |
| Otsu's Method | Threshold Optimization |
| Service Workers | Background Processing |
Lecture2PDF samples frames across the lecture timeline and converts them into lightweight brightness grids.
This significantly reduces processing cost while maintaining accuracy.
Consecutive frames are compared to calculate visual differences.
The algorithm ignores:
- Mouse movements
- Cursor activity
- Minor animations
while detecting actual slide transitions.
Instead of relying on a fixed threshold, Otsu's Method automatically calculates the optimal threshold for every lecture.
Benefits:
- Higher accuracy
- Fewer duplicates
- Better results across different video styles
git clone https://github.com/RajGahoi/lecture2pdf.git
cd lecture2pdfOr download the ZIP file and extract it.
Open Chrome and visit:
chrome://extensions/
Turn ON Developer Mode from the top-right corner.
Click:
Load Unpacked
Select the project folder containing:
manifest.json
Click the Extensions icon and pin:
Lecture2PDF AI
The extension is now ready to use.
Open any lecture video.
Supported platforms include:
- YouTube
- Coursera
- Udemy
- Khan Academy
- PhysicsWallah
- Unacademy
- Most HTML5 video players
Click the Lecture2PDF AI extension icon.
Press:
๐ Scan Video
The extension will automatically analyze the lecture.
Review the detected slides.
Remove any unwanted captures if necessary.
Click:
โก Generate PDF
The PDF will be generated and downloaded automatically.
Create revision notes instantly.
Generate lecture handouts from recorded sessions.
Capture key slides from online courses.
Build concise study material quickly.
- AI-powered lecture summarization
- OCR text extraction
- Export to Markdown
- Export to Notion
- Multi-language support
- Smart chapter detection
- Lecture transcript integration
- Cloud synchronization
Contributions are welcome.
If you'd like to improve the project:
- Fork the repository
- Create a feature branch
- Commit your changes
- Open a Pull Request
If Lecture2PDF AI saved you time, please consider giving this repository a star.
It helps more students discover the project and motivates future development.