# ffmpeg-builds/ffmpeg-builds architecture

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

- Interactive diagram: https://gitdiagram.com/ffmpeg-builds/ffmpeg-builds
- Repository: https://github.com/ffmpeg-builds/ffmpeg-builds

## Overview

This repository produces configured FFmpeg builds for Windows and Linux. A user selects a target, licensing/shared-library variant, and optional addins; builds an image and then FFmpeg, yielding a ZIP artifact. The README documents the package recipes, variant/addin choices, supported targets, and automated releases. Source excerpts were unavailable, so edges below are limited to relationships stated in the README; internal script-level orchestration is not inferred.

Main entry points: [`build.sh`](https://github.com/ffmpeg-builds/ffmpeg-builds/blob/master/build.sh) (Build Command), [`makeimage.sh`](https://github.com/ffmpeg-builds/ffmpeg-builds/blob/master/makeimage.sh) (Image Command), [`.github/workflows`](https://github.com/ffmpeg-builds/ffmpeg-builds/tree/master/.github/workflows) (Build Releases), [`scripts.d`](https://github.com/ffmpeg-builds/ffmpeg-builds/tree/master/scripts.d) (Dependency Recipes)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inputs["Build Configuration"]
  node_targets["Target Platforms"]
  node_variants["Build Variants"]
  node_addins["Optional Addins"]
end

subgraph group_environment["Build Environment"]
  node_image_cmd["Image Command<br/>[makeimage.sh]"]
  node_base_images["Base Images"]
end

subgraph group_pipeline["Build Pipeline"]
  node_build_cmd["Build Command<br/>[build.sh]"]
  node_package_recipes["Dependency Recipes<br/>[scripts.d]"]
  node_ffmpeg_build["FFmpeg Build<br/>[build.sh]"]
end

subgraph group_delivery["Release Delivery"]
  node_artifacts["ZIP Artifacts<br/>[build.sh]"]
  node_automation["Scheduled Builds<br/>[workflows]"]
  node_releases["Build Releases<br/>[workflows]"]
end

node_user(("Build User"))
node_docker{{"Docker"}}

node_user -->|"runs image command"| node_image_cmd
node_user -->|"runs build command"| node_build_cmd
node_image_cmd -->|"builds image"| node_base_images
node_image_cmd -->|"requires"| node_docker
node_build_cmd -->|"requires"| node_docker
node_build_cmd -->|"builds"| node_ffmpeg_build
node_build_cmd -->|"selects dependencies"| node_package_recipes
node_variants -->|"selects package set"| node_package_recipes
node_targets -->|"selects target"| node_build_cmd
node_addins -->|"modifies build"| node_build_cmd
node_ffmpeg_build -->|"produces ZIP"| node_artifacts
node_automation -->|"triggers on success"| node_releases
node_releases -.->|"publishes builds"| node_artifacts

click node_targets "https://github.com/ffmpeg-builds/ffmpeg-builds/tree/master/variants"
click node_variants "https://github.com/ffmpeg-builds/ffmpeg-builds/tree/master/variants"
click node_addins "https://github.com/ffmpeg-builds/ffmpeg-builds/tree/master/addins"
click node_image_cmd "https://github.com/ffmpeg-builds/ffmpeg-builds/blob/master/makeimage.sh"
click node_base_images "https://github.com/ffmpeg-builds/ffmpeg-builds/tree/master/images"
click node_build_cmd "https://github.com/ffmpeg-builds/ffmpeg-builds/blob/master/build.sh"
click node_package_recipes "https://github.com/ffmpeg-builds/ffmpeg-builds/tree/master/scripts.d"
click node_ffmpeg_build "https://github.com/ffmpeg-builds/ffmpeg-builds/blob/master/build.sh"
click node_artifacts "https://github.com/ffmpeg-builds/ffmpeg-builds/blob/master/build.sh"
click node_automation "https://github.com/ffmpeg-builds/ffmpeg-builds/tree/master/.github/workflows"
click node_releases "https://github.com/ffmpeg-builds/ffmpeg-builds/tree/master/.github/workflows"

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_targets,node_variants,node_addins,node_user toneBlue
class node_image_cmd,node_base_images toneAmber
class node_build_cmd,node_package_recipes,node_ffmpeg_build toneMint
class node_artifacts,node_automation,node_releases toneRose
class node_docker toneIndigo
```

## Components

### Build Configuration

- [Target Platforms](https://github.com/ffmpeg-builds/ffmpeg-builds/tree/master/variants): `variants`
- [Build Variants](https://github.com/ffmpeg-builds/ffmpeg-builds/tree/master/variants): `variants`
- [Optional Addins](https://github.com/ffmpeg-builds/ffmpeg-builds/tree/master/addins): `addins`

### Build Environment

- [Image Command](https://github.com/ffmpeg-builds/ffmpeg-builds/blob/master/makeimage.sh): `makeimage.sh`
- [Base Images](https://github.com/ffmpeg-builds/ffmpeg-builds/tree/master/images): `images`

### Build Pipeline

- [Build Command](https://github.com/ffmpeg-builds/ffmpeg-builds/blob/master/build.sh): `build.sh`
- [Dependency Recipes](https://github.com/ffmpeg-builds/ffmpeg-builds/tree/master/scripts.d): `scripts.d`
- [FFmpeg Build](https://github.com/ffmpeg-builds/ffmpeg-builds/blob/master/build.sh): `build.sh`

### Release Delivery

- [ZIP Artifacts](https://github.com/ffmpeg-builds/ffmpeg-builds/blob/master/build.sh): `build.sh`
- [Scheduled Builds](https://github.com/ffmpeg-builds/ffmpeg-builds/tree/master/.github/workflows): `.github/workflows`
- [Build Releases](https://github.com/ffmpeg-builds/ffmpeg-builds/tree/master/.github/workflows): `.github/workflows`

### Other components

- **Build User**
- **Docker**

## Connections

- Build User → Image Command: runs image command (evidence: `README.md`)
- Build User → Build Command: runs build command (evidence: `README.md`)
- Image Command → Base Images: builds image (evidence: `README.md`)
- Image Command → Docker: requires (evidence: `README.md`)
- Build Command → Docker: requires (evidence: `README.md`)
- Build Command → FFmpeg Build: builds (evidence: `README.md`)
- Build Command → Dependency Recipes: selects dependencies (evidence: `README.md`)
- Build Variants → Dependency Recipes: selects package set (evidence: `README.md`)
- Target Platforms → Build Command: selects target (evidence: `README.md`)
- Optional Addins → Build Command: modifies build (evidence: `README.md`)
- FFmpeg Build → ZIP Artifacts: produces ZIP (evidence: `README.md`)
- Scheduled Builds → Build Releases: triggers on success (evidence: `README.md`)
- Build Releases → ZIP Artifacts: publishes builds
