Automated viral video generation engine for TikTok, Instagram Reels, and YouTube Shorts.
✅ Core Components Implemented:
- Template management system (29 viral templates)
- Script generation with OpenAI GPT-4o
- Media APIs (Pexels, Pixabay)
- Voiceover generation with ElevenLabs
- Video assembly with FFmpeg
- CLI interface
- FFmpeg installation required for video processing
Windows:
- Download FFmpeg from https://www.gyan.dev/ffmpeg/builds/
- Extract to
C:\ffmpeg - Add
C:\ffmpeg\binto your system PATH - Restart your terminal
Alternative for Windows (using Chocolatey):
choco install ffmpegMac:
brew install ffmpegLinux:
sudo apt update
sudo apt install ffmpegnpm installCreate a .env file with:
OPENAI_API_KEY=your_key_here
ELEVENLABS_API_KEY=your_key_here
PEXELS_API_KEY=your_key_here
PIXABAY_API_KEY=your_key_herenpm run checknpm testnpm run dev -- generate -t "5 Amazing Life Hacks"npm run dev -- templatesCreate a file topics.txt:
5 Morning Routine Tips
3 Productivity Hacks
Top AI Tools 2024
Then run:
npm run dev -- batch -f topics.txt✅ Working:
- API key validation
- Template loading
- Script generation (OpenAI)
- Voiceover generation (ElevenLabs)
- Video clip discovery (Pexels/Pixabay)
- Video clip downloading
❌ Blocked by FFmpeg:
- Video processing
- Audio merging
- Caption overlay
- Final video assembly
- Install FFmpeg using the instructions above
- Run
npm testagain after FFmpeg is installed - The system will generate a complete viral video
Input (Topic) → Template Selection → Script Generation → Voiceover → Video Clips → Assembly → Output (MP4)
Videos are saved to:
output/- Final videostemp/- Temporary processing files (auto-cleaned)