Converts a video presentation into a deck of pdf slides by capturing screenshots of unique frames
Project description
video2pdfslides-tddschn
PyPI Upload of https://github.com/kaushikj/video2pdfslides,
with more command line options.
All credits to https://github.com/kaushikj.
Description
This project converts a video presentation into a deck of pdf slides by capturing screenshots of unique frames
youtube demo: https://www.youtube.com/watch?v=Q0BIPYLoSBs
Usage
video2pdfslides <video_path>
it will capture screenshots of unique frames and save it output folder...once screenshots are captured the program is paused and the user is asked to manually verify the screenshots and delete any duplicate images. Once this is done the program continues and creates a pdf out of the screenshots.
# Example
There are two sample video avilable in "./input", you can test the code using these input by running
<li>python video2pdfslides.py "./input/Test Video 1.mp4" (4 unique slide)
<li>python video2pdfslides.py "./input/Test Video 2.mp4" (19 unique slide)
# More
The default parameters works for a typical video presentation. But if the video presentation has lots of animations, the default parametrs won't give a good results, you may notice duplicate/missing slides. Don't worry, you can make it work for any video presentation, even the ones with animations, you just need to fine tune and figure out the right set of parametrs, The 3 most important parameters that I would recommend to get play around is "MIN_PERCENT", "MAX_PERCENT", "FGBG_HISTORY". The description of these variables can be found in code comments.
## Develop
$ git clone https://github.com/tddschn/video2pdfslides-tddschn.git $ cd video2pdfslides-tddschn $ poetry install
# Developer contact info
kaushik jeyaraman: kaushikjjj@gmail.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for video2pdfslides-tddschn-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c45e6b39d64dc1d5a71669b25776885d1aa9c01b521d03ecbc75bbd6f0e3d3e |
|
MD5 | b75e0b37d3bf060aa4eeca106316800c |
|
BLAKE2b-256 | a6838e5072b67d44b636e1f191430f1fbfa0950e21c105676caff9bd6903994e |
Hashes for video2pdfslides_tddschn-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53e9e5e91f222bdb71b3655d43746d70c0f4faa7cf6f6373eb78e660be4b1c39 |
|
MD5 | 716d9b3116a97f209816a09be146500f |
|
BLAKE2b-256 | edde2bd148bb0eae6ffa90634cbe98175b279daee7d9bfae2cddc7147bb35697 |