SamurAIGPT / AI-Youtube-Shorts-Generator

A python tool that uses GPT-4, FFmpeg, and OpenCV to automatically analyze videos, extract the most interesting sections, and crop them for an improved viewing experience.
https://www.vadoo.tv/ai-youtube-shorts-generator
MIT License
647 stars 94 forks source link
ai-video-generator artificial-intelligence image-to-video image-to-video-generation shorts shorts-maker sora-video sora-video-ai stable-diffusion text-to-image text-to-video text-to-video-generation video-diffusion video-editing video-generation video-generator youtube-shorts

AI Youtube Shorts Generator

AI Youtube Shorts Generator is a Python tool designed to generate engaging YouTube shorts from long-form videos. By leveraging the power of GPT-4 and Whisper, it extracts the most interesting highlights, detects speakers, and crops the content vertically for shorts. This tool is currently in version 0.1 and might have some bugs.

Youtube tutorial -> https://youtu.be/dKMueTMW1Nw

Medium tutorial -> https://medium.com/@anilmatcha/ai-youtube-shorts-generator-in-python-a-complete-tutorial-c3df6523b362

longshorts

Demo Input Video

Demo Output Video

Features

Installation

Prerequisites

Steps

  1. Clone the repository:

    git clone https://github.com/SamurAIGPT/AI-Youtube-Shorts-Generator.git
    cd AI-Youtube-Shorts-Generator
  2. Install the required Python packages:

    pip install -r requirements.txt
  3. Set up the environment variables. Create a .env file in the project root directory and add your OpenAI API key:

    OPENAI_API=your_openai_api_key_here

Usage

  1. Ensure your .env file is correctly set up with your OpenAI API key.
  2. Run the main script and enter the desired YouTube URL when prompted:
    python main.py

Contributing

Contributions are welcome! Please fork the repository and submit a pull request.

License

This project is licensed under the MIT License.

Disclaimer

This is a v0.1 release and might have some bugs. Please report any issues on the GitHub Repository.

Other useful Video AI Projects

Text to Video AI

Faceless Video Generator

AI B-roll generator

No-code AI Youtube Shorts Generator