Skip to main content

Clean

Struct Clean 

Source
pub struct Clean {
    pub amount: f64,
    pub highpass: Option<f64>,
    pub lowpass: Option<f64>,
    pub wind: bool,
    pub declick: bool,
    pub denoise: Denoise,
    pub model: Option<String>,
    pub dialogue: Option<bool>,
}
Expand description

ffcine.audio.clean/1: per-clip clean chain, run through libavfilter in this order: high-pass, wind, de-click, denoise, dialogue polish (EQ, de-esser, compressor). Dialogue-bus clips without one get Clean::for_mode, the prototype’s clean_filters.

Fields§

§amount: f64

Strength c in 0..=1 (strength in edit.yaml imports; the prototype’s clean). 0 turns denoise and the EQ/de-esser off.

§highpass: Option<f64>

High-pass corner in Hz (12 dB/oct); null for none.

§lowpass: Option<f64>

Low-pass corner in Hz (12 dB/oct), none by default.

§wind: bool

Outdoor wind preset: 24 dB/oct high-pass at 150 Hz, low shelf -6 dB at 300 Hz, de-click for gust pops.

§declick: bool§denoise: Denoise§model: Option<String>

RNNoise model for arnndn.

§dialogue: Option<bool>

Dialogue polish: presence EQ (+1.8c dB at 3.2 kHz), deesser i=0.35c, acompressor -24 dB 2.5:1 8/160 ms. Default: on for dialogue (orig), off otherwise.

Implementations§

Source§

impl Clean

Source

pub fn for_mode(mode: LevelMode) -> Self

The prototype’s chain for a clip of this mode: orig at 0.6 with the polish, nat only the high-pass.

Source

pub fn for_mode_in(mode: LevelMode, d: &ClipDefaults) -> Self

Clean::for_mode with the strengths and high-pass of d (project.mix).

Source

pub fn filter_spec(&self, mode: LevelMode) -> String

The libavfilter chain (without format conversion); empty for a no-op. mode decides the dialogue polish when dialogue is unset.

Trait Implementations§

Source§

impl Clone for Clean

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Clean

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Clean

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Clean
where Clean: Default,

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for Clean

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Clean

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Clean

Auto Trait Implementations§

§

impl Forget for Clean

§

impl Freeze for Clean

§

impl RefUnwindSafe for Clean

§

impl Send for Clean

§

impl Sync for Clean

§

impl Unpin for Clean

§

impl UnsafeUnpin for Clean

§

impl UnwindSafe for Clean

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<S> FromSample<S> for S

Source§

fn from_sample_(s: S) -> S

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> ToSample<U> for T
where U: FromSample<T>,

Source§

fn to_sample_(self) -> U

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.