KayckMatias / zshorts-automatic-shorts-videos-generator

a project to automatically make shorts for youtube, tiktok...
MIT License
5 stars 0 forks source link

zshorts

A automatic shorts videos generator for youtube, tiktok and more...

Requirements

Installation

Configuration

First, you need to populate the "/static/videos" folder with videos that will be used as backgrounds for the generated shorts. (video example)

This system works with two modes: manual story and auto-generated story from GPT

Manual Story:

Set STORY_BY_GPT to false in .env file

Copy "/static/manual_story.json.default" to "/static/manual_story.json" and populate

Auto-Generated Story from GPT:

Turn true the STORY_BY_GPT and set your OPENAI_API_KEY in .env

You can customize the payload sended to ChatGPT generate the story in field PAYLOAD_CHATGPT on .env

You can change language in .env on LANGUAGE_CHATGPT variable.

Attention for "auto-generated story from GPT" mode

PAYLOAD_CHATGPT is a customizable payload, it is concatenated with another payload to generate the story in a standard way, if you want to change it, customize it in the file: "/src/services/chatgpt.js" however, it can cause problems in the system, be careful.

Attention for subtitle

We are using whisper to generate automatic subtitles, read more about the models (available and requirements) here

Usage

To use it is very simple, just after making the configuration run in your terminal:

npm run generate

Remember

If you are using manual story mode, you need populate the file "/static/manual_story.json" with the data you want for your story.

Future Update:

License

The MIT License (MIT). Please see License File for more information

Made with ♥ by Kayck Matias