Coder Social home page Coder Social logo

eddieoz / reels-clips-automator Goto Github PK

View Code? Open in Web Editor NEW
73.0 3.0 15.0 6.83 MB

Reelsfy is an advanced, AI-powered tool that automates the process of creating Instagram Reels from longer videos.

License: MIT License

Python 100.00%
ai artificial-intelligence automator clips computer gpt reels shorts tiktok

reels-clips-automator's Introduction

Reelsfy - Reels Clips Automator

Introducing Isabella Reels, the intelligent core behind Reelsfy. Inspired by the popularity of Instagram Reels, Isabella is here to transform the way you create content. She's the sister bot to Marcelo Resenha, known for assisting with YouTube video editing. With Isabella's capabilities, you can now effortlessly turn longer videos into engaging Instagram Reels.

Reelsfy is an advanced, AI-powered tool that automates the process of creating Instagram Reels from longer videos. Isabella uses a combination of computer vision to track faces, the GPT model to identify the most engaging parts of the video, and the Whisper ASR system to generate subtitles. This open-source project is perfect for content creators looking to streamline their workflow and optimize content for virality.

Features

  • Converts horizontal videos into vertical Reels, perfect for Instagram
  • Downloads videos directly from YouTube or uses local video files
  • Uses GPT models to identify and cut the most viral sections of the video
  • Employs computer vision to track faces during the video editing process
  • Generates captions using the Whisper ASR system
  • Uses GPU for faster processing (optional)

Prerequisites

  • Anaconda >= 22.11.1
  • Python >= 3.11
  • FFMPEG >= 4.4.2
  • OpenAI API Key
  • A GPU is optional but recommended for faster processing
  • Developed on Ubuntu 22.04

Installation

  1. Clone the git repository:
$ git clone https://github.com/eddieoz/reels-clips-automator.git
  1. Create and activate a new conda environment:
$ conda create -n reels-clips-automator
$ conda activate reels-clips-automator
  1. Navigate to the cloned repository's folder:
$ cd folder
  1. Install the required dependencies:
$ python -m pip install -r requirements.txt
$ python -m pip install utils/auto-subtitle
  1. Create a .env file in the root directory of the project and include your OpenAI API Key:
OPENAI_API_KEY='Your-OpenAI-API-key-here'

Usage

To see the help:

$ python reelsfy.py --help

For a video from YouTube:

$ python reelsfy.py -v <youtube video url>

For a local file:

$ python reelsfy.py -f <video file>

Please note that videos should be approximately 20 minutes long due to the total token limit of the gpt-3.5-turbo-16k model.

Support

For any queries or support, feel free to reach out:

Contributions

Contributions to the project are welcome! Feel free to check out the code and submit a pull request.

License

This project is licensed under the MIT License.

Acknowledgements

This project was inspired by the work of NisaarAgharia's AI-Shorts-Creator.

reels-clips-automator's People

Contributors

eddieoz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

reels-clips-automator's Issues

Videos still out of sync

Hi,

I saw your latest commit and was excited to test but unfortunately, even with the updated code, the video clips it produces are still slightly out of sync with the audio.. The output is actually the same as it was before, I can't detect any noticeable improvement. I still can't pinpoint exactly why and how to fix it - I've been working on it for a while myself.

openai.error.RateLimitError:

Hello, i have limit on open ai but it will error.. i Put my open api key into .env file and my video time 04:11 long

(reels-clips-automator) C:\ai\reels-clips-automator>python reelsfy.py -v https://www.youtube.com/watch?v=Cuptv7-A4p0
[WinError 183] Cannot create an existing file: 'results'
[WinError 123] Incorrect file name, directory name or volume label syntax: 'results/https://www.youtube.com/watch?v=Cuptv7-A4p0'

but this file does not already exist and gives this error when first created

Traceback (most recent call last): File "C:\ai\reels-clips-automator\reelsfy.py", line 313, in <module> __main__() File "C:\ai\reels-clips-automator\reelsfy.py", line 285, in __main__ viral_segments = generate_viral(transcript) File "C:\ai\reels-clips-automator\reelsfy.py", line 198, in generate_viral response = openai.ChatCompletion.create( File "C:\Users\mero\.conda\envs\reels-clips-automator\lib\site-packages\openai\api_resources\chat_completion.py", line 25, in create return super().create(*args, **kwargs) File "C:\Users\mero\.conda\envs\reels-clips-automator\lib\site-packages\openai\api_resources\abstract\engine_api_resource.py", line 153, in create response, _, api_key = requestor.request( File "C:\Users\mero\.conda\envs\reels-clips-automator\lib\site-packages\openai\api_requestor.py", line 298, in request resp, got_stream = self._interpret_response(result, stream) File "C:\Users\mero\.conda\envs\reels-clips-automator\lib\site-packages\openai\api_requestor.py", line 700, in _interpret_response self._interpret_response_line( File "C:\Users\mero\.conda\envs\reels-clips-automator\lib\site-packages\openai\api_requestor.py", line 765, in _interpret_response_line raise self.handle_error_response( openai.error.RateLimitError: You exceeded your current quota, please check your plan and billing details.

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.