rff-filter
Video frame filters for remade_ffmpeg_rs — FFmpeg's libavfilter, scoped
to the graph shapes the CLI actually exposes: a linear -vf chain and an
overlay composite for -filter_complex.
FilterChain::parse— parses FFmpeg's-vfsyntax (scale=320:240,crop=w:h:x:y) into a chain you canapplyto each decodedVideoFrame.scaleandcropfilters today; theFiltertrait is the extension point for more.output_dims— resolve the post-chain frame size without decoding anything, which is what the encoder needs at open time.overlay— composite one frame over another at(x, y), backing-filter_complexoverlay.- Empty spec = pass-through, so callers don't special-case "no filters".
Usage
use FilterChain;
use ;
Part of Remade With Rust
This crate is one layer of
remade_ffmpeg_rs — a
ground-up, permissively-licensed Rust rebuild of FFmpeg: a drop-in
ffmpeg/ffprobe CLI on pure-Rust codecs, with no copyleft. Most users want
the remade-ffmpeg engine facade or the
rff-cli binaries rather than this crate
directly.
Also check out our sister project
FFAI — media for an AI-first
world — and the rest of
github.com/remade-with-rust, including
the standalone codec crates
rusty_h264,
rusty_vp9,
rusty_mp3,
rusty_aac,
rusty-opus,
rusty_vorbis, and the
rusty-av1-toolkit forks.
About Mata Network
Mata Network builds sovereign, self-hostable infrastructure. Remade With Rust is our open-source home for the permissively-licensed building blocks that work depends on.
License
Apache-2.0. See the workspace LICENSE.