--- title: Viral Video Generator emoji: 🎬 colorFrom: purple colorTo: red sdk: docker app_port: 7860 suggested_hardware: cpu-upgrade startup_duration_timeout: 15m pinned: false --- # 🎬 Viral Video Generator AI-powered viral video creation tool that: 1. **Researches** any topic via web scraping (DuckDuckGo + trafilatura) 2. **Generates** viral video scripts using Ollama cloud models (Instagram viral hooks strategy) 3. **Creates** professional voiceover with edge-tts (300+ Microsoft Neural voices) 4. **Downloads** free stock images from Pexels API 5. **Renders** polished videos with Remotion (React-based) + FFmpeg fallback ## Features - 🔍 **Automated Research**: Scrapes multiple sources for comprehensive topic coverage - 🎯 **Viral Script Writing**: Uses proven Instagram/TikTok viral formulas (hooks, tension, value bombs) - 🎤 **12 Neural Voices**: Microsoft edge-tts with adjustable speed - 🖼️ **Free Stock Media**: Pexels API (no attribution required) - 🎬 **Professional Rendering**: Ken Burns effect, smooth transitions, text overlays, synced audio - 📐 **Multiple Formats**: 9:16 (Reels), 16:9 (YouTube), 1:1 (Posts), 4:5, 4:3 - 🎨 **Themes**: White (clean) or Black (cinematic) ## Quick Start 1. Get a **free Pexels API key** at [pexels.com/api](https://www.pexels.com/api/) 2. Get your **Ollama API key** from your Ollama cloud dashboard 3. Enter both keys in the app 4. Choose your topic, style, and generate! ## Tech Stack - **Video**: Remotion v4 (React) + FFmpeg - **TTS**: edge-tts + pydub (AudioSegment) - **AI**: Ollama Cloud (OpenAI-compatible API) - **Scraping**: DuckDuckGo + trafilatura + BeautifulSoup4 - **Images**: Pexels API - **UI**: Gradio