A nifty python script to extract slides from videos and save it as a pdf. Python3+ required.
This is the newest iteration of the script and uses the Decord library to read frames from the video.
# Install dependencies
pip install decord pillow tqdm imagehash
# Run script
python slide-extractor.py <NameofVideoFile/Directory>
If you have trouble installing Decord, follow the installation instructions on their page here.
Older versions
This script uses opencv to read frames from the video. This is twice as slow when compared with the previous script.
# Install dependencies
pip install opencv-contrib-python pillow imagehash
# Run script
python slide-extractor-opencv.py <NameofVideoFile/Directory>
This script uses opencv to read frames from the video. This is faster than the other opencv script, but a major drawback is that no progress bar or indication of processing is shown to the user.
# Install dependencies
pip install opencv-contrib-python pillow imagehash
# Run script
python slide-extractor-opencv-multiprocessing.py <NameofVideoFile/Directory>
Original script from johan456789/slide-extractor