This project creates shortform videos (like TikTok, Reels) from plain text using AI tools.
✨ Features
- 🔊 Text-to-speech using TikTok TTS
- 🧠 AI-generated, word-level subtitles using OpenAI Whisper
- 🎥 Automatic video composition with background video & music
- 💬 Burned-in, styled subtitles (font size, position, bold)
- 🧪 One command = complete video with synced captions
🛠 Tech Stack
- Node.js + TypeScript
- OpenAI Whisper API
- FFmpeg via fluent-ffmpeg
- TikTok TTS (unofficial API)
📦 Installation
git clone https://github.com/Ali-Onar/shortform-video-generator.git
cd shortform-video-generator
npm installCreate a .env file:
OPENAI_API_KEY=your_openai_key_hereUsage
Add video and music into src/assets folder.
npx tsx src/index.tsYour final video will be saved in /output/output.mp4
Acknowledgements
Inspired by the egebese/brainrot-generator repo that Ege created with Python codes.
from https://github.com/Ali-Onar/shortform-video-generator
No comments:
Post a Comment