Hack Brooklyn 2026 · 48 hours · 3rd Place
Short-form video retention engine. Turn viral Shorts into teaching templates.
Drop in any TikTok, Reel, or YouTube Short whose pacing hooks you. Pick a topic you want to teach. Reelize reverse-engineers the reference's retention structure (hook timing, beat grid, scene rhythm, voice cadence) and delivers a finished short on that blueprint. Not a script. A video.
- Team
- 2 builders
- When
- Apr 17-19, 2026
- Result
- 3rd Place
- Code
- GitHub
My roleI built the Expo app, the visual analysis (Gemini scene detection plus a keyframe refinement pass), script and voice generation, and the renderer.
Project Overview
The problem
Short-form video is the most effective retention format ever invented. Creators on TikTok and YouTube Shorts have engineered pacing, hooks, and beat structures that hold viewers for 60 straight seconds.
Meanwhile educators, and anyone trying to explain a complex idea online, are still losing people in the first three seconds. The retention blueprints exist. They just aren't reusable.
What it does
Reelize lets you drop in any TikTok, Reel, or YouTube Short whose pacing hooks you, pick a topic you want to teach, and reverse-engineers the reference's retention structure: hook timing, beat grid, scene rhythm, voice cadence.
The output is a fully rendered short on that blueprint, delivered to your phone, ready to publish.
Full mobile + web + backend shipped end to end.
The Pipeline
Analyze
Demucs for audio stem separation, Whisper for transcription, Shazam for music ID, librosa for beat grid and energy envelope, pyannote for speaker diarization, and Gemini for scene detection with a keyframe refinement pass.
Extract
Hook timing, pacing curve, visual rhythm, and voice cadence assembled into a single shared manifest that every downstream stage reads from.
Generate
Gemini writes a script aligned to the reference's beat grid (beat grid and energy envelope fed directly into the prompt). ElevenLabs synthesizes the voiceover. Music and SFX matched to the original's energy curve.
Render
Remotion (a React-based video framework) composes the final video with layered voice, music, SFX, and footage timed to the original's beat grid at millisecond precision.
Tech Stack
ClientExpo / React Native
iOS · Android · WebCross-platform app handling upload, preview, and download. Signed-URL flows to Cloudflare R2 to dodge platform-specific multipart upload quirks across iOS, Android, and web.
BackendFastAPI orchestration
Python · Serialized job queueFastAPI orchestrates a serialized job queue so GPU-heavy analysis and render stages don't fight over memory. One job flows end to end before the next begins.
AI modelsSeven specialized services
Demucs · Whisper · Shazam · librosa · pyannote · Gemini · ElevenLabsEach model specializes in one signal: stems, transcript, music ID, beat grid, diarization, scene detection, and voice synthesis. A shared manifest unifies their output.
RendererRemotion (React-based)
Millisecond-level compositionRemotion composes the final video deterministically: voice, music, SFX, and footage aligned to the reference's beat grid with millisecond precision.
InfrastructureSupabase + Cloudflare R2
Postgres · Object storage · DockerSupabase Postgres tracks job state across the pipeline. Supabase Storage plus Cloudflare R2 hold media assets (source videos, stems, renders) behind signed URLs.
- Python
- TypeScript
- React Native
- Expo
- FastAPI
- Remotion
- Google Gemini
- ElevenLabs
- Whisper
- Demucs
- librosa
- pyannote
- Shazam
- Supabase
- Cloudflare R2
- Docker
- PostgreSQL
- FFmpeg
Built with Isaac SassonApril 17-19, 2026 · 48 hours
Challenges
Systems & orchestration
- Pipeline orchestration
Seven specialized services producing data in different shapes and timing spaces. Half the 48 hours went into designing a single shared manifest with retries and partial-failure recovery. The AI models were commodities; the pipeline was the product.
- GPU contention
Running Demucs, Whisper, and pyannote at the same time on one machine melted GPU memory. Solved with a serialized job queue that processes one job end to end.
- Beat-grid alignment
Getting a generated script to land emphasis on the reference's existing beat drops meant feeding the beat grid and energy envelope directly into the LLM prompt, not just the transcript.
Signal & rendering
- Scene detection accuracy
Single-pass Gemini detection missed half-second cuts on fast-edited Shorts. Added a keyframe refinement pass that re-checks boundaries with pixel-level diffs.
- Render determinism
Aligning voice, music, and footage to the millisecond inside Remotion meant normalizing every timing source to a single clock before composition.
- Cross-platform uploads
Expo file handling differs across iOS, Android, and web. Replaced direct multipart API uploads with signed-URL flows to R2.
Project Gallery
Full write-up on Devpost.
Coverage & Write-up
Seven AI Services in 48 Hours: Building Reelize at Hack Brooklyn 2026
The full project write-up: the short-form video retention engine that reverse-engineers viral Shorts, and why the AI models weren't the hard part.
Read on MediumLinkedInMonmouth University CSSEMonmouth University Recognizes Reelize Win at Hack Brooklyn 2026
Monmouth University CSSE celebrated the team's 3rd place finish at Brooklyn College's first-ever hackathon.
View post