Repository navigation
CI and Releases
This page shows what happens from a merged change to a published release. Contributors do not run these steps. Maintainers do. Knowing them explains why a PR waits.
- Changes are merged into
dev. - A maintainer opens a PR from
devtomaster. - CI builds all seven platforms and publishes a release candidate.
- The candidate is tested on real hardware. The PR checklist ticks itself.
- One reviewer approves. The PR is squash merged.
-
masterbuilds the release, deletes the candidate and publishes to npm. -
devis reset tomaster, so both are the same. - The Wiki pages for what the release changed are updated.
Only master and dev exist. A PR into master is only accepted from dev. The check guard-source-branch rejects any other source branch.
| Workflow | File | Job |
|---|---|---|
| CI/CD Pipeline | main.yml |
Builds, tests, scans and publishes. |
| Detect Changes | detect-changes.yml |
Decides what to build, computes the next version. |
| Reusable Docker Build | reusable-docker-build.yml |
Builds one image. Used by main.yml. |
| PR Guards | pr-guards.yml |
Checks on every PR into master or dev. |
| Verify RC | verify-rc.yml |
Tests the release candidate on real hardware. Ticks the checklist. |
| npm Publish | npm-publish.yml |
Publishes the npm client after a release. |
main.yml runs on a push to master and on a PR into master. It does not run on a PR into dev.
The builds run on the project's self-hosted runners. A PR from a fork does not build there. That is why a fork PR gets no build and a maintainer builds the change. See Contributing.
A PR into master always builds everything. On a push to master, a change that touches the build builds all seven platforms. A release always carries every platform. Workflows that cannot change a binary (for example PR Guards or Verify RC) do not cause a rebuild.
PR Guards run on every PR into master or dev.
| Check | Runs on | What it checks |
|---|---|---|
guard-source-branch |
PRs into master
|
The source branch is dev. |
checklist-complete |
PRs into master
|
Every box between the checklist markers in the PR body is ticked. |
checklist-scripts |
all | The tests of the checklist scripts pass. |
action-pins |
all | No workflow references an action by branch. |
pr-validation |
all | Collects the results above. |
checklist-complete reads the PR body from the PR event. When Verify RC ticks a box it edits the PR body. An edit of the PR starts PR Guards again.
A PR from dev to master starts the build. These jobs run in order:
- Detect Changes computes the next version: the newest tag, with the patch number plus one.
- Build the base image if it changed, then every platform.
- Export the archives from the images.
- Smoke test each archive on a matching GitHub-hosted runner. See Testing.
- Unit tests run on Ubuntu.
- Trivy scans every image. The results go to GitHub code scanning. See Security.
-
Publish a prerelease named
vX.Y.Z-rc, with the archives, a.sha256file for each, andmanifest.json.
On darwin-arm64, Metal checks run on Apple Silicon. They report; they do not block the release. The smoke test of the darwin-x86_64 archive requires the Metal backend to be in the binary.
Every push to the PR builds and publishes the candidate again. The old one is deleted first.
A PR check, pr-build, is green only when the whole path passed.
When the build for the PR succeeds, Verify RC runs. It tests the exact candidate that was built from the PR head.
| Platform | Where it runs |
|---|---|
| linux-x86_64, linux-aarch64, windows-x86_64, darwin-x86_64, darwin-arm64, freebsd-x86_64 | The project's self-hosted runners. |
| windows-aarch64 | GitHub's hosted windows-11-arm runner. |
Each job does this:
- Downloads the archive and
manifest.jsonfrom the candidate. - Checks the SHA-256 of the archive against the manifest.
- Unpacks it and runs
tests/tests.shortests/tests.ps1. See Testing. - Writes a verdict file that names the SHA-256 of the bytes it tested.
A separate job then ticks the PR checklist. It ticks a box only from a verdict that says pass. It never ticks from a job's exit code alone.
If a runner is offline, its box stays empty and the PR cannot merge. That is the same result as nobody having tested it.
The checklist has one line per platform. It has one more line for hardware acceleration (NVENC, AMF, VPL). That line ticks when the acceleration was exercised somewhere on the test machines.
Verify RC never runs a PR from a fork.
A PR into master can merge when all of these hold:
| Rule | Detail |
|---|---|
pr-validation is green |
Source is dev, the checklist is complete, the checklist scripts pass. |
pr-build is green |
The build, export, smoke and unit tests passed. |
| One approving review | Stale approvals are dismissed on a new push. |
| Conversations are resolved | |
| Squash merge | Squash only (repository setting). |
The .github/scripts/setup-branch-protection.sh script sets the required checks, approvals and conversation resolution. The merge method is not set by that script.
Do not push to dev while a release PR has a candidate. Each push builds again, deletes the candidate and starts verification from the beginning. Wait until the release is merged.
A squash merge pushes to master. Then main.yml:
- Builds all platforms again.
- Runs the smoke tests and unit tests.
- Publishes the release
vX.Y.Zwith the version-stamped archives,.sha256files andmanifest.json. - Deletes the
-rcprerelease. - Scans the images with Trivy.
The archives are named ffmpeg-9.1-<platform>-vX.Y.Z.<ext>. See Installation.
When the pipeline finishes on master, npm Publish checks that the release job succeeded. If it did, it publishes the client for the newest full release. The client version is the release version. A candidate never becomes an npm version.
See npm-Package.
-
devis reset tomaster. Both branches are identical. - The Wiki pages for what the release changed are updated. The Wiki always describes the latest release.
Sources the build downloads come from pinned source mirrors, with the upstream origin as a fallback. Only a file with the pinned SHA-256 is kept. See Architecture.
Users
Filters and components
- Filter-stemsplit
- Filter-lyricsalign
- Whisper-Language-Detection
- Whisper-Word-Timestamps
- Filter-trailingsilence
- Filter-keydetect
- Filter-beatdetect
- Filter-rubberband
- Muxer-Sprite-Sheet
- Muxer-Chapter-VTT
- Muxer-VOBsub
- Protocol-dvdread
- Protocol-OmniDrive
- Auto-Create-Directories
- AACS-and-BDplus
- HLS-Master-Playlist
- Subtitles-OCR
- HEVC-Alpha
Acceleration and codecs
Contributors