Clipora - AI Clip Generator for TikTok, Reels and Shorts
Clipora turns one long video into ready-to-post TikTok, Reels and Shorts clips. Gemini scores every shot for viral potential and FFmpeg cuts the winners.
Role: Full Stack + ML Engineer. Team: Individual. Status: Complete. Year: 2025.
Overview
Problem. The best 30 seconds of a long video are buried somewhere in the footage. Finding them by hand is the slowest part of posting short-form, so most long videos never get clipped at all.
Approach. Let the machine watch first. Clipora splits the upload into shots with Google's Video Intelligence API, transcribes it, and has Gemini 2.0 Flash score each moment on what it sees and hears. The top-scoring moments are cut with FFmpeg and formatted for TikTok, Reels and Shorts. Work runs on Cloud Run behind Pub/Sub, so long videos are processed in batches instead of timing out a request, and Terraform defines the whole GCP setup.
Outcome. A complete pipeline from upload to finished clips, driven from a React Native app for iOS and Android.
Lessons. "Virality" is not a field you can read off a video. The hard part was turning it into something a model scores consistently, and cutting on clean boundaries instead of mid-sentence.
How it works: 1. Upload a long video from the app 2. Shot detection breaks it into scenes 3. Gemini scores each scene on visual and audio pull 4. FFmpeg cuts the best ones to each platform's format 5. Clips come back to the app, ready to post
Architecture:
- Mobile: React Native
- API: Node.js and Express on Cloud Run
- Video: Google Video Intelligence API for shot detection
- AI: Gemini 2.0 Flash for multimodal scoring
- Processing: FFmpeg for clip extraction
- Infrastructure: Cloud Run, Pub/Sub, and Terraform
Why This Architecture:
- Video Intelligence API handles shot detection at scale
- Gemini multimodal can evaluate visual + audio virality factors
- FFmpeg provides precise, efficient clip extraction
- Terraform ensures reproducible infrastructure
Key features
- Gemini multimodal virality scoring
- Video Intelligence API shot detection
- Automatic clip extraction with FFmpeg
- TikTok/Reels/Shorts format optimization
- React Native mobile app
- Terraform-managed GCP infrastructure
- Batch processing for long videos
Technical details
- Video: GCP Video Intelligence API for shot/scene detection
- AI: Vertex AI Gemini multimodal for content analysis
- Processing: FFmpeg for precise clip extraction
- Backend: Node.js and Express on Cloud Run
- Mobile: React Native for iOS/Android
- Infrastructure: Cloud Run, Pub/Sub, and Terraform
- Storage: Cloud Storage for video assets
Challenges
- Defining and scoring 'virality' factors objectively
- Processing long videos efficiently in cloud environment
- Extracting clips with precise timing and transitions
- Optimizing output for different platform requirements
Tags: Node.js, Express, Cloud Run, React Native, Gemini, FFmpeg