Overview
This guide covers common errors, debugging strategies, and solutions for issues you might encounter while developing or using the AI Video Presentation Generator.Backend Issues
FFmpeg Not Found Error
FFmpeg Not Found Error
Error Message:Cause: FFmpeg is not installed or not in system PATH.Solutions:
-
Verify FFmpeg installation:
-
Install FFmpeg if missing:
- Download from https://ffmpeg.org/download.html
- Extract to
C:\ffmpeg(or preferred location) - Add
C:\ffmpeg\binto System PATH
-
Add to PATH (Windows):
- Open System Properties → Environment Variables
- Edit “Path” under System Variables
- Click “New” and add
C:\ffmpeg\bin - Restart your terminal after changing PATH
-
Set environment variable manually:
Manim Rendering Fails
Manim Rendering Fails
Error Message:Common Causes & Solutions:1. LaTeX not installed:2. Invalid Manim code generated:
Check the generated code in 3. Manim version incompatibility:4. Skip problematic animations:
The system automatically falls back to text slides if Manim fails. Check logs:5. Check Manim output directory permissions:
backend/outputs/manim_code/:The app will gracefully degrade to text-only slides if animations fail, so the video will still be generated.
API Key Errors
API Key Errors
Error Messages:Solutions:1. Missing .env file:2. Invalid or expired API keys:Check loading in app.py:4. API quota exceeded:
- Gemini: Get new key at https://makersuite.google.com/app/apikey
- Sarvam AI: Contact Sarvam AI for API access
- Unsplash: Get key at https://unsplash.com/developers
- Wait for rate limit reset (usually hourly)
- Upgrade to paid tier if needed
- Implement request caching (future enhancement)
CORS Errors
CORS Errors
Error Message (in browser console):Cause: Frontend origin not allowed by backend.Solutions:1. Check CORS middleware in app.py:2. Add your frontend URL:3. For development, allow all origins (NOT for production):4. Check backend is running:5. Restart backend after changes:
- CORS middleware changes require server restart
Ctrl+Cand runpython app.pyagain
SSE Progress Stream Not Working
SSE Progress Stream Not Working
Error Message:Solutions:1. Check SSE endpoint:2. Verify headers in app.py (line 190-196):3. Check frontend SSE connection:4. Browser console debugging:5. Nginx/proxy issues:
If using reverse proxy, disable buffering:
Python Module Import Errors
Python Module Import Errors
Error Messages:Solutions:1. Virtual environment not activated:2. Dependencies not installed:3. Wrong Python version:4. Check sys.path:5. Reinstall in development mode:
Video Generation Hangs or Freezes
Video Generation Hangs or Freezes
Symptoms:3. Reduce complexity:4. Check system resources:6. Clear output cache:
- Progress stops at specific percentage
- No error message
- Process becomes unresponsive
- 30-48%: Audio generation issues
- 50-80%: Manim rendering stuck
- 85-95%: Video composition memory issue
- Manim rendering is CPU-intensive
- Video composition is memory-intensive
- Ensure sufficient RAM (4GB+ free)
Frontend Issues
npm install fails
npm install fails
Error Messages:Solutions:1. Clear npm cache:2. Delete node_modules and reinstall:3. Use legacy peer deps (if peer conflict):4. Try different Node version:5. Use alternative package manager:
Vite Dev Server Won't Start
Vite Dev Server Won't Start
Error Messages:Solutions:1. Kill process on port 5173:2. Use different port:3. Check vite.config.js:
API Requests Fail from Frontend
API Requests Fail from Frontend
Error in browser console:Solutions:1. Verify backend is running:2. Check API URL in utils/api.js:3. Update Vite proxy (if needed):4. Check for CORS errors:
See “CORS Errors” section in Backend Issues.
Video Playback Issues
Video Playback Issues
Symptoms:2. Verify video URL:3. Test video endpoint directly:4. Check video format:5. Browser compatibility:
- Video player shows black screen
- “Failed to load media” error
- Video downloads but won’t play in browser
- Ensure using H.264 codec (most compatible)
- Try different browser
- Check browser console for specific errors
Build Errors (npm run build)
Build Errors (npm run build)
Error Messages:Solutions:1. Check for TypeScript errors:2. Clear Vite cache:3. Fix import paths:4. Check for dynamic imports:5. Increase Node memory:
System & Environment Issues
Windows PATH Not Working
Windows PATH Not Working
Symptom: Command not found after adding to PATHSolution:
- Close ALL terminal windows and IDEs
- Open new terminal
- Verify PATH:
- If still not working, restart computer
Permission Denied Errors
Permission Denied Errors
Error:Solutions:
- Run as administrator (Windows)
- Check file permissions:
- Change ownership:
- Ensure antivirus isn’t blocking
Disk Space Issues
Disk Space Issues
Symptom: Video generation fails partway throughCheck disk space:Solution:
- Ensure at least 2GB free space
- Clear old outputs:
Debugging Tips
Enable Verbose Logging
Backend:Check Network Requests
- Open browser DevTools (F12)
- Go to Network tab
- Trigger action (generate video)
- Inspect requests:
- Status codes (200, 404, 500)
- Response bodies
- Request headers
Monitor Backend Logs
All progress updates are printed to terminal:Test Individual Components
Test generators in isolation:Getting Help
If you’re still stuck:- Check the logs - Most issues leave error messages
- Search existing issues - GitHub Issues
- Create a new issue with:
- Error message (full traceback)
- Steps to reproduce
- System info (OS, Python version, etc.)
- What you’ve already tried
Setup Guide
Return to development setup
Dependencies
Review project dependencies