Skip to content

Automate the creation of dialogue-based videos. Define your script, speakers, and visual elements, and let this engine render the conversation.

Notifications You must be signed in to change notification settings

FelippeChemello/AI-Video-Engine

Repository files navigation

AI Vídeo Engine

Automate video creation from research to rendering

AI Vídeo Engine is a Node.js toolkit that orchestrates multiple LLMs, text-to-speech, and Remotion compositions to create engaging short videos for social media.

See examples: YouTube @codestackme | TikTok @codestackme

Table of Contents

Requirements

Installation

pnpm install

Environment variables

Create a .env file at the project root. Required variables are validated in src/config/env.ts:

  • AI Models: GEMINI_API_KEY, OPENAI_API_KEY, ANTHROPIC_API_KEY
  • Search & Email: GOOGLE_SERP_API_KEY, GOOGLE_SERP_ID, GMAIL_CLIENT_ID, GMAIL_CLIENT_SECRET, GMAIL_REFRESH_TOKEN
  • Audio Services: MFA_BASE_URL, MFA_API_KEY, AENEAS_BASE_URL, AENEAS_API_KEY, ELEVENLABS_API_KEY
  • Script Management: NOTION_TOKEN, NOTION_DEFAULT_DATABASE_ID, NOTION_NEWS_DATABASE_ID

Pre-requisites

  • Download background videos (mp4 files) and place them in public/assets/. These will be used randomly in video compositions.
  • Replace public/assets/cody.png and images in src/video/Felippe.tsx with your own profile pictures.

Available scripts

Run any command with pnpm <command>:

Content Generation

  • dev:script <topic> – Generate a video script about any topic using AI research and writing
  • dev:newsletter [file] – Convert newsletter content into video scripts (fetches from Gmail if no file provided)
  • dev:news – Research latest news and generate video scripts automatically
  • dev:debate <topic1> [topic2...] – Create debate videos with opinions from multiple AI models (OpenAI, Anthropic, Gemini, Grok)

Video Production

  • dev:video – Download scripts from Notion, align audio, and render all video compositions
  • dev:remotion – Preview video compositions in the browser using Remotion Studio

Utilities

  • dev:metrics – Fetch and display TikTok analytics metrics
  • dev:output – Download finished videos and thumbnails from Notion

Usage examples

Generate a video from a topic:

pnpm dev:script "Artificial Intelligence"
pnpm dev:video

Create a debate video:

pnpm dev:debate "Should AI replace developers?" "Future of remote work"
pnpm dev:video

Process newsletter into video:

pnpm dev:newsletter
pnpm dev:video

Preview compositions:

pnpm dev:remotion

Contributing

Contributions are welcome! If you spot a bug or want to add features:

  1. Fork this repository and create a new branch for your changes.
  2. Install dependencies with pnpm install.
  3. Commit your work and open a pull request describing what you've done.

Feel free to open issues for questions or ideas.

About

Automate the creation of dialogue-based videos. Define your script, speakers, and visual elements, and let this engine render the conversation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages