How praveen-m11/ai-video-editing works
IncuBrix is a prompt-driven video editor: users ingest media, create a session, submit natural-language or direct timeline edits, and export rendered video. Its core stages are media intake and transcription, instruction interpretation, deterministic timeline mutation with reversible history, and asynchronous rendering. The README documents the overall workflow and optional providers; source-index references and excerpts support selected internal calls, while unsampled route and service details are represented only at their documented subsystem level.
Main entry points: main.py FastAPI Application · engine.py Timeline Engine · video_service.py Video Intake · instruction_service.py Instruction Service
Components 26
Editing Studio
- Web Studio
frontend/src/App.jsx - API Client
frontend/src/api.js
API and Sessions
- FastAPI Application
app/main.py - Video Routes
app/api/videos.py - Session Routes
app/api/sessions.py - Instruction Routes
app/api/instructions.py - Subtitle Routes
app/api/subtitles.py - Session Service
app/services/session_service.py - Application Database
app/models/base.py
Media Processing
- Video Intake
app/services/video_service.py - Transcription
app/transcription - Subtitle Service
app/services/subtitle_service.py - Translation
app/services/translation_service.py
Timeline Editing
- Instruction Service
app/services/instruction_service.py - Prompt Interpreter
app/interpreter/base.py - Timeline Engine
app/timeline/engine.py - Content Mapping
app/timeline/mapping.py - Edit History
app/timeline/history.py - Timeline Hashing
app/timeline/hashing.py
Rendering and Storage
- Render Jobs
app/jobs/queue.py - Render Service
app/services/render_service.py - FFmpeg Renderer
app/renderer/ffmpeg.py - Media Storage
app/storage
Other components
- Editor
- OpenAI Services
- FFmpeg / FFprobe
Connections 31
- Editor → Web Studio: edits with
- Web Studio → API Client: requests
frontend/src/App.jsx - API Client → FastAPI Application: calls HTTP API
- FastAPI Application → Video Routes: registers
app/main.py - FastAPI Application → Session Routes: registers
app/main.py - FastAPI Application → Instruction Routes: registers
app/main.py - FastAPI Application → Subtitle Routes: registers
app/main.py - Video Routes → Video Intake: delegates intake
app/api/videos.py - Video Intake → Media Storage: stores media
- Video Intake → Transcription: transcribes audio
- Video Intake → FFmpeg / FFprobe: inspects media
- Session Routes → Session Service: creates sessions
app/api/sessions.py - Session Routes → Instruction Service: submits edits
app/api/sessions.py - Instruction Routes → Instruction Service: delegates instructions
app/services/instruction_service.py - Instruction Service → Prompt Interpreter: interprets prompts
app/services/instruction_service.py - Instruction Service → Timeline Engine: executes proposals
app/services/instruction_service.py - Timeline Engine → Content Mapping: maps source time
app/timeline/engine.py - Timeline Engine → Edit History: tracks edits
app/timeline/engine.py - Timeline Engine → Timeline Hashing: hashes timeline
app/timeline/engine.py - Session Service → Timeline Hashing: hashes initial timeline
app/services/session_service.py - Session Service → Application Database: persists sessions
app/services/session_service.py - Subtitle Routes → Subtitle Service: delegates subtitles
- Subtitle Service → Translation: translates captions
app/services/subtitle_service.py - Subtitle Service → Transcription: uses transcript
app/services/subtitle_service.py - Translation → OpenAI Services: requests translation
app/services/translation_service.py - Timeline Engine → Translation: translates caption text
app/timeline/engine.py - Editor → Render Jobs: requests export
- Render Jobs → Render Service: dispatches render
- Render Service → FFmpeg Renderer: builds render
- FFmpeg Renderer → Media Storage: stores output
app/renderer/ffmpeg.py - FFmpeg Renderer → FFmpeg / FFprobe: renders media
app/renderer/ffmpeg.py