# everythingai-pro/ai-video-editor architecture

> Architecture diagram of the GitHub repository everythingai-pro/ai-video-editor, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/everythingai-pro/ai-video-editor
- Repository: https://github.com/everythingai-pro/ai-video-editor

## Overview

AI Video Editor turns a raw recording into a cut, captioned, color-graded edit, then optionally produces Shorts and a platform-ready review page. The main workflow is orchestrated by `scripts/edit.py`; `scripts/autopilot.py` supports folder-in/folder-out runs. A separate optional posting path can send content to Buffer or a webhook. The README documents the overall stages; sampled excerpts show several orchestrator calls and rendering details, but not every stage connection, so undocumented links are omitted.

Main entry points: [`scripts/edit.py`](https://github.com/everythingai-pro/ai-video-editor/blob/main/scripts/edit.py) (Edit orchestrator), [`scripts/ve_render.py`](https://github.com/everythingai-pro/ai-video-editor/blob/main/scripts/ve_render.py) (Video rendering), [`scripts/ve_taste.py`](https://github.com/everythingai-pro/ai-video-editor/blob/main/scripts/ve_taste.py) (Taste settings), [`scripts/ve_publish.py`](https://github.com/everythingai-pro/ai-video-editor/blob/main/scripts/ve_publish.py) (Review page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Editing workflow"]
  node_edit["Edit orchestrator<br/>[edit.py]"]
  node_autopilot["Folder autopilot<br/>[autopilot.py]"]
end

subgraph group_media["Media processing"]
  node_transcribe["Transcription<br/>[ve_transcribe.py]"]
  node_cut["Cut planning<br/>[ve_cut.py]"]
  node_broll["B-roll routing<br/>[ve_broll.py]"]
  node_render["Video rendering<br/>[ve_render.py]"]
  node_captions["Caption rendering<br/>[ve_captions.py]"]
  node_ffmpeg["FFmpeg engine<br/>[ve_ffmpeg.py]"]
end

subgraph group_shorts["Shorts and social"]
  node_virality["Delivery scoring<br/>[ve_virality.py]"]
  node_shorts["Shorts selection<br/>[ve_shorts.py]"]
  node_postpack["Post copy<br/>[ve_postpack.py]"]
  node_publish["Review page<br/>[ve_publish.py]"]
  node_posting["Optional posting<br/>[ve_post.py]"]
end

subgraph group_config["Taste configuration"]
  node_taste["Taste settings<br/>[ve_taste.py]"]
end

subgraph group_integrations["External services"]
  node_elevenlabs["ElevenLabs"]
  node_llm["LLM ranking"]
  node_platforms["Posting services"]
end

node_creator(("Creator"))
node_video["Source video"]
node_review["Review outputs"]

node_creator -->|"provides"| node_video
node_video -->|"submits"| node_edit
node_edit -->|"supports batch runs"| node_autopilot
node_edit -->|"runs transcription"| node_transcribe
node_transcribe -->|"requests speech-to-text"| node_elevenlabs
node_edit -->|"plans cuts"| node_cut
node_edit -->|"plans and sources"| node_broll
node_edit -->|"renders edit"| node_render
node_edit -->|"scores moments"| node_virality
node_virality -->|"ranks finalists"| node_llm
node_edit -->|"selects fallback clips"| node_shorts
node_render -->|"burns captions"| node_captions
node_render -->|"processes media"| node_ffmpeg
node_captions -->|"probes video"| node_ffmpeg
node_edit -->|"builds post copy"| node_postpack
node_edit -->|"builds review page"| node_publish
node_postpack -->|"supplies post pack"| node_publish
node_edit -.->|"optionally posts"| node_posting
node_posting -->|"sends content"| node_platforms
node_publish -->|"writes page"| node_review
node_edit -->|"loads settings"| node_taste
node_broll -->|"loads settings"| node_taste
node_render -->|"loads settings"| node_taste
node_shorts -->|"loads settings"| node_taste

click node_edit "https://github.com/everythingai-pro/ai-video-editor/blob/main/scripts/edit.py"
click node_autopilot "https://github.com/everythingai-pro/ai-video-editor/blob/main/scripts/autopilot.py"
click node_transcribe "https://github.com/everythingai-pro/ai-video-editor/blob/main/scripts/ve_transcribe.py"
click node_cut "https://github.com/everythingai-pro/ai-video-editor/blob/main/scripts/ve_cut.py"
click node_broll "https://github.com/everythingai-pro/ai-video-editor/blob/main/scripts/ve_broll.py"
click node_render "https://github.com/everythingai-pro/ai-video-editor/blob/main/scripts/ve_render.py"
click node_captions "https://github.com/everythingai-pro/ai-video-editor/blob/main/scripts/ve_captions.py"
click node_ffmpeg "https://github.com/everythingai-pro/ai-video-editor/blob/main/scripts/ve_ffmpeg.py"
click node_virality "https://github.com/everythingai-pro/ai-video-editor/blob/main/scripts/ve_virality.py"
click node_shorts "https://github.com/everythingai-pro/ai-video-editor/blob/main/scripts/ve_shorts.py"
click node_postpack "https://github.com/everythingai-pro/ai-video-editor/blob/main/scripts/ve_postpack.py"
click node_publish "https://github.com/everythingai-pro/ai-video-editor/blob/main/scripts/ve_publish.py"
click node_posting "https://github.com/everythingai-pro/ai-video-editor/blob/main/scripts/ve_post.py"
click node_taste "https://github.com/everythingai-pro/ai-video-editor/blob/main/scripts/ve_taste.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_edit,node_autopilot,node_review toneBlue
class node_transcribe,node_cut,node_broll,node_render,node_captions,node_ffmpeg toneAmber
class node_virality,node_shorts,node_postpack,node_publish,node_posting toneMint
class node_taste toneRose
class node_elevenlabs,node_llm,node_platforms,node_creator,node_video toneIndigo
```

## Components

### Editing workflow

- [Edit orchestrator](https://github.com/everythingai-pro/ai-video-editor/blob/main/scripts/edit.py): `scripts/edit.py`
- [Folder autopilot](https://github.com/everythingai-pro/ai-video-editor/blob/main/scripts/autopilot.py): `scripts/autopilot.py`

### Media processing

- [Transcription](https://github.com/everythingai-pro/ai-video-editor/blob/main/scripts/ve_transcribe.py): `scripts/ve_transcribe.py`
- [Cut planning](https://github.com/everythingai-pro/ai-video-editor/blob/main/scripts/ve_cut.py): `scripts/ve_cut.py`
- [B-roll routing](https://github.com/everythingai-pro/ai-video-editor/blob/main/scripts/ve_broll.py): `scripts/ve_broll.py`
- [Video rendering](https://github.com/everythingai-pro/ai-video-editor/blob/main/scripts/ve_render.py): `scripts/ve_render.py`
- [Caption rendering](https://github.com/everythingai-pro/ai-video-editor/blob/main/scripts/ve_captions.py): `scripts/ve_captions.py`
- [FFmpeg engine](https://github.com/everythingai-pro/ai-video-editor/blob/main/scripts/ve_ffmpeg.py): `scripts/ve_ffmpeg.py`

### Shorts and social

- [Delivery scoring](https://github.com/everythingai-pro/ai-video-editor/blob/main/scripts/ve_virality.py): `scripts/ve_virality.py`
- [Shorts selection](https://github.com/everythingai-pro/ai-video-editor/blob/main/scripts/ve_shorts.py): `scripts/ve_shorts.py`
- [Post copy](https://github.com/everythingai-pro/ai-video-editor/blob/main/scripts/ve_postpack.py): `scripts/ve_postpack.py`
- [Review page](https://github.com/everythingai-pro/ai-video-editor/blob/main/scripts/ve_publish.py): `scripts/ve_publish.py`
- [Optional posting](https://github.com/everythingai-pro/ai-video-editor/blob/main/scripts/ve_post.py): `scripts/ve_post.py`

### Taste configuration

- [Taste settings](https://github.com/everythingai-pro/ai-video-editor/blob/main/scripts/ve_taste.py): `scripts/ve_taste.py`

### External services

- **ElevenLabs**
- **LLM ranking**
- **Posting services**

### Other components

- **Creator**
- **Source video**
- **Review outputs**

## Connections

- Creator → Source video: provides (evidence: `README.md`)
- Source video → Edit orchestrator: submits (evidence: `README.md`)
- Edit orchestrator → Folder autopilot: supports batch runs (evidence: `README.md`)
- Edit orchestrator → Transcription: runs transcription (evidence: `README.md`)
- Transcription → ElevenLabs: requests speech-to-text (evidence: `scripts/ve_transcribe.py`)
- Edit orchestrator → Cut planning: plans cuts (evidence: `README.md`)
- Edit orchestrator → B-roll routing: plans and sources (evidence: `scripts/edit.py`)
- Edit orchestrator → Video rendering: renders edit (evidence: `scripts/edit.py`)
- Edit orchestrator → Delivery scoring: scores moments (evidence: `scripts/edit.py`)
- Delivery scoring → LLM ranking: ranks finalists (evidence: `scripts/ve_virality.py`)
- Edit orchestrator → Shorts selection: selects fallback clips (evidence: `scripts/edit.py`)
- Video rendering → Caption rendering: burns captions (evidence: `scripts/ve_render.py`)
- Video rendering → FFmpeg engine: processes media (evidence: `scripts/ve_render.py`)
- Caption rendering → FFmpeg engine: probes video (evidence: `scripts/ve_captions.py`)
- Edit orchestrator → Post copy: builds post copy (evidence: `README.md`)
- Edit orchestrator → Review page: builds review page (evidence: `README.md`)
- Post copy → Review page: supplies post pack (evidence: `scripts/ve_publish.py`)
- Edit orchestrator → Optional posting: optionally posts (evidence: `README.md`)
- Optional posting → Posting services: sends content (evidence: `README.md`)
- Review page → Review outputs: writes page (evidence: `scripts/ve_publish.py`)
- Edit orchestrator → Taste settings: loads settings (evidence: `scripts/edit.py`)
- B-roll routing → Taste settings: loads settings (evidence: `scripts/ve_broll.py`)
- Video rendering → Taste settings: loads settings (evidence: `scripts/ve_render.py`)
- Shorts selection → Taste settings: loads settings (evidence: `scripts/ve_shorts.py`)
