Skip to content

This project is a Streamlit web application that allows users to generate GIFs from videos with text overlays corresponding to spoken words in the video. The approach involves transcribing the video, identifying GIF-worthy fragments, and creating GIFs with text overlays.

Notifications You must be signed in to change notification settings

pvchaitanya8/AI-Powered-Video-to-GIF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Powered GIF Studio

This project is a Streamlit web application that allows users to generate GIFs from videos with text overlays corresponding to spoken words in the video. The approach involves transcribing the video, identifying GIF-worthy fragments, and creating GIFs with text overlays.

Features

  • Upload video files and generate GIFs with captions.
  • Transcribe video audio to text.
  • Identify sentences suitable for GIF captions using a language model.
  • Extract specific video segments corresponding to identified captions.
  • Add text overlays to video clips.
  • Convert video clips to GIFs.
  • Download all generated GIFs as a zip file.

Overview

image Execution Vedio

Output Images

image image image image image

Prerequisites

  • Python 3.8 or higher
  • Required Python packages (listed in requirements.txt)

Installation

  1. Clone the repository:
git clone https://github.com/your-repository/video-to-gif-generator.git
cd video-to-gif-generator
  1. Create a virtual environment and activate it:
python -m venv venv
source venv/bin/activate  # On Windows, use `venv\Scripts\activate`
  1. Install the required packages:
pip install -r requirements.txt

Usage

  1. Update your GROQ_API_KEY with your API Key

  2. Run the Streamlit application:

streamlit run app.py
  1. Open the Streamlit app in your web browser. The default URL is http://localhost:8501.

  2. Upload a video file using the file uploader.

  3. Configure the caption settings in the sidebar (font style, scale, color, thickness).

  4. Generate GIFs by clicking the "Generate GIFs" button.

  5. Download the generated GIFs as a zip file.

Project Structure

  • app.py: Main application file containing the Streamlit UI and backend logic.
  • requirements.txt: List of required Python packages.
  • README.md: This readme file.

About

This project is a Streamlit web application that allows users to generate GIFs from videos with text overlays corresponding to spoken words in the video. The approach involves transcribing the video, identifying GIF-worthy fragments, and creating GIFs with text overlays.

Resources

Stars

Watchers

Forks