Repository navigation
Contributing
This page is for people outside the project who want to change nomercy-ffmpeg. Read it before you write code.
- Open an issue first. Say what you want to change and why. Include the platform and the FFmpeg command if it is a bug.
- 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.
-
Fork the repository and branch from
dev. -
Open the PR into
dev. Link the issue. - A maintainer builds and tests it. See below.
-
A maintainer merges it into
dev. It ships with the next release.
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.
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.
- 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.
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 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.
Use the form type(scope): short description. Example: fix(hls): keep INDEPENDENT-SEGMENTS in the master playlist.
How to report one is on Security.
| 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. |
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