A Python toolkit for generating video elements (PDF slides and PNG images) for use in lecture videos and screen recording software like OBS.
- PDF Slide Generation: Create start and end slides with customizable titles and hexagonal grid backgrounds
- PDF to PNG Conversion: Convert generated PDFs to PNG format using ImageMagick
- Video element compositing with screen and video cutouts
- Advanced slide layout and design templates
- Batch processing utilities
- Complete test coverage
Before installing this package, install:
- ImageMagick (v6.x or v7.x) — https://imagemagick.org/
- Ghostscript — https://www.ghostscript.com/
pip install -e .from videotoolkit import create_start_slide, pdf_to_png
# Create a PDF slide
create_start_slide("slide.pdf", "My Lecture Title", "Introduction")
# Convert to PNG
pdf_to_png("slide.pdf")See scripts/example_script.py for more examples.