Repository navigation
Release Process and Versioning
ffmpeg-statigo uses two release schemes so heavy native archives and lightweight Go module tags evolve cleanly on separate tracks.
| Scheme | Tag format | Trigger recipe | GitHub Latest | Published assets |
|---|---|---|---|---|
| Library and CLI release | lib-X.Y.Z.N |
just ffmpeg-release lib-X.Y.Z.N |
false (make_latest: false) |
24 archives (12 static library tarballs + 12 standalone CLI archives) + 1 unified SHA256SUMS
|
| Go module and package release | vX.Y.Z.N |
just go-release X.Y.Z.N |
true |
18 Haberdasher CLI packages and binaries + 1 SHA256SUMS (18 lines), plus detached latest Nix tag |
In both schemes, X.Y.Z is the upstream FFmpeg version (for example 8.1.2) and N is the build revision (for example 1). Use just ffmpeg-release and just go-release rather than the generic three-part just release recipe from Tailor.
lib/fetch.go pins the active pair:
-
const Version = "X.Y.Z"holds the FFmpeg version. -
const LibRelease = "lib-X.Y.Z.N"pins the exact GitHub Release tag thatcmd/download-libfetches.
Each library release ships across six targets (linux/amd64, linux/arm64, darwin/amd64, darwin/arm64, windows/amd64, windows/386) and two profiles (default GPLv3 and embedded LGPLv2.1):
| Target | Static library (default / embedded) | Standalone CLI (default / embedded) |
|---|---|---|
linux/amd64 |
ffmpeg-linux-amd64.tar.gz, ffmpeg-embedded-linux-amd64.tar.gz
|
ffmpeg-bin-linux-amd64.tar.gz, ffmpeg-bin-embedded-linux-amd64.tar.gz
|
linux/arm64 |
ffmpeg-linux-arm64.tar.gz, ffmpeg-embedded-linux-arm64.tar.gz
|
ffmpeg-bin-linux-arm64.tar.gz, ffmpeg-bin-embedded-linux-arm64.tar.gz
|
darwin/amd64 |
ffmpeg-darwin-amd64.tar.gz, ffmpeg-embedded-darwin-amd64.tar.gz
|
ffmpeg-bin-darwin-amd64.tar.gz, ffmpeg-bin-embedded-darwin-amd64.tar.gz
|
darwin/arm64 |
ffmpeg-darwin-arm64.tar.gz, ffmpeg-embedded-darwin-arm64.tar.gz
|
ffmpeg-bin-darwin-arm64.tar.gz, ffmpeg-bin-embedded-darwin-arm64.tar.gz
|
windows/amd64 |
ffmpeg-windows-amd64.tar.gz, ffmpeg-embedded-windows-amd64.tar.gz
|
ffmpeg-bin-windows-amd64.zip, ffmpeg-bin-embedded-windows-amd64.zip
|
windows/386 |
ffmpeg-windows-386.tar.gz, ffmpeg-embedded-windows-386.tar.gz
|
ffmpeg-bin-windows-386.zip, ffmpeg-bin-embedded-windows-386.zip
|
Every CLI archive unpacks into <stem>/ containing ffmpeg (ffmpeg.exe on Windows), ffprobe (ffprobe.exe on Windows), LICENSE (COPYING.GPLv3 or COPYING.LGPLv2.1), and NOTICE.txt. One unified SHA256SUMS file covers all 24 archives.
When the pinned LibRelease contains SHA256SUMS and all six default (GPLv3) ffmpeg-bin-* archives, go-release.yml verifies those six archives against SHA256SUMS and runs packaging/package-release.sh with pinned nfpm v2.49.0 and packaging/nfpm.yaml.
The script produces 18 assets and an 18-line SHA256SUMS:
-
Linux packages (6):
ffmpeg-statigo_<ver>_{amd64,arm64}.deb,ffmpeg-statigo-<ver>-1.{x86_64,aarch64}.rpm, andffmpeg-statigo-<ver>-1-{x86_64,aarch64}.pkg.tar.zst. Each package installs/usr/bin/ffmpeg-statigo,/usr/bin/ffprobe-statigo,LICENSE, andNOTICE.txt, and declares aglibc >= 2.39dependency (libc6 (>= 2.39),libc.so.6(GLIBC_2.39)(64bit), orglibc>=2.39). -
Linux standalone binaries (4):
ffmpeg-statigo-linux-{amd64,arm64}andffprobe-statigo-linux-{amd64,arm64}. -
macOS standalone binaries (4):
ffmpeg-statigo-darwin-{amd64,arm64}andffprobe-statigo-darwin-{amd64,arm64}. -
Windows zips (4):
ffmpeg-statigo-windows-{amd64,386}.zipandffprobe-statigo-windows-{amd64,386}.zip, each bundling the renamed.exe,LICENSE, andNOTICE.txt.
Haberdasher publishes these assets to apt.wimpys.world, rpm.wimpys.world, pkg.wimpys.world, brew.wimpys.world, scoop.wimpys.world, and nix.wimpys.world.
For every non-prerelease vX.Y.Z.N release with CLI assets, go-release.yml updates the detached latest git tag:
- Fetches
refs/tags/latestif it exists and compares itsnix/sources.jsonversion with the new release usingsort -V. Iflatestis already newer, the step skips the update so maintenance releases on older branches do not downgradelatest. - Checks out a detached HEAD at
vX.Y.Z.N, writes the generatednix/sources.json(holdingversion,libRelease, andurlplus SRIsha256-...hashes forx86_64-linux,aarch64-linux,x86_64-darwin, andaarch64-darwinpointing atffmpeg-bin-*onlib-X.Y.Z.N), and commits it on the detached HEAD. - Force-pushes
refs/tags/latest.
flake.nix and nix/package.nix expose packages.default and packages.ffmpeg-statigo whenever nix/sources.json is present on that tag.
| Workflow | Trigger | Purpose |
|---|---|---|
.github/workflows/_build-libs.yml |
workflow_call |
Reusable native builder for all 12 platform and profile combinations across Linux, macOS, and Windows |
.github/workflows/ffmpeg-release.yml |
lib-X.Y.Z.N tag push or workflow_dispatch
|
Validates 3-way version parity, calls _build-libs.yml, checks all 24 archives, writes unified SHA256SUMS, and publishes the lib- release (make_latest: false) |
.github/workflows/go-test.yml |
Push or pull request on main, or workflow_dispatch
|
Tests Go packages against downloaded archives or freshly built artefacts, runs race tests, lints, and checks byte-identical binding regeneration |
.github/workflows/go-release.yml |
vX.Y.Z.N tag push or workflow_dispatch
|
Tests Unix and Windows across both profiles, packages the 18 Haberdasher CLI assets, creates the v tag and GitHub Release, and updates the detached latest Nix tag |
.github/workflows/tailor-wiki.yml |
Push to wiki/** or .github/workflows/tailor-wiki.yml on main, or workflow_dispatch
|
Publishes wiki/ to <repo>.wiki.git after verifying .tailor-wiki-base adoption and checking for external wiki edits |
_build-libs.yml accepts four optional inputs: clean_ffmpeg (default false), test (default false), build_programs (default true), and release_tag (default empty).
The matrix runs natively on ubuntu-24.04 (linux/amd64), ubuntu-24.04-arm (linux/arm64), macos-15-intel (darwin/amd64), macos-15 (darwin/arm64), and windows-2025 (MSYS2 UCRT64 for windows/amd64, MSYS2 MINGW32 with Rust 1.93.1 targeting i686-pc-windows-gnu for windows/386).
Before uploading artefacts, _build-libs.yml enforces binary portability gates:
-
Linux: Checks
LICENSEtext, verifiesDT_NEEDEDallows only core glibc libraries (libc,libm,libmvec,libpthread,libdl,librt, dynamic loader), rejects any ELF symbol version aboveGLIBC_2.39, and runs anffmpegplusffprobeH.264 encode/probe smoke test (libx264orlibopenh264). -
macOS: Checks
LICENSEtext, runscodesign --verify --strict, verifiesotool -Llists only/usr/lib/*and/System/Library/Frameworks/*, checksvtool -show-buildreportsminos <= 13.0, and runs the H.264 smoke test. -
Windows: Verifies archive COFF object architectures, checks
objdump -pDLL imports against the built-in OS allowlist (ucrtbase.dll/api-ms-win-crt-*.dllonamd64only,msvcrt.dllon386only), and runs the H.264 smoke test in PowerShell withPATHrestricted toC:\Windows\System32;C:\Windows.
go-test.yml uses fast download mode by default (fetching pre-built archives from LibRelease). It switches to from-source mode (_build-libs.yml) automatically when a commit or pull request modifies any of these paths or declarations:
internal/builder/*include/*ffmpeg_link_*.go.github/workflows/_build-libs.yml-
const LibReleaseinlib/fetch.go
Dispatch go-test.yml with build_libs: true to force a from-source build manually. On linux/amd64, go-test.yml also runs go test -race -count=1 ./... and golangci-lint. On all four Unix default-profile jobs, it runs go run ./internal/generator and fails if git diff --quiet -- ./*.gen.go shows any difference.
Before building, ffmpeg-release.yml verifies that three values agree:
- The
lib-X.Y.Z.Nrelease tag matchesconst LibReleaseinlib/fetch.go. - The
X.Y.Zportion matchesconst Versioninlib/fetch.go. - The
X.Y.Zportion matches the FFmpeg tarball URL (nX.Y.Z.tar.*) ininternal/builder/libraries.go.
Tailor manages .github/workflows/tailor-wiki.yml. On pushes to main touching wiki/**, the job checks wiki/.tailor-wiki-base against the remote wiki HEAD and refuses to push if the remote wiki changed outside the workflow. Edit wiki pages in wiki/ rather than directly in the GitHub web editor.
Follow these steps in order when bumping FFmpeg or a static dependency:
- Update the library URL or version in
internal/builder/libraries.go(orinternal/builder/openh264.go). - Refresh SHA-256 pins in
internal/builder/digests.gowithgo run ./internal/builder --update-digests(and--embedded --update-digestswhen OpenH264 changes), then verify each digest against upstream checksums. - Rebuild locally with
just build-static ffmpeg --clean && just build-static(andjust build-embeddedif embedded changed) to verify compilation. - Copy updated FFmpeg headers into
include/when upgrading the FFmpeg version. - Regenerate bindings and IR goldens with
go run ./internal/generator -dump-ir. Inspectgit diff -- internal/generator/testdata/ir/to confirm every change is expected. AdjustskipCeilingininternal/generator/main.goonly if new FFmpeg headers add legitimate unemittable symbols. - Update
const Versionandconst LibReleaseinlib/fetch.goand the library version table inREADME.md. - Run
just build,just test, andjust lint. - Open a pull request. Because
internal/builder/*,include/*, orLibReleasechanged,go-test.ymlbuilds all 12 platform and profile combinations from source and runs the full test and generator-determinism matrix. - When CI passes, merge the pull request to
main. - Trigger the library and CLI release:
just ffmpeg-release lib-X.Y.Z.N. Wait until all 24 archives andSHA256SUMSpublish. - Trigger the Go module and Haberdasher release:
just go-release X.Y.Z.N. Confirm the 18 CLI assets publish and the detachedlatestNix tag updates.
Next: read Troubleshooting and FAQ if a local build, runtime link, or platform gate fails.
Edit this documentation in the repository's wiki/ directory. Repository | Releases | Issues