How sahilsleem/autocut works
AutoCut is a unified video editor with separate long-form and vertical workflows. Users import footage, build or refine timelines, preview edits, and render finished video; the long-form workflow adds transcription, media analysis, semantic matching, and automated timeline drafting. The graph includes the documented worker/native processing options and persistent project state. Source excerpts and the index establish several client-side calls; some worker internals are unsampled, so their links are limited to documented or explicitly shown relationships.
Main entry points: useProjectStore.ts Project state · MainActivity.java Native plugin registration · LongFormEditor.tsx Long-form editor · App.tsx Mode selection
Components 34
Editing workflows
- Mode selection
src/App.tsx - Long-form editor
src/LongFormEditor.tsx - Vertical editor
src/ShortsEditor.tsx - Timeline and preview
src/components/Timeline.tsx - Caption controls
src/components/TranscriptPanel.tsx
Media intelligence
- Speech transcription
src/engine/transcription.ts - Media analysis
src/engine/mediaAnalysis.ts - Visual understanding
src/engine/vision.ts - Semantic matching
src/engine/matching.ts - Timeline drafting
src/engine/draftTimeline.ts - Project preparation
src/engine/preparation.ts - Vision worker
server/vision_server.py - Matching worker
server/matching_server.py - Transcription worker
server/transcribe_server.py
Processing and render
- Render controls
src/components/RenderModal.tsx - Render pipeline
src/engine/render.ts - Platform rendering
src/platform/render.ts - Render worker
server/render_server.py
Platform and persistence
- Project state
src/state/useProjectStore.ts - Project and timeline schema
src/types/project.ts - Project persistence
src/engine/persistence.ts - Worker routing
src/config/workerConfig.ts - Worker diagnostics
src/engine/workers.ts - Android media access
src/platform/androidMedia.ts
Android native engines
- Native plugin registration
android/app/src/main/java/com/longformai/app/MainActivity.java - Native BLIP engine
android/app/src/main/java/com/longformai/app/NativeBlipEngine.java - WordPiece tokenizer
android/app/src/main/java/com/longformai/app/BertWordPieceTokenizer.java - Native Whisper plugin
android/app/src/main/java/com/longformai/app/NativeWhisperPlugin.java - Whisper inference core
android/app/src/main/cpp/whisper.cpp - GGML tensor runtime
android/app/src/main/cpp/ggml.h - Native FFmpeg plugin
android/app/src/main/java/com/longformai/app/NativeFFmpegPlugin.java - Native MiniLM plugin
android/app/src/main/java/com/longformai/app/NativeMiniLMPlugin.java
Other components
- Creator
- Finished video
Connections 32
- Creator → Mode selection: chooses workflow
src/App.tsx - Mode selection → Long-form editor: opens
src/App.tsx - Mode selection → Vertical editor: opens
src/App.tsx - Long-form editor → Project state: updates
src/LongFormEditor.tsx - Long-form editor → Timeline and preview: uses
src/LongFormEditor.tsx - Long-form editor → Render controls: opens
src/LongFormEditor.tsx - Vertical editor → Platform rendering: renders through
src/ShortsEditor.tsx - Project state → Speech transcription: transcribes audio
src/state/useProjectStore.ts - Project state → Media analysis: analyzes media
src/state/useProjectStore.ts - Project state → Project preparation: prepares project
src/state/useProjectStore.ts - Project state → Project persistence: saves project
src/state/useProjectStore.ts - Project state → Project and timeline schema: holds
src/state/useProjectStore.ts - Media analysis → Visual understanding: requests semantics
src/engine/mediaAnalysis.ts - Timeline drafting → Semantic matching: ranks media
src/engine/draftTimeline.ts - Timeline drafting → Project and timeline schema: uses types
src/engine/draftTimeline.ts - Visual understanding → Native BLIP engine: uses on Android
src/engine/vision.ts - Visual understanding → Vision worker: requests analysis
- Semantic matching → Native MiniLM plugin: uses on Android
src/engine/matching.ts - Semantic matching → Matching worker: requests matches
- Speech transcription → Transcription worker: requests transcription
- Worker diagnostics → Worker routing: resolves endpoints
src/engine/workers.ts - Worker diagnostics → Android media access: checks platform
src/engine/workers.ts - Render controls → Render pipeline: starts rendering
- Render pipeline → Render worker: requests render
- Render pipeline → Finished video: produces
- Native plugin registration → Native BLIP engine: registers plugin
android/app/src/main/java/com/longformai/app/MainActivity.java - Native plugin registration → Native Whisper plugin: registers plugin
android/app/src/main/java/com/longformai/app/MainActivity.java - Native plugin registration → Native FFmpeg plugin: registers plugin
android/app/src/main/java/com/longformai/app/MainActivity.java - Native plugin registration → Native MiniLM plugin: registers plugin
android/app/src/main/java/com/longformai/app/MainActivity.java - Native BLIP engine → WordPiece tokenizer: tokenizes text
android/app/src/main/java/com/longformai/app/NativeBlipEngine.java - Native Whisper plugin → Whisper inference core: bridges inference
android/app/src/main/java/com/longformai/app/NativeWhisperPlugin.java - Whisper inference core → GGML tensor runtime: uses tensor runtime
android/app/src/main/cpp/whisper.cpp