# srviniaviz/fast-recorder architecture

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

- Interactive diagram: https://gitdiagram.com/srviniaviz/fast-recorder
- Repository: https://github.com/srviniaviz/fast-recorder

## Overview

Fast Record is a Windows screen recorder. Users configure a capture target, quality, encoder, and audio sources in its tray-launched panel, then start, pause, and stop recording; the selected backend writes a local MP4. The graph includes the documented capture, encoder, audio, preferences, startup, and recording-history capabilities. Source excerpts establish the UI/controller and backend dispatch; some lower-level wiring is supported only by README statements, so unsampled details are not expanded.

Main entry points: [`src/app/AppController.cpp`](https://github.com/srviniaviz/fast-recorder/blob/main/src/app/AppController.cpp) (App controller), [`src/recording/MediaFoundationBackend.cpp`](https://github.com/srviniaviz/fast-recorder/blob/main/src/recording/MediaFoundationBackend.cpp) (Media Foundation), [`src/recording/NvencBackend.cpp`](https://github.com/srviniaviz/fast-recorder/blob/main/src/recording/NvencBackend.cpp) (NVENC encoder), [`src/recording/AmfBackend.cpp`](https://github.com/srviniaviz/fast-recorder/blob/main/src/recording/AmfBackend.cpp) (AMF encoder)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and settings"]
  node_entry["Application entry<br/>[main.cpp]"]
  node_controller["App controller<br/>[AppController.cpp]"]
  node_settings["Preferences<br/>[AppSettings.cpp]"]
  node_startup["Windows startup<br/>[WindowsStartup.cpp]"]
  node_history["Recording history<br/>[AppController.cpp]"]
end

subgraph group_interface["Tray and interface"]
  node_panel["WebView panel<br/>[AppPage.h]"]
  node_webview["WebView host<br/>[WebViewHost.cpp]"]
  node_tray["Tray and hotkeys<br/>[TrayIcon.cpp]"]
end

subgraph group_capture["Capture and audio"]
  node_selector["Capture selection"]
  node_graphics["Screen capture"]
  node_audio["Audio capture<br/>[AudioCapture.cpp]"]
end

subgraph group_encoding["Encoding and output"]
  node_recorder["Recording control"]
  node_backend_contract["Backend contract<br/>[RecordingBackend.h]"]
  node_nv_probe["NVENC detection<br/>[NvencProbe.cpp]"]
  node_amf_probe["AMF detection<br/>[AmfProbe.cpp]"]
  node_qsv_probe["QSV detection<br/>[QsvProbe.cpp]"]
  node_nvenc["NVENC encoder<br/>[NvencBackend.cpp]"]
  node_amf["AMF encoder<br/>[AmfBackend.cpp]"]
  node_mf["Media Foundation"]
  node_recordings[("Local recordings")]
end

node_user(("User"))
node_windows["Windows"]

node_user -->|"configures"| node_panel
node_entry -->|"creates"| node_controller
node_controller -->|"initializes"| node_webview
node_panel -->|"posts commands"| node_webview
node_webview -->|"delivers messages"| node_controller
node_user -->|"opens panel"| node_tray
node_tray -->|"dispatches actions"| node_controller
node_controller -->|"loads and saves"| node_settings
node_controller -->|"configures startup"| node_startup
node_controller -->|"selects capture target"| node_selector
node_controller -->|"starts and controls"| node_recorder
node_recorder -->|"dispatches"| node_nvenc
node_recorder -->|"dispatches"| node_amf
node_recorder -->|"dispatches"| node_mf
node_nvenc -->|"implements"| node_backend_contract
node_amf -->|"implements"| node_backend_contract
node_mf -->|"implements"| node_backend_contract
node_nvenc -->|"uses capture"| node_graphics
node_amf -->|"uses capture"| node_graphics
node_mf -->|"uses capture"| node_graphics
node_nvenc -->|"captures audio"| node_audio
node_amf -->|"captures audio"| node_audio
node_mf -->|"captures audio"| node_audio
node_mf -->|"checks QSV"| node_qsv_probe
node_nvenc -->|"writes MP4"| node_recordings
node_amf -->|"writes MP4"| node_recordings
node_mf -->|"writes MP4"| node_recordings
node_controller -.->|"reports capability"| node_nv_probe
node_controller -.->|"reports capability"| node_amf_probe
node_controller -.->|"reports capability"| node_qsv_probe
node_controller -->|"refreshes"| node_history
node_history -->|"lists local files"| node_recordings
node_windows -->|"provides integration"| node_tray

click node_entry "https://github.com/srviniaviz/fast-recorder/blob/main/src/main.cpp"
click node_controller "https://github.com/srviniaviz/fast-recorder/blob/main/src/app/AppController.cpp"
click node_settings "https://github.com/srviniaviz/fast-recorder/blob/main/src/app/AppSettings.cpp"
click node_startup "https://github.com/srviniaviz/fast-recorder/blob/main/src/platform/WindowsStartup.cpp"
click node_panel "https://github.com/srviniaviz/fast-recorder/blob/main/src/ui/AppPage.h"
click node_webview "https://github.com/srviniaviz/fast-recorder/blob/main/src/ui/WebViewHost.cpp"
click node_tray "https://github.com/srviniaviz/fast-recorder/blob/main/src/platform/TrayIcon.cpp"
click node_selector "https://github.com/srviniaviz/fast-recorder/blob/main/src/platform/CaptureSelector.cpp"
click node_graphics "https://github.com/srviniaviz/fast-recorder/blob/main/src/recording/GraphicsCapture.cpp"
click node_audio "https://github.com/srviniaviz/fast-recorder/blob/main/src/recording/AudioCapture.cpp"
click node_recorder "https://github.com/srviniaviz/fast-recorder/blob/main/src/recording/RecorderController.cpp"
click node_backend_contract "https://github.com/srviniaviz/fast-recorder/blob/main/src/recording/RecordingBackend.h"
click node_nv_probe "https://github.com/srviniaviz/fast-recorder/blob/main/src/recording/NvencProbe.cpp"
click node_amf_probe "https://github.com/srviniaviz/fast-recorder/blob/main/src/recording/AmfProbe.cpp"
click node_qsv_probe "https://github.com/srviniaviz/fast-recorder/blob/main/src/recording/QsvProbe.cpp"
click node_nvenc "https://github.com/srviniaviz/fast-recorder/blob/main/src/recording/NvencBackend.cpp"
click node_amf "https://github.com/srviniaviz/fast-recorder/blob/main/src/recording/AmfBackend.cpp"
click node_mf "https://github.com/srviniaviz/fast-recorder/blob/main/src/recording/MediaFoundationBackend.cpp"
click node_recordings "https://github.com/srviniaviz/fast-recorder/tree/main/src/recording"
click node_history "https://github.com/srviniaviz/fast-recorder/blob/main/src/app/AppController.cpp"

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_entry,node_controller,node_settings,node_startup,node_history,node_user toneBlue
class node_panel,node_webview,node_tray toneAmber
class node_selector,node_graphics,node_audio toneMint
class node_recorder,node_backend_contract,node_nv_probe,node_amf_probe,node_qsv_probe,node_nvenc,node_amf,node_mf,node_recordings toneRose
class node_windows toneIndigo
```

## Components

### App and settings

- [Application entry](https://github.com/srviniaviz/fast-recorder/blob/main/src/main.cpp): `src/main.cpp`
- [App controller](https://github.com/srviniaviz/fast-recorder/blob/main/src/app/AppController.cpp): `src/app/AppController.cpp`
- [Preferences](https://github.com/srviniaviz/fast-recorder/blob/main/src/app/AppSettings.cpp): `src/app/AppSettings.cpp`
- [Windows startup](https://github.com/srviniaviz/fast-recorder/blob/main/src/platform/WindowsStartup.cpp): `src/platform/WindowsStartup.cpp`
- [Recording history](https://github.com/srviniaviz/fast-recorder/blob/main/src/app/AppController.cpp): `src/app/AppController.cpp`

### Tray and interface

- [WebView panel](https://github.com/srviniaviz/fast-recorder/blob/main/src/ui/AppPage.h): `src/ui/AppPage.h`
- [WebView host](https://github.com/srviniaviz/fast-recorder/blob/main/src/ui/WebViewHost.cpp): `src/ui/WebViewHost.cpp`
- [Tray and hotkeys](https://github.com/srviniaviz/fast-recorder/blob/main/src/platform/TrayIcon.cpp): `src/platform/TrayIcon.cpp`

### Capture and audio

- [Capture selection](https://github.com/srviniaviz/fast-recorder/blob/main/src/platform/CaptureSelector.cpp): `src/platform/CaptureSelector.cpp`
- [Screen capture](https://github.com/srviniaviz/fast-recorder/blob/main/src/recording/GraphicsCapture.cpp): `src/recording/GraphicsCapture.cpp`
- [Audio capture](https://github.com/srviniaviz/fast-recorder/blob/main/src/recording/AudioCapture.cpp): `src/recording/AudioCapture.cpp`

### Encoding and output

- [Recording control](https://github.com/srviniaviz/fast-recorder/blob/main/src/recording/RecorderController.cpp): `src/recording/RecorderController.cpp`
- [Backend contract](https://github.com/srviniaviz/fast-recorder/blob/main/src/recording/RecordingBackend.h): `src/recording/RecordingBackend.h`
- [NVENC detection](https://github.com/srviniaviz/fast-recorder/blob/main/src/recording/NvencProbe.cpp): `src/recording/NvencProbe.cpp`
- [AMF detection](https://github.com/srviniaviz/fast-recorder/blob/main/src/recording/AmfProbe.cpp): `src/recording/AmfProbe.cpp`
- [QSV detection](https://github.com/srviniaviz/fast-recorder/blob/main/src/recording/QsvProbe.cpp): `src/recording/QsvProbe.cpp`
- [NVENC encoder](https://github.com/srviniaviz/fast-recorder/blob/main/src/recording/NvencBackend.cpp): `src/recording/NvencBackend.cpp`
- [AMF encoder](https://github.com/srviniaviz/fast-recorder/blob/main/src/recording/AmfBackend.cpp): `src/recording/AmfBackend.cpp`
- [Media Foundation](https://github.com/srviniaviz/fast-recorder/blob/main/src/recording/MediaFoundationBackend.cpp): `src/recording/MediaFoundationBackend.cpp`
- [Local recordings](https://github.com/srviniaviz/fast-recorder/tree/main/src/recording): `src/recording`

### Other components

- **User**
- **Windows**

## Connections

- User → WebView panel: configures (evidence: `src/ui/AppPage.h`)
- Application entry → App controller: creates (evidence: `src/main.cpp`)
- App controller → WebView host: initializes (evidence: `src/app/AppController.cpp`)
- WebView panel → WebView host: posts commands (evidence: `src/ui/AppPage.h`)
- WebView host → App controller: delivers messages (evidence: `src/app/AppController.cpp`)
- User → Tray and hotkeys: opens panel (evidence: `README.md`)
- Tray and hotkeys → App controller: dispatches actions (evidence: `src/app/AppController.cpp`)
- App controller → Preferences: loads and saves (evidence: `src/app/AppController.cpp`)
- App controller → Windows startup: configures startup (evidence: `src/app/AppController.cpp`)
- App controller → Capture selection: selects capture target (evidence: `src/app/AppController.cpp`)
- App controller → Recording control: starts and controls (evidence: `README.md`)
- Recording control → NVENC encoder: dispatches (evidence: `src/recording/RecorderController.cpp`)
- Recording control → AMF encoder: dispatches (evidence: `src/recording/RecorderController.cpp`)
- Recording control → Media Foundation: dispatches (evidence: `src/recording/RecorderController.cpp`)
- NVENC encoder → Backend contract: implements
- AMF encoder → Backend contract: implements
- Media Foundation → Backend contract: implements
- NVENC encoder → Screen capture: uses capture (evidence: `src/recording/NvencBackend.cpp`)
- AMF encoder → Screen capture: uses capture (evidence: `src/recording/AmfBackend.cpp`)
- Media Foundation → Screen capture: uses capture (evidence: `src/recording/MediaFoundationBackend.cpp`)
- NVENC encoder → Audio capture: captures audio (evidence: `src/recording/NvencBackend.cpp`)
- AMF encoder → Audio capture: captures audio (evidence: `src/recording/AmfBackend.cpp`)
- Media Foundation → Audio capture: captures audio (evidence: `src/recording/MediaFoundationBackend.cpp`)
- Media Foundation → QSV detection: checks QSV (evidence: `src/recording/MediaFoundationBackend.cpp`)
- NVENC encoder → Local recordings: writes MP4 (evidence: `README.md`)
- AMF encoder → Local recordings: writes MP4 (evidence: `README.md`)
- Media Foundation → Local recordings: writes MP4 (evidence: `README.md`)
- App controller → NVENC detection: reports capability
- App controller → AMF detection: reports capability
- App controller → QSV detection: reports capability
- App controller → Recording history: refreshes (evidence: `src/app/AppController.cpp`)
- Recording history → Local recordings: lists local files (evidence: `src/app/AppController.cpp`)
- Windows → Tray and hotkeys: provides integration (evidence: `README.md`)
