Giter Site home page Giter Site logo

video-to-text's Introduction

Video to Text Description Generator

The Video to Text Description Generator is a Python application that automatically generates textual descriptions for videos. It utilizes scene detection techniques to extract keyframes from a video and employs the OpenAI API to generate descriptive text for each keyframe.

Features

  • Automatically detects scenes in a video and extracts keyframes
  • Generates textual descriptions for each keyframe using the OpenAI API
  • Provides a user-friendly graphical interface for easy interaction
  • Allows adjusting the sensitivity threshold for scene detection
  • Supports processing multiple videos and saving the results in an Excel file

Installation

  1. Clone the repository:

git clone https://github.com/noobAIcoder/video-to-text.git

  1. Install the required dependencies:

pip install -r requirements.txt

  1. Set up the necessary environment variables:
  • Create a .env file in the project directory.
  • Add the following variables to the .env file:
    OPENAI_API_KEY=your-api-key
    OPENAI_MODEL=gpt-4-vision-preview
    OPENAI_MAX_TOKENS=300
    
  • Replace your-api-key with your actual OpenAI API key.

Usage

  1. Run the application:

python .\main.py

  1. Use the graphical interface to select a video file and adjust the sensitivity threshold (higher = lower).

  2. Click the "Run Video Processing" button to start the scene detection and keyframe extraction process.

  3. Once the video processing is complete, select folder where screenshots were saved and click the "Run Screenshot Processing" button to generate textual descriptions for each keyframe.

  4. The generated descriptions will be saved in an Excel file in the same directory as the selected screenshots folder.

Contributing

Contributions are welcome! If you would like to contribute to this project, please follow the guidelines in CONTRIBUTING.md.

Authors

  • noobAIcoder - Prompting and copy-pasting
  • Claude (Anthropic AI) - Advisory, code generation, debugging

License

This project is licensed under the MIT License. See the LICENSE file for more information

video-to-text's People

Contributors

noobaicoder avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.