Giter VIP home page Giter VIP logo

motivational-video-ai-generator's Introduction

Motivational Video AI Generator

What is This?

This is a tool I created to use several AI programs in order to generate motivational short videos that can be posted on social media. It has support for outputting logs into discord using a discord bot.

Installation

I RECOMMEND THAT YOU SAVE THIS IN A SEPARATE FOLDER TO AVOID ANY FILES BEING ACCIDENTIALLY DELETED

Use the package manager pip to install the several necessary packages to run the script.

pip install elevenlabs assemblyai GPT4All moviepy pydub opencv-python-headless av ffmpeg-python pysrt pillow numpy 

Install ffmpeg using any of the methods seen here.

You will require the following accounts to run the script.

Add the proper AI keys to the following lines to set up the script.

client = ElevenLabs(
  api_key="ELEVENLABS_AI_KEY",
)
import assemblyai as aai
#ASSEMBLY AI API KEY
aai.settings.api_key = "ASSEMBLY_AI_KEY"

The font can also be changed by changing the following line to the font path.

font="./my-font.ttf"

Adding Media

In order to have background videos, there is a folder titled Media, in which 100 different videos titled 1.mp4 to 100.mp4 need to be provided in the 1080x1920px ratio (9:16 Vertical).

Adding Music

Just place a file titled music.mp3 into the root of the folder

Usage

Just run the start.bat file to open the script.

Discord Bot

A discord bot is highly recommended, and you can see how to create one here.

Replace the following lines with your bot information in the send_discord.py file to set up the bot.

# Replace with your bot token
BOT_TOKEN = 'BOT_TOKEN'
# Replace with your channel ID
CHANNEL_ID = CHANNEL_ID

motivational-video-ai-generator's People

Contributors

p3eky avatar

Stargazers

 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.