Skip to content

Contributing

Phillippe Pelzer edited this page Nov 15, 2026 · 3 revisions

Contributing

This page is for people outside the project who want to change nomercy-ffmpeg. Read it before you write code.

The route

  1. Open an issue first. Say what you want to change and why. Include the platform and the FFmpeg command if it is a bug.
  2. Wait until the proposal is agreed. A maintainer answers on the issue. Do not open a pull request (PR) before that. A PR that was never agreed may be closed.
  3. Fork the repository and branch from dev.
  4. Open the PR into dev. Link the issue.
  5. A maintainer builds and tests it. See below.
  6. A maintainer merges it into dev. It ships with the next release.

Branches

Only two branches exist: master and dev.

Branch What it is
dev Where changes land. Your PR goes here.
master The latest release. It only receives a PR from dev, opened by a maintainer.

Do not push other branches to the main repository. Work in your fork.

No CI on fork PRs

The build jobs run on the project's self-hosted runners. They run for PRs into master, and they skip PRs from forks. A PR from your fork into dev therefore gets no build and no test run.

The light checks of PR Guards run on PRs into dev: the tests of the checklist scripts and a check that no workflow references an action by branch.

A maintainer builds all seven platforms and runs the tests on real hardware before merging. This takes time. Say in the PR what you tested yourself, so the maintainer knows where to look.

What a good PR has

  • One change. Several unrelated changes are hard to review and hard to revert.
  • A link to the agreed issue.
  • A short description: what changed, why, and which platforms it touches.
  • A test when behaviour changes. See Testing.
  • A pinned SHA-256 for every new download. See Adding or Updating a Library.
  • No change to a released behaviour without a note. Users and the NoMercy MediaServer depend on the archives.
  • A local build of at least one platform. See Building Locally.

Code style

Match the style of the file you edit.

Part Rule
Build scripts Numbered files in scripts/, one library or patch each. They start with #!/bin/bash.
Versions The version sits in a variable at the top of the script. A new download gets a pinned SHA-256 where the project publishes one. Older scripts do not all do this yet.
Helpers Use add_enable and add_cflag to add configure flags and log to write to the step log. They are in scripts/init/helpers.sh. Use retry for network commands; the base image installs it as /usr/local/bin/retry.
Errors Stop the step on a failed command, for example with exit 1. Do not hide a failure.
Other shell files The runtime and test helpers use set -euo pipefail.

The PR template

The repository's PR template is the release checklist. It is for PRs from dev to master. In a PR from your fork into dev, replace it with your own description: what changed, why, which platforms it touches, and what you tested.

Commit messages

Use the form type(scope): short description. Example: fix(hls): keep INDEPENDENT-SEGMENTS in the master playlist.

Security problems

How to report one is on Security.

Where to read next

Page What it covers
Architecture How the build is laid out.
Building Locally Build one platform on your machine.
Adding or Updating a Library Change a bundled library or a patch.
Testing The test scripts and what each one checks.
CI and Releases What happens after a PR is merged.

Clone this wiki locally