otecart / AI-Shorts-Creator

AI-Video-Cropper is a Python-based tool that leverages the power of GPT-4 (OpenAI's language model) to automatically analyze videos, extract the most interesting sections, and crop them for improved viewing experience. This project combines the capabilities of GPT-4, FFmpeg, and OpenCV to automate the process of identifying highlights in videos
0 stars 0 forks source link

AI-Shorts-Creator! 🎥✂️

AI-Shorts-Creator is a powerful tool designed for content creators, podcasters, and video enthusiasts to effortlessly extract captivating segments from their videos. Leveraging the advanced language model GPT-4, this innovative solution intelligently analyzes video transcripts to identify the most viral and exciting moments. By harnessing the capabilities of FFmpeg and OpenCV, AI-Shorts-Creator automatically crops videos, allowing you to focus on the key highlights and provide an enhanced viewing experience.

AI-Shorts-Creator is a powerful tool designed to:

Examples:

Fake examples Source Video : https://www.youtube.com/watch?v=NHaczOsMQ20 ![thumbnail](https://github.com/NisaarAgharia/AI-Video-Cropper/assets/22457544/7dbf9b92-2a08-4948-bb49-e41350ae4a02) ## Output Shorts:
Demo GIF 1 Demo GIF 2 Demo GIF 3
https://github.com/NisaarAgharia/AI-Shorts-Creator/assets/22457544/318c8cf1-bcc3-4ed7-a979-7af17e545e6e

Requirements

Usage

  1. Install the required libraries by running the following command:
poetry install
  1. Make sure the ffmpeg command is accessible from the command line.

  2. Rename .env.example to .env and set all necessary variables.

  3. Make sure your Redis and RabbitMQ instances are running.

  4. Run taskiq worker

poetry run taskiq worker src.worker:broker src.tasks
  1. Run taskiq scheduler
poetry run taskiq scheduler --skip-first-run src.worker:scheduler src.tasks
  1. Run fastapi server
poetry run fastapi run src/main.py

This will run AI-Shorts-Creator server on port 8000 (by default). It's API could be found on http://localhost:8000/docs (by default).