| 1 | [](https://frei0r.dyne.org) |
| 2 | |
| 3 | <img src="https://files.dyne.org/software_by_dyne.png" width="300"> |
| 4 | |
| 5 | [](https://github.com/dyne/frei0r/actions/workflows/test.yml) |
| 6 | [](https://github.com/dyne/frei0r/actions/workflows/release.yml) |
| 7 | |
| 8 | |
| 9 | # What frei0r is |
| 10 | |
| 11 | The frei0r project is a collection of free and open source video effects plugins that can be used with a variety of video editing and processing software. |
| 12 | |
| 13 | [For an extensive introduction to frei0r, read the project story on Dyne.org.](https://news.dyne.org/frei0r-the-free-and-open-source-video-effect-preservation-project/) |
| 14 | |
| 15 | The frei0r project welcomes contributions by people who are passionate about video effects, its collection consists of more than 100 plugins made to work on any target platform (GNU/Linux, Apple/OSX and MS/Win) without the need for special video hardware. These plugins can be used to add a wide range of effects to video, such as color correction, blurring, and distortion. |
| 16 | |
| 17 | The frei0r project is a great resource for anyone interested in algorithms for video transformation and effects, as it provides a wide range of open source formulas available for free and can be easily integrated into a variety of software. |
| 18 | |
| 19 | |
| 20 | ## What frei0r is not |
| 21 | |
| 22 | Frei0r itself is just a C/C++ header and a collection of small programs using it to accept an input frame, change it in any possible way and return an output frame. |
| 23 | |
| 24 | It is not meant as a generic API for all kinds of video applications, as it doesn't provides things like an extensive parameter mechanism or event handling. |
| 25 | |
| 26 | Eventually the frei0r API can be wrapped by higher level APIs expanding its functionalities, for instance GStreamer, MLT, FFmpeg and Pure Data do. |
| 27 | |
| 28 | ## Links |
| 29 | |
| 30 | Wikipedia page about frei0r: https://en.wikipedia.org/wiki/Frei0r |
| 31 | |
| 32 | Some applications using frei0r, sorted in order of most recent activity |
| 33 | |
| 34 | - [MLT](https://www.mltframework.org/) |
| 35 | - [LiquidSoap](https://www.liquidsoap.info/) |
| 36 | - [KDEnLive](https://www.kdenlive.org/) |
| 37 | - [Shotcut](https://www.shotcut.org/) |
| 38 | - [FFMpeg](https://ffmpeg.org) |
| 39 | - [PureData](https://puredata.info/) |
| 40 | - [Open Movie Editor](http://www.openmovieeditor.org/) |
| 41 | - [Gephex](https://gephex.org/) |
| 42 | - [LiVES](http://lives.sf.net) |
| 43 | - [FreeJ](https://freej.dyne.org) |
| 44 | - [VeeJay](http://veejayhq.net) |
| 45 | - [Flowblade](https://jliljebl.github.io/flowblade/) |
| 46 | |
| 47 | |
| 48 | # Downloads |
| 49 | |
| 50 | Stable frei0r releases are built automatically and made available on |
| 51 | |
| 52 | ## https://github.com/dyne/frei0r/releases |
| 53 | |
| 54 | Frei0r sourcecode is released under the terms of the GNU General Public License and, eventually other compatible Free Software licenses. |
| 55 | |
| 56 | ## Packaging |
| 57 | |
| 58 | [](https://repology.org/project/frei0r/versions) |
| 59 | |
| 60 | ## Build dependencies |
| 61 | |
| 62 | Frei0r can be built on GNU/Linux, M$/Windows and Apple/OSX platforms, possibly in even more environments like embedded devices. |
| 63 | |
| 64 | For details see the [BUILD](/BUILD.md) file. |
| 65 | |
| 66 | ### Quick build and test |
| 67 | |
| 68 | ```sh |
| 69 | cmake -S . -B build -G Ninja |
| 70 | cmake --build build |
| 71 | cd test && make frei0r-asan && make check |
| 72 | ``` |
| 73 | |
| 74 | ### Metadata scan utility |
| 75 | |
| 76 | The metadata scanner binary is `test/frei0r-meta` (previously `frei0r-info`): |
| 77 | |
| 78 | ```sh |
| 79 | cd test && make frei0r-meta && make scan-meta |
| 80 | ``` |
| 81 | |
| 82 | ### MS / Windows |
| 83 | |
| 84 | We distribute official builds of frei0r plugins as .dll for the Win64 platform from the releases page. |
| 85 | |
| 86 | ### BSD |
| 87 | |
| 88 | Ports of frei0r are included in all major BSD distros: |
| 89 | - FreeBSD https://www.freshports.org/graphics/frei0r |
| 90 | - OpenBSD |
| 91 | - NetBSD https://pkgsrc.se/multimedia/frei0r |
| 92 | |
| 93 | ### GNU / Linux |
| 94 | |
| 95 | Binary packages are maintained on various distributions, but they may not be completely up to date with the latest release. |
| 96 | |
| 97 | - [frei0r*](https://repology.org/project/frei0r/versions) |
| 98 | - [frei0r-plugins*](https://repology.org/project/frei0r-plugins/versions) |
| 99 | - [ocaml:frei0r*](https://repology.org/project/ocaml:frei0r/versions) |
| 100 | |
| 101 | ### Apple / OSX |
| 102 | |
| 103 | A [frei0r Brew formula](https://formulae.brew.sh/formula/frei0r) is available. |
| 104 | |
| 105 | Official macOS release artifacts are distributed from the releases page. |
| 106 | |
| 107 | # Documentation |
| 108 | |
| 109 | |
| 110 | If you are new to frei0r, start with the [project documentation](https://frei0r.dyne.org/documentation). The [frei0r header](/include/frei0r.h) is the API specification, and the [generated API reference](https://frei0r.dyne.org/codedoc/html/) is available for browsing online. |
| 111 | |
| 112 | |
| 113 | ## C++ Filter example |
| 114 | |
| 115 | You could find a tutorial filter [here](https://github.com/dyne/frei0r/tree/master/src/filter/tutorial) in the source code. |
| 116 | A simple skeleton for a frei0r video filter looks like this: |
| 117 | |
| 118 | ```c++ |
| 119 | #include <frei0r.hpp> |
| 120 | |
| 121 | typedef struct { |
| 122 | int16_t w, h; |
| 123 | uint8_t bpp; |
| 124 | uint32_t size; |
| 125 | } ScreenGeometry; |
| 126 | |
| 127 | class MyExample: public frei0r::filter { |
| 128 | public: |
| 129 | MyExample(int wdt, int hgt); |
| 130 | ~MyExample(); |
| 131 | virtual void update(); |
| 132 | private: |
| 133 | ScreenGeometry geo; |
| 134 | void _init(int wdt, int hgt); |
| 135 | } |
| 136 | |
| 137 | MyExample::MyExample() { /* constructor */ } |
| 138 | MyExample::~MyExample() { /* destructor */ } |
| 139 | |
| 140 | void MyExample::_init(int wdt, int hgt) { |
| 141 | geo.w = wdt; |
| 142 | geo.h = hgt; |
| 143 | geo.bpp = 32; // this filter works only in RGBA 32bit |
| 144 | geo.size = geo.w*geo.h*(geo.bpp/8); // calculate the size in bytes |
| 145 | } |
| 146 | |
| 147 | void MyExample::update() { |
| 148 | // we get video input via buffer pointer (void*)in |
| 149 | uint32_t *src = (uint32_t*)in; |
| 150 | // and we give video output via buffer pointer (void*)out |
| 151 | uint32_t *dst = (uint32_t*)out; |
| 152 | // this example here does just a copy of input to output |
| 153 | memcpy(dst, src, geo.size); |
| 154 | } |
| 155 | |
| 156 | frei0r::construct<MyExample> |
| 157 | plugin("MyExample", "short and simple description for my example", |
| 158 | "Who did it", 1, 0); |
| 159 | ``` |
| 160 | |
| 161 | ## Join us |
| 162 | |
| 163 | To contribute your plugin please open a [pull request](https://github.com/dyne/frei0r/pulls). |
| 164 | |
| 165 | For bug reporting please use our [issue tracker](https://github.com/dyne/frei0r/issues). |
| 166 | |
| 167 | You can get in touch with some developers over various dyne.org chat channels, for instance |
| 168 | |
| 169 | ### https://t.me/frei0r |
| 170 | |
| 171 | We also have an (old) mailing list open to [subscription](https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/frei0r) and we provide [public archives](https://lists.dyne.org/lurker/list/frei0r.en.html) of discussions, searchable and indexed online. |
| 172 | |
| 173 | ## Acknowledgments |
| 174 | |
| 175 | Frei0r is the result of a collective effort in coordination with several software developers meeting to find a common standard for video effect plugins to be used among their applications. |
| 176 | |
| 177 | For a full list of contributors and the project history, see the file [AUTHORS](/AUTHORS), the [ChangeLog](/ChangeLog) and the project web page: https://frei0r.dyne.org |
| 178 |