Generate a summary of any video through its subtitles.
This is the community driven approach towards the summarization by the OpenGenus community.
In order to install vidsum, simply clone the repository to a local directory. You can do this by running the following commands:
$ git clone https://github.com/AdiChat/vidsum.git
$ cd vidsum/code
Please note that vidsum requires the following packages to be installed:
If you do not have these packages installed, then you can do so by running this command:
$ pip install pysrt imageio moviepy pytube sumy
To generate summary of a video file sample.mp4
with subtitle file subtitle.srt
:
python sum.py -i sample.mp4 -s subtitle.srt
To download a YouTube video along with its subtitles from url:
python sum.py -u "url"
For future development to this approach, see Wiki and check out other approaches.
All contributions are welcomed. Please see COMMIT_TEMPLATE.md before making pull requests to this repository. See all contributors here.