GithubHelp home page GithubHelp logo

p4thakur / ai_short_video_generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kolligopinath/ai_short_video_generator

0.0 0.0 0.0 9.74 MB

Automated short video generated using Artificial intelligence tools

Python 74.28% HTML 25.72%

ai_short_video_generator's Introduction

AI_short_video_generator

Automated short video generated using Artificial intelligence tools.

This can be used to Generate instagram reels, Tiktok videos, Youtube shorts in wide range of topics like Travel, lifestyle, fashion, Short stories for kids, etc,.

This can generate lengthy videos as well in those areas.

How it has been built?

Topic selection: This project asks chatGPT to create a topic based on users input

Content /Script Generation: Based on the topic, chatGPT generates a video script, title, and description for the video.

Voiceover Generation: It uses Eleven Labs API to generate voiceovers for each line of text.

Image Generation: It generates relevant images for each line of the script, based on the topic using DALLE.

Video generation: Now the Voice over audio & images are pieced together to generate video.

A sample output file is attached - Mother and Childs Colorful Tale.mp4

Steps to be followed for using this project:

You need two account to make use of this project.

1. ChatGPT 4

2. Eleven labs

In the file AI_short_video_generator/AI_short_video_generator.py Give your API keys for openai & elevenlabs

You need a Python instance insalled on your system with the following packages

openai, requests, nltk, urllib.request, datetime, moviepy, flask, re(pip install these packages)

Now run the app.py file from your teminal, this will generate a link with local server to launch the application. Launch the application using that link.

http://127.0.0.1:5000

Now you can see the UI as below screenshot.

image

Type in the topic in detail on which you want to generate your video and then click on Generate.

It will take its time to do the magic and once the process is complete, it will automatcally opens a popup to download that video.

That's it!!!

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.