666ec7d54d
This normalizes the loudness of an audio stream to a target loudness with a given maximum peak based on EBU R128. Conceptually it keeps a 3s lookahead for calculating the perceived loudness and based on that calculates the gain required to reach the target loudness. The calculated gains then go through a gaussian filter for smoothening and are then applied to the audio in 100ms blocks. Each of the 100ms blocks is then passed to a limiter filter to prevent going above the maximum peak. See http://k.ylo.ph/2016/04/04/loudnorm.html for some more details about the algorithm. It introduces 3s of latency and currently only works on 192kHz audio. Using it with a different sample rate requires resampling before and afterwards. The upsampling is required to calculate the true peak. Other than the ffmpeg filter it currently does not support two-pass processing but only one-pass/live processing. Compared to the ffmpeg filter this code was refactored considerably and the limiter implementation was fixed to actually work, as well as various other bugs in different places that were fixed. |
||
---|---|---|
gst-plugin-audiofx | ||
gst-plugin-cdg | ||
gst-plugin-claxon | ||
gst-plugin-closedcaption | ||
gst-plugin-csound | ||
gst-plugin-dav1d | ||
gst-plugin-fallbackswitch | ||
gst-plugin-file | ||
gst-plugin-flv | ||
gst-plugin-gif | ||
gst-plugin-lewton | ||
gst-plugin-rav1e | ||
gst-plugin-reqwest | ||
gst-plugin-rusoto | ||
gst-plugin-sodium | ||
gst-plugin-threadshare | ||
gst-plugin-togglerecord | ||
gst-plugin-tutorial | ||
gst-plugin-version-helper | ||
.gitignore | ||
.gitlab-ci.yml | ||
Cargo.toml | ||
cargo_wrapper.py | ||
LICENSE-APACHE | ||
LICENSE-LGPLv2 | ||
LICENSE-MIT | ||
Makefile | ||
meson.build | ||
meson_options.txt | ||
README.md |
gst-plugins-rs
Repository containing various GStreamer plugins and elements written in the Rust programming language.
The plugins build upon the GStreamer Rust bindings. Check the README.md of that repository also for details about how to set-up your development environment.
LICENSE
gst-plugins-rs and all crates contained in here that are not listed below are licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
gst-plugin-togglerecord is licensed under the Lesser General Public License (LICENSE-LGPLv2) version 2.1 or (at your option) any later version.
gst-plugin-csound is licensed under the Lesser General Public License (LICENSE-LGPLv2) version 2.1 or (at your option) any later version.
GStreamer itself is licensed under the Lesser General Public License version 2.1 or (at your option) any later version: https://www.gnu.org/licenses/lgpl-2.1.html
Contribution
Any kinds of contributions are welcome as a pull request.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in gst-plugins-rs by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.