This project contains a Python Flask application for summarizing videos. The application extracts significant frames from a video, generates descriptions for these frames, and then creates a summary of the video content.
- Extract significant frames from a video.
- Generate descriptions for frames using a pre-trained image captioning model.
- Generate a summary of the video using a text summarization model.
- Web interface to upload videos and view summaries.
- Clone the repository:
git clone https://github.com/pulinduvidmal/short-video-summarizer.git cd video-summary
- Install the required dependencies:
pip install -r requirements.txt
-
Run the Flask application:
python video_summary.py
-
Open your web browser and go to http://127.0.0.1:5000/ to access the application.
-
Upload a video file through the web interface to get a summary.
- video_summary.py: Main Python script containing the Flask application.
- templates/index.html: HTML template for the web interface.
- requirements.txt: List of Python dependencies.
- /: The main page with a form to upload a video.
- /upload: Endpoint to handle video uploads.
- /summarize: Endpoint to generate and return the video summary.
- Salesforce BLIP: Used for image captioning.
- Facebook BART: Used for text summarization.
- MoviePy: Used for video processing.