# joshwrn/video-speed-app architecture

> Architecture diagram of the GitHub repository joshwrn/video-speed-app, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/joshwrn/video-speed-app
- Repository: https://github.com/joshwrn/video-speed-app

## Overview

Video Speed is a desktop app for turning a selected video into an MP4 at a chosen playback speed, optionally without audio. The user selects or drops a video, reviews its preview and duration, sets export options, chooses where to save, then monitors or cancels the export. The single Rust source file owns the UI and media work; it extracts previews and probes duration, and invokes the user-installed FFmpeg tools. Export command details are only partly visible in the excerpts, so that connection is shown as unverified.

Main entry points: [`src/main.rs`](https://github.com/joshwrn/video-speed-app/blob/master/src/main.rs) (Export job)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Desktop interface"]
  node_app["Video Speed window<br/>[main.rs]"]
  node_selection["Video selection<br/>[main.rs]"]
  node_settings["Export settings<br/>[main.rs]"]
end

subgraph group_media["Media workflow"]
  node_preview["Preview and duration<br/>[main.rs]"]
  node_export["Export job<br/>[main.rs]"]
  node_output["Saved MP4"]
end

subgraph group_tools["External tools"]
  node_ffmpeg["FFmpeg"]
  node_ffprobe["FFprobe"]
end

node_user(("User"))

node_user -->|"picks or drops"| node_selection
node_selection -->|"loads video"| node_app
node_app -->|"extracts and probes"| node_preview
node_user -->|"sets speed and audio"| node_settings
node_user -->|"chooses save"| node_export
node_settings -.->|"configures"| node_export
node_export -.->|"transcodes"| node_ffmpeg
node_preview -->|"probes duration"| node_ffprobe
node_export -.->|"writes MP4"| node_output
node_export -->|"updates progress"| node_app

click node_app "https://github.com/joshwrn/video-speed-app/blob/master/src/main.rs"
click node_selection "https://github.com/joshwrn/video-speed-app/blob/master/src/main.rs"
click node_settings "https://github.com/joshwrn/video-speed-app/blob/master/src/main.rs"
click node_preview "https://github.com/joshwrn/video-speed-app/blob/master/src/main.rs"
click node_export "https://github.com/joshwrn/video-speed-app/blob/master/src/main.rs"

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_app,node_selection,node_settings,node_user toneBlue
class node_preview,node_export,node_output toneAmber
class node_ffmpeg,node_ffprobe toneMint
```

## Components

### Desktop interface

- [Video Speed window](https://github.com/joshwrn/video-speed-app/blob/master/src/main.rs): `src/main.rs`
- [Video selection](https://github.com/joshwrn/video-speed-app/blob/master/src/main.rs): `src/main.rs`
- [Export settings](https://github.com/joshwrn/video-speed-app/blob/master/src/main.rs): `src/main.rs`

### Media workflow

- [Preview and duration](https://github.com/joshwrn/video-speed-app/blob/master/src/main.rs): `src/main.rs`
- [Export job](https://github.com/joshwrn/video-speed-app/blob/master/src/main.rs): `src/main.rs`
- **Saved MP4**

### External tools

- **FFmpeg**
- **FFprobe**

### Other components

- **User**

## Connections

- User → Video selection: picks or drops (evidence: `README.md`)
- Video selection → Video Speed window: loads video (evidence: `src/main.rs`)
- Video Speed window → Preview and duration: extracts and probes (evidence: `src/main.rs`)
- User → Export settings: sets speed and audio (evidence: `README.md`)
- User → Export job: chooses save (evidence: `src/main.rs`)
- Export settings → Export job: configures (evidence: `src/main.rs`)
- Export job → FFmpeg: transcodes
- Preview and duration → FFprobe: probes duration (evidence: `src/main.rs`)
- Export job → Saved MP4: writes MP4
- Export job → Video Speed window: updates progress (evidence: `src/main.rs`)
