Automated video generation pipeline that creates TikTok-style videos from topics using AI.
- Content Generation: GPT-4 creates slide content and captions
- Image Generation: DALL-E 3 generates vertical TikTok images
- Narration: ElevenLabs text-to-speech for voiceovers
- Video Assembly: MoviePy combines images, text, and audio
- Data Sources: CSV files or Airtable integration
- Automation: Webhooks and scheduling for batch processing
- Install dependencies:
pip install -r requirements.txt
- Configure environment variables:
cp .env.example .env
# Edit .env with your API keys
- Create output directories:
mkdir -p output/{images,audio,videos}
python main.py --topic "5 Amazing Space Facts"
python main.py --batch --source csv --csv-path topics.csv --limit 3
python main.py --batch --source airtable --limit 5
python main.py --topic "Your Topic" --voice-id "your_elevenlabs_voice_id"
cd automation
python make_webhook.py
Webhook endpoint: http://localhost:5000/generate-video
python automation/scheduler.py
Edit config.py
to customize:
- Video settings (duration, FPS, dimensions)
- Output directories
- Default voice settings
- OpenAI API key (GPT-4 + DALL-E 3)
- ElevenLabs API key (text-to-speech)
- Airtable API key (optional, for Airtable integration)
output/
├── images/
│ └── {video_id}/
│ ├── slide_1.png
│ └── slide_2.png
├── audio/
│ └── {video_id}_narration.mp3
├── videos/
│ └── {video_id}.mp4
└── {video_id}_manifest.json