FFmate is an automation layer on top of FFmpeg. It simplifies transcoding and works as an extensible engine for custom media workflows. Applications and services can use FFmpeg through a REST API, event-driven webhooks, and pre- and post-processing scripts.
FFmate fits custom media processing pipelines, transcoding inside existing systems, and tools built around FFmpeg.
- REST API – Submit and manage FFmpeg tasks programmatically
- Web UI – Monitor and control tasks in real time, no terminal required
- Cluster Support – Run multiple FFmate instances that share one PostgreSQL database for scaling and redundancy
- Watchfolders – Automatically process files dropped into a directory
- Presets – Built-in presets for common transcoding jobs, plus your own
- Webhooks – Get real-time notifications for task events
- Wildcards – Build output file names and folder structures from the input file, the date and other values
- Pre/Post Processing – Run custom scripts before or after each task
- Built-in Queue – Runs tasks by priority, with a limit on how many run at the same time
The documentation covers the API, the Web UI and real-world examples: https://docs.ffmate.io
- FFmpeg, installed and in
$PATH. - Git, for cloning the repository.
- A scripting language such as Python, Bash or Node.js for pre- and post-processing scripts.
To build from source, you also need:
- Go 1.26.5 or newer.
- Node.js and pnpm, to build the Web UI.
There are two options.
-
Use a pre-compiled binary:
- Download the archive for your system from GitHub Releases, for example
ffmate_Linux_x86_64.tar.gz. Windows archives are.zip. - Unpack it:
tar -xzf ffmate_Linux_x86_64.tar.gz - Optionally move the
ffmatebinary to a directory in your$PATH. - Start FFmate:
./ffmate server
- Download the archive for your system from GitHub Releases, for example
-
Build from source:
- Clone the repository with its Web UI submodule:
git clone --recurse-submodules https://github.com/welovemedia/ffmate.git cd ffmate - Build the Web UI. Without this step,
/uishows a placeholder page:make build+frontend
- Build the binary:
go build -o ffmate main.go
- Start FFmate. For development, turn on debug logging:
./ffmate server --debug="debug:*"
- Clone the repository with its Web UI submodule:
The API is available at http://localhost:3000/api/v1 and the Web UI at http://localhost:3000/ui.
- Integrating with an existing application: submit tasks with
/api/v1/tasksand use/api/v1/webhooksto get status updates back. - Custom logic around transcoding: set
scriptPathandsidecarPathinsidepreProcessingorpostProcessingin task and preset requests. - Custom dashboard or UI: the Web UI only uses the public REST API and a WebSocket at
/api/v1/ws. The WebSocket sends live updates for tasks, presets, watchfolders, webhooks, FFmate instances and logs. - Ingestion workflows: create watchfolders with
/api/v1/watchfoldersand presets that run the custom processing.
FFmate is a Go application.
graph TD
%% ─── UI & API ─────────────────────────
YourApp["Your Application / Script"] -- REST API --> REST_API["FFmate REST API (Goyave)"]
WebUI["FFmate Web UI (Nuxt)"] -- REST API / WebSockets --> REST_API
%% ─── Services (single row) ───────────
subgraph FFmate_Services ["Services Layer (./internal/service)"]
direction LR
TaskSvc["Task Service"]
PresetSvc["Preset Service"]
WatchfolderSvc["Watchfolder Service"]
WebhookSvc["Webhook Service"]
end
REST_API --> TaskSvc
REST_API --> PresetSvc
REST_API --> WatchfolderSvc
REST_API --> WebhookSvc
%% ─── Core & DB side-by-side ───────────
subgraph FFmate_Core ["Core Logic (./internal/service/task, ./internal/service/ffmpeg)"]
direction LR
Queue["Task Queue Processor"]
PrePostScripts["Pre/Post-Processing Engine"]
DB[(SQLite or PostgreSQL - GORM)]
end
TaskSvc --> Queue
Queue --> PrePostScripts
PrePostScripts --> FFMpegBinary["ffmpeg Binary Wrapper"]
Queue --> DB
WebhookSvc -- Event Bus/Direct Call --> YourAppWebhook["Your Webhook Endpoint"]
FFMpegBinary -- system call --> ActualFFmpeg["ffmpeg (External Binary)"]
%% ─── Styling ───────────
style YourApp fill:#e6ffe6,stroke:#009933,stroke-width:1.5px,color:#000;
style YourAppWebhook fill:#e6ffe6,stroke:#009933,stroke-width:1.5px,color:#000;
classDef ui fill:#99d6ff,stroke:#2060a0,stroke-width:1.2px,color:#000000;
classDef api fill:#b3e0ff,stroke:#2060a0,stroke-width:1.2px,color:#000000;
classDef svc fill:#bdb4ff,stroke:#4b44a0,stroke-width:1.2px,color:#000000;
classDef core fill:#99ff99,stroke:#2d7a2d,stroke-width:1.2px,color:#000000;
classDef db fill:#ffcc80,stroke:#b36b00,stroke-width:1.2px,color:#000000;
classDef ffbin fill:#ff99cc,stroke:#b3366b,stroke-width:1.2px,color:#000000;
Repository layout:
main.gosets the version and starts the CLI.cmd/holds the CLI commands (server,update,version), built with Cobra.internal/holds the application code. Other projects cannot import it.controller/has the HTTP handlers (Goyave) and the API routes, one package per feature. It also serves the Web UI, Swagger, health, metrics and the WebSocket.service/has the logic for each feature: tasks, presets, watchfolders, webhooks, clients, settings, updates, telemetry and the WebSocket. The task queue is inservice/task, theffmpegwrapper inservice/ffmpeg.dto/has the data transfer objects.database/has the GORM models (model/) and the repositories (repository/).middleware/has the middleware used by Goyave.metrics/has the Prometheus metrics served at/metrics.cfg/,debug/,validate/andexception/have configuration, debug logging, request validation and error handling.dialect/registers the SQLite driver (pure Go, no CGO).docs/has the generated Swagger documentation.
ui/is the ffmate-ui submodule.make build+frontendcopies its build intointernal/controller/ui/ui-build/, which is embedded in the binary.testsuite/has the integration tests.go.modandgo.sumare the Go module files.
Good places to start:
- API handlers in
internal/controller/: extend an endpoint or add one. - Business logic in
internal/service/: change or add behaviour for a feature. - Task processing, FFmpeg handling and pre/post-processing in
internal/service/task/andinternal/service/ffmpeg/. - Web UI in
ui/.
Contributions are welcome.
- Check the existing GitHub Issues, or talk about your idea on Discord first.
- Fork the repository, clone your fork and build from source as described above.
- Create a branch, for example
git checkout -b feature/my-change. - Write the code and add tests where they make sense.
- Run
go fmt ./...,go vet ./...,make lintandmake test. - Commit with a conventional message, for example
git commit -m 'feat: add my change'. - Push the branch and open a pull request against the
devbranch ofwelovemedia/ffmatewith a clear description of the change.
- Discord: join the FFmate community to talk about extending FFmate, ask technical questions and share projects.
- GitHub: report bugs and propose enhancements in GitHub Issues.
FFmate is created and maintained by developers and product managers at MoovIT GmbH, a German systems integrator and software company that brings video production and IT together. MoovIT sponsors FFmate by letting the team build and maintain it during their working hours, alongside MoovIT's own projects.
FFmate is licensed under the AGPL-3.0. See the LICENSE file for details.