How litheshan07/invincible-studios-captions works
Studio Ultimate is a browser-based captioning and video-editing app. Users import a video, obtain a transcript with timed caption segments, edit and style captions in a preview, then export a subtitled video locally. The README documents browser-side rendering and encoding; the sampled UI code shows the editor, undo history, and subtitle renderer. Server routes also provide transcription/translation and project lookup, plus an optional backend proxy. The exact client-to-processing request and some export internals were not shown, so those connections are marked unverified or omitted.
Main entry points: route.ts Transcription and Translation · EditorLayout.tsx Timeline Editor · page.tsx Captioning Workspace · subtitleRenderer.ts Subtitle Renderer
Components 16
Captioning Client
- Captioning Workspace
src/app/page.tsx - Timeline Editor
src/app/EditorLayout.tsx - Undo History
src/app/hooks/useUndoHistory.ts
Preview and Export
- Subtitle Renderer
src/app/utils/subtitleRenderer.ts - Browser Video Canvas
- WebCodecs Encoder
- MP4 Muxer
src/app/page.tsx - Exported Video
Processing API
- Transcription and Translation
src/app/api/v1/projects/process/route.ts - ElevenLabs Speech-to-Text
- Google Translate
Project Access
- In-Memory Project Store
src/app/api/v1/projects/process/route.ts - Project Lookup
src/app/api/v1/projects/[id]/route.ts - API Backend Proxy
src/app/api/v1/[...path]/route.ts
Other components
- Video Editor
- Render Backend
Connections 16
- Video Editor → Captioning Workspace: imports video
src/app/page.tsx - Captioning Workspace → Timeline Editor: renders editor
src/app/page.tsx - Captioning Workspace → Undo History: uses history
src/app/page.tsx - Timeline Editor → Subtitle Renderer: draws captions
src/app/EditorLayout.tsx - Video Editor → Timeline Editor: edits captions
src/app/EditorLayout.tsx - Timeline Editor → Browser Video Canvas: previews video
- Browser Video Canvas → WebCodecs Encoder: provides frames
README.md - Subtitle Renderer → Browser Video Canvas: renders subtitles
README.md - WebCodecs Encoder → MP4 Muxer: outputs frames
README.md - MP4 Muxer → Exported Video: produces MP4
README.md - Video Editor → Transcription and Translation: submits video
- Transcription and Translation → ElevenLabs Speech-to-Text: transcribes audio
src/app/api/v1/projects/process/route.ts - Transcription and Translation → Google Translate: translates text
src/app/api/v1/projects/process/route.ts - Transcription and Translation → In-Memory Project Store: initializes store
src/app/api/v1/projects/process/route.ts - Project Lookup → In-Memory Project Store: reads project
src/app/api/v1/projects/[id]/route.ts - API Backend Proxy → Render Backend: forwards requests
src/app/api/v1/[...path]/route.ts