Video Summarizer is a Python tool that automatically generates concise summaries of YouTube video content using advanced AI techniques. It utilizes the Google Gemini API to analyze both visual and audio content of the video.
- Download YouTube videos
- Analyze video thumbnails and content
- Utilize Google's Gemini AI for comprehensive content analysis
- Generate detailed summaries of video content
- Easy-to-use command-line interface
- Python 3.7+
- pip (Python package installer)
-
Clone the repository:
git clone https://github.com/PierrunoYT/gemini-youtube-analyzer.git cd video-summarizer
-
Install the required dependencies:
pip install -r requirements.txt
-
Set up your API key:
- Open a Command Prompt
- Run the following command, replacing the placeholder with your actual API key:
setx GEMINI_API_KEY "your_gemini_api_key_here"
- Close and reopen any command prompt windows for the changes to take effect
-
Run the script:
python VideoSummarizer.py
-
When prompted, enter the URL of the YouTube video you want to summarize.
-
The tool will download the video, analyze the content, and generate a summary.
-
The summary will be displayed in the console.
- The tool uses yt-dlp to fetch video details and download the video.
- The thumbnail image and video file are uploaded to the Google Gemini API.
- The Gemini AI model analyzes both the visual and audio content.
- A comprehensive summary is generated based on the AI's analysis.
- If you encounter API key errors, make sure you've correctly set up your Gemini API key as described in the installation steps.
- Ensure you have a stable internet connection for downloading videos and accessing the API.
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details. Copyright (c) 2024 PierrunoYT.
- yt-dlp for video downloading capabilities
- Google Gemini API for the powerful AI model used in this project
This tool is for educational and research purposes only. Ensure you have the right to use and summarize the video content you're processing. Respect YouTube's terms of service and the video creators' rights when using this tool.