Transform your footage into stories β AI-powered documentary and clipping studio for Seattle/Washington creators.
Built on AFRO-CLIPZ: Multimodal AI clipping that lets you clip any moment from any video using visual, audio, and sentiment cues.
π Deploy Now Guide β One-click deployment to Railway, Render, or Docker
This repository now includes a complete zero-secrets deployment architecture that allows you to deploy on Railway (or Coolify) without requiring any API keys or secrets!
Deploy to Railway in one click:
- β No secrets required
- β Works immediately
- β Free tier optimized
- β Auto-scaling protection
Features:
- π Zero-secrets architecture with safe stubbing
- π° Cost protection and automatic monitoring
- π§ Maintenance mode with auto-migration
- π Multi-platform support (Railway, Coolify, VPN)
- π Resource usage guardrails
π Full Deployment Guide | β Deployment Checklist
- Youtube Tutorial β https://youtu.be/R_3kexWz4TU
- Medium Article β https://medium.com/@anilmatcha/clipanything-free-ai-video-editor-in-python-tutorial-526f7a972829
- API Documentation β https://docs.vadoo.tv/docs/guide/create-ai-clips
Harness cutting-edge technology to analyze every aspect of your video. Our state-of-the-art system evaluates each frame, combining visual, audio, and sentiment cues to identify objects, scenes, actions, sounds, emotions, texts, and more. Each scene is rated for its potential virality, giving you insights into what makes your content compelling.
Tailor your video clips to your exact needs. Whether you're looking to compile highlights from a sports game or showcase the best moments from a travel vlog, simply enter your prompts. We'll personalize your clips, automatically capturing key moments to align with your vision.
Demo Input -> https://www.youtube.com/watch?v=U9mJuUkhUzk
Deploy with zero configuration:
# Install Railway CLI
npm install -g @railway/cli
# Login and deploy
railway login
railway init
railway upβ Zero-Secrets Mode (Default)
- No API keys needed
- Mock AI responses
- Safe for demos
- Free tier friendly
β Full Integration Mode (Optional)
- Set
GROQ_API_KEYenvironment variable - Real AI processing
- Production ready
Deploy on your own infrastructure:
# Follow setup guide
# Configure git repository
# Deploy with one clickDeploy behind VPN for enhanced security:
Built-in guardrails prevent runaway costs:
- β Resource usage monitoring
- β Automatic shutdown on limit
- β Maintenance mode activation
- β Migration to Coolify guidance
Configuration:
ENABLE_COST_MONITORING=true
FREE_TIER_LIMIT_MB=500
AUTO_SHUTDOWN_ON_LIMIT=trueThe application works without any API keys:
- External integrations safely stubbed
- Mock responses for testing
- No secrets in repository
- Safe for public deployment
-
Get API Key
- Visit https://console.groq.com/keys
- Create free account
- Generate API key
-
Set Environment Variable
# Railway railway variables set GROQ_API_KEY=gsk_your_key_here # Coolify # Add via dashboard: GROQ_API_KEY=gsk_your_key_here # Local export GROQ_API_KEY=gsk_your_key_here
-
Redeploy
- Application automatically switches to full AI mode
- Real processing enabled
- No code changes needed
# Clone repository
git clone https://github.com/executiveusa/AFRO-CLIPZ.git
cd AFRO-CLIPZ
# Install dependencies
pip install -r requirements.txt
# Run application (enhanced version with zero-secrets)
python app_enhanced.py
# Or run original version
python app.py# Copy template
cp .env.example .env
# Edit .env with your settings
nano .env
# Key variables:
# - GROQ_API_KEY: Your API key (or 'stub-key' for stub mode)
# - WHISPER_MODEL: base, small, medium, large
# - FREE_TIER_LIMIT_MB: Memory limit for cost protection# Basic usage
from app_enhanced import main
main()
# With custom query
import os
os.environ['USER_QUERY'] = "Find all clips about artificial intelligence"
main()- DEPLOYMENT.md - Complete deployment guide
- .agents - Secret specifications and schema
- COOLIFY_SUPPORT.md - Coolify setup instructions
- COOLIFY_MIGRATION.md - Railway β Coolify migration
- HOSTINGER_VPN_DEPLOYMENT.md - VPN setup guide
- master.secrets.json.template - Secret management template
railway.toml- Railway deployment configurationrailway.json- Service definitionsnixpacks.toml- Build configurationProcfile- Process definitions.env.example- Environment variables template.gitignore- Excludes secrets from gitmaintenance.html- Maintenance mode page
- π¬ AI-powered video clipping
- ποΈ Automatic transcription with Whisper
- π€ Intelligent segment selection with LLM
- βοΈ Automated video editing
- π¨ Smooth transitions and effects
- π Zero-secrets architecture
- π° Cost protection guardrails
- π§ Automatic maintenance mode
- π Multi-platform support
- π Resource monitoring
- π Migration automation
- π Master secrets management
- π VPN deployment support
- π Usage tracking
- π¨ Auto-shutdown on limits
- π Migration checklists
-
Transcription
- Extract audio from video
- Generate transcript with Whisper
- Segment by timestamps
-
AI Analysis (with API key) / Mock Selection (without)
- Analyze transcript against user query
- Select relevant conversations
- Identify optimal clip boundaries
-
Video Editing
- Extract selected segments
- Apply smooth transitions
- Combine into final video
- Export with original quality
# Check Python version
python3 --version # Should be 3.12+
# Check dependencies
pip install -r requirements.txt
# Check logs
railway logs # On Railway# Verify API key is set
echo $GROQ_API_KEY
# Check stub mode indicator in logs
# Look for: "β οΈ STUB MODE: Using mock AI responses"
# Set real API key
export GROQ_API_KEY=gsk_your_key_here# Increase limit
railway variables set FREE_TIER_LIMIT_MB=1000
# Or migrate to Coolify
# See COOLIFY_MIGRATION.md- Python 3.12+
- FFmpeg
- 2GB+ RAM
- 2GB+ disk space
- Free tier: 512MB RAM
- Recommended: Hobby tier (2GB RAM)
- VPS with 2GB+ RAM
- Docker support
- Ubuntu 20.04+ recommended
Contributions welcome! Please:
- Fork the repository
- Create feature branch
- Make changes
- Test thoroughly
- Submit pull request
See LICENSE file for details.
- Original ClipAnything: @anilmatcha
- OpenAI Whisper: OpenAI
- Groq API: Groq
- Railway: Railway.app
- Coolify: Coolify
- GitHub Issues: https://github.com/executiveusa/AFRO-CLIPZ/issues
- Deployment Help: See DEPLOYMENT.md
- Migration Guide: See COOLIFY_MIGRATION.md
Status: β Production Ready (Zero-Secrets Mode)
Last Updated: 2025-12-04
