Module filter

Module filter 

Source
Expand description

Audio and video filtering.

This module provides filtering capabilities for audio and video streams. Filters can modify, analyze, or transform media frames (scaling, cropping, color correction, audio mixing, etc.).

It wraps FFmpeg’s libavfilter library.

§Main Components

  • Graph - Filter graph connecting multiple filters
  • Filter - Individual filter definition (scale, crop, overlay, etc.)
  • Context - Instance of a filter within a graph
  • Pad - Input/output connection point on a filter

§Usage

Filters are organized into graphs. Create a graph, add filters, link them together, then push frames through the graph to process them.

Common use cases include video scaling, format conversion, overlay composition, and audio mixing.

Re-exports§

pub use self::flag::Flags;
pub use self::pad::Pad;
pub use self::filter::Filter;
pub use self::context::Context;
pub use self::context::Sink;
pub use self::context::Source;
pub use self::graph::Graph;

Modules§

context
filter
flag
graph
pad

Functions§

configuration
Returns the libavfilter build configuration string.
find
Finds a filter by name.
license
Returns the libavfilter license string.
version
Returns the libavfilter version number.