Generate structured timestamps for YouTube videos using AI. This Flask web app extracts video transcripts and summarizes key sections into clickable timestamps, enhancing video navigation and viewer engagement.
- Extracts transcripts from YouTube videos using their URLs.
- Processes transcripts in chunks for efficient handling.
- Utilizes Google's Gemini AI model to generate concise timestamps.
- User-friendly web interface built with Flask.
- Deployable on platforms like Render.([Exemplary AI][2], [Hugging Face][3], [GitHub][4], [Reddit][1])
Experience the live application here: 👉 yt-timestamp-generator.onrender.com
- Python 3.7 or higher
- A Google API key for Gemini AI (set as
GOOGLE_API_KEYin.env)
-
Clone the Repository
git clone https://github.com/extremecoder-rgb/yt-timestamp-generator.git cd yt-timestamp-generator -
Create a Virtual Environment
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install Dependencies
pip install -r requirements.txt
-
Configure Environment Variables
Create a
.envfile in the root directory and add your Google API key:GOOGLE_API_KEY=your_google_api_key_here
-
Run the Application
python app.py
Access the application at http://localhost:5000.
- Navigate to the application's homepage.
- Enter the URL of the YouTube video you wish to process.
- Click the "Generate Timestamps" button.
- View the generated timestamps, each indicating a distinct segment of the video.
To deploy this application on Render:
-
Set the Start Command
In the Render dashboard, set the start command to:
gunicorn app:app --bind 0.0.0.0:$PORT -
Ensure
gunicornis inrequirements.txtAdd the following line to your
requirements.txtif it's not already present:gunicorn -
Configure Environment Variables
In the Render dashboard, add your
GOOGLE_API_KEYas an environment variable.
yt-timestamp-generator/
├── app.py
├── requirements.txt
├── .env
├── templates/
│ └── index.html
└── venv/