| 1 | # Get frei0r |
| 2 | |
| 3 | frei0r is distributed as source code, release archives and packages maintained |
| 4 | by operating-system communities. After installing it, open a compatible |
| 5 | [application or framework](/software) to use the plugins. |
| 6 | |
| 7 | ## Releases |
| 8 | |
| 9 | The project publishes source archives and platform artifacts on |
| 10 | [GitHub Releases](https://github.com/dyne/frei0r/releases). |
| 11 | |
| 12 | - **Windows:** release entries include Win64 plugin archives when the release |
| 13 | build succeeds. |
| 14 | - **macOS:** release entries include macOS plugin archives; Homebrew is usually |
| 15 | the simpler installation route. |
| 16 | - **GNU/Linux:** distributions package frei0r, and releases include build |
| 17 | artifacts intended primarily for packaging and testing. |
| 18 | |
| 19 | Release assets are produced automatically. Check the selected release entry for |
| 20 | the exact files it contains rather than relying on a fixed filename. |
| 21 | |
| 22 | ## Package managers |
| 23 | |
| 24 | Package versions can lag behind upstream releases. The |
| 25 | [Repology overview](https://repology.org/project/frei0r/versions) compares |
| 26 | packages across many distributions. |
| 27 | |
| 28 | ### GNU/Linux |
| 29 | |
| 30 | Search your distribution for `frei0r` or `frei0r-plugins`. Install both the |
| 31 | runtime plugins and development headers when compiling a host or a new plugin. |
| 32 | |
| 33 | ### macOS |
| 34 | |
| 35 | Install the [Homebrew formula](https://formulae.brew.sh/formula/frei0r): |
| 36 | |
| 37 | ```sh |
| 38 | brew install frei0r |
| 39 | ``` |
| 40 | |
| 41 | ### BSD |
| 42 | |
| 43 | - [FreeBSD port](https://www.freshports.org/graphics/frei0r/) |
| 44 | - [NetBSD pkgsrc](https://pkgsrc.se/multimedia/frei0r) |
| 45 | - OpenBSD users can search the ports/packages collection for `frei0r-plugins`. |
| 46 | |
| 47 | ## Build from source |
| 48 | |
| 49 | You need a C compiler, a C++11 compiler, CMake, and Ninja or Make. Clone the |
| 50 | repository and use an out-of-tree build: |
| 51 | |
| 52 | ```sh |
| 53 | git clone https://github.com/dyne/frei0r.git |
| 54 | cd frei0r |
| 55 | cmake -S . -B build -G Ninja |
| 56 | cmake --build build |
| 57 | ``` |
| 58 | |
| 59 | Install using CMake's install step, with administrator privileges only when the |
| 60 | chosen prefix requires them: |
| 61 | |
| 62 | ```sh |
| 63 | cmake --install build |
| 64 | ``` |
| 65 | |
| 66 | The authoritative maintained instructions are in |
| 67 | [`BUILD.md`](https://github.com/dyne/frei0r/blob/master/BUILD.md). |
| 68 | |
| 69 | ## Optional plugin dependencies |
| 70 | |
| 71 | The build detects optional libraries that enable additional effects: |
| 72 | |
| 73 | | Library | Used by | |
| 74 | | --- | --- | |
| 75 | | OpenCV | Face-detection and related filters | |
| 76 | | Cairo | Cairo-based filters and mixers | |
| 77 | | Gavl | Filters such as `scale0tilt` and `vectorscope` | |
| 78 | |
| 79 | Disable unavailable groups explicitly when making a minimal build: |
| 80 | |
| 81 | ```sh |
| 82 | cmake -S . -B build -G Ninja \ |
| 83 | -DWITHOUT_OPENCV=ON \ |
| 84 | -DWITHOUT_CAIRO=ON \ |
| 85 | -DWITHOUT_GAVL=ON |
| 86 | cmake --build build |
| 87 | ``` |
| 88 | |
| 89 | Applications using MLT may need face-recognition plugins disabled to avoid |
| 90 | protobuf conflicts: |
| 91 | |
| 92 | ```sh |
| 93 | cmake -S . -B build -DWITHOUT_FACERECOGNITION=ON |
| 94 | cmake --build build |
| 95 | ``` |
| 96 | |
| 97 | ## Test a source build |
| 98 | |
| 99 | The repository includes runtime tools that load and exercise built plugins: |
| 100 | |
| 101 | ```sh |
| 102 | cd test |
| 103 | make frei0r-asan |
| 104 | make check |
| 105 | make frei0r-meta |
| 106 | make scan-meta |
| 107 | ``` |
| 108 | |
| 109 | The test Makefile expects plugins under the repository's `build/src` tree. |
| 110 | |
| 111 | ## What to do next |
| 112 | |
| 113 | - [See software that can host the plugins](/software) |
| 114 | - [Use frei0r with FFmpeg and other hosts](/using-frei0r) |
| 115 | - [Write and contribute a plugin](/develop-plugin) |
| 116 | - [Ask installation questions on Telegram](https://t.me/frei0r) |