Pillow installed (for PDF conversion): pip install Pillow
Install Requirements
ffmpeg: Download from https://ffmpeg.org/download.html
Python packages: pip install yt-dlp Pillow
Usage
1. Download the script
2. Install packages: pip install yt-dlp Pillow
3. Open terminal in the folder with the script
4. Run: python extract_frames.py "YOUR_VIDEO_URL"
5. Done! Frames folder opens automatically with PDFs
Supported URLs
YouTube: https://www.youtube.com/watch?v=VIDEO_ID
Direct files: https://example.com/video.mp4
Local files: C:\path\to\video.mp4
Output
PNG frames: frames/frame_0001.png, frame_0002.png, etc.
PDF files: video_part1.pdf, video_part2.pdf, etc.
HTML viewer: frames/viewer.html