How aify688/ai-auto-editor works
QuickCut is a local video-editing application: the React editor manages projects and an EDL, while a FastAPI backend accepts media and runs background jobs for analysis, edit generation, and rendering. The result is previewed and exported as video. The graph includes documented music, captions, templates, text-to-video, and timeline-editing capabilities. Some subsystem links are grounded only in README descriptions or SOURCE INDEX references; unsampled implementation details are not inferred.
Main entry points: pipeline.py Edit pipeline · project.ts Project state · main.py FastAPI application · media.py Media routes
Components 26
Editor interface
- Editor shell
frontend/src/App.tsx - AI edit controls
frontend/src/components/ai-editor/AiEditPanel.tsx - Preview player
frontend/src/components/preview/PreviewPanel.tsx - Timeline editor
frontend/src/components/timeline/Timeline.tsx - Project state
frontend/src/store/project.ts - Job polling
frontend/src/hooks/useJobs.ts - API client
frontend/src/services/api.ts
API and jobs
- FastAPI application
backend/main.py - Job routes
backend/api/jobs.py - Media routes
backend/api/media.py - Background jobs
backend/workers/jobs.py
Media and editing
- Edit pipeline
backend/services/pipeline.py - Media ingest
backend/services/media.py - Media analysis
backend/services/analysis.py - Edit planning
backend/services/editing.py - Instruction planning
backend/services/instructions.py - Music services
backend/services/music_reco.py - Speech captions
backend/services/textvideo.py - Edit templates
backend/services/templates.py
Rendering engine
- EDL renderer
backend/services/rendering.py - FFmpeg engine
video_editor/engine.py - FFmpeg tools
video_editor/ffmpeg_ops.py
Project persistence
- Project service
backend/services/projects.py - SQLite database
backend/db.py
Other components
- Editor user
- FFmpeg executable
Connections 27
- Editor user → Editor shell: edits project
- Editor shell → Project state: loads project
frontend/src/App.tsx - AI edit controls → Job polling: starts generation
frontend/src/components/ai-editor/AiEditPanel.tsx - Preview player → Project state: reads project
frontend/src/components/preview/PreviewPanel.tsx - Timeline editor → Project state: edits timeline
- Job polling → API client: polls jobs
frontend/src/hooks/useJobs.ts - Project state → API client: loads and saves
frontend/src/store/project.ts - API client → FastAPI application: sends requests
- FastAPI application → Job routes: registers routes
backend/main.py - FastAPI application → Media routes: registers routes
backend/main.py - Job routes → Background jobs: dispatches jobs
backend/api/jobs.py - Media routes → Media ingest: uses media service
backend/api/media.py - Media routes → Background jobs: dispatches processing
backend/api/media.py - Background jobs → Edit pipeline: runs job handlers
backend/services/pipeline.py - Edit pipeline → Media ingest: uses media assets
backend/services/pipeline.py - Edit pipeline → Media analysis: analyzes media
backend/services/pipeline.py - Edit pipeline → Edit planning: plans edit
backend/services/pipeline.py - Edit pipeline → Instruction planning: applies instructions
backend/services/pipeline.py - Edit pipeline → Music services: selects music
backend/services/pipeline.py - Edit pipeline → Speech captions: transcribes speech
backend/services/pipeline.py - Edit pipeline → Edit templates: uses templates
backend/services/pipeline.py - Edit pipeline → EDL renderer: renders EDL
backend/services/pipeline.py - Edit pipeline → Project service: updates renders
backend/services/pipeline.py - Project service → SQLite database: reads and writes
backend/services/projects.py - EDL renderer → FFmpeg engine: renders timeline
backend/services/rendering.py - FFmpeg engine → FFmpeg tools: runs media operations
video_editor/engine.py - FFmpeg tools → FFmpeg executable: executes commands
video_editor/ffmpeg_ops.py