Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

video2pdfslides-tddschn-0.1.1.tar.gz (5.9 kB view hashes)

Uploaded Source

Built Distribution

video2pdfslides_tddschn-0.1.1-py3-none-any.whl (6.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page