remade-ffmpeg
Published as
remade-ffmpeg— the short namerffon crates.io belongs to an unrelated crate. The library is stillrff, so the code below is what you actually write:= "0.2"
The engine facade of remade_ffmpeg_rs — a ground-up, permissively-licensed
Rust rebuild of FFmpeg. This crate wires every built-in codec and container into
one Engine and exposes the high-level transcode and probe API that the
ffmpeg/ffprobe CLI and the HTTP server are thin shells over.
This is the crate to depend on if you want to embed the toolkit in an
application. Apache-2.0, no copyleft anywhere in the dependency tree
(CI-enforced with cargo-deny), and no C/FFI on the default path.
Engine::new()— every built-in codec and container registered, ready to use. Itscodecs/formatsregistries are public, which is howffmpeg -codecsand-formatsare implemented.transcode::run— a declarativeTranscodeSpec: inputs, outputs, per-stream codec + options,-mapstream selection,-vffilter graphs,-filter_complexoverlay,-frames:vlimits, overwrite policy.probe::probe— container and per-stream metadata for a file, theffprobecore.- Video: VP9, H.264/AVC, AV1, AVIF, PNG, MJPEG, GIF, WebP, JPEG XL (decode), raw video.
- Audio: Opus, AAC-LC, MP3, Vorbis, FLAC, PCM — several with in-house encoders that beat their C counterparts (see the benchmarks).
- Containers: MP4/MOV, Matroska/WebM, AVI, MPEG-TS, FLV, HLS output, Ogg, WAV, FLAC, MP3, IVF, Y4M, AVIF, and the single-image wrappers.
- Pre-1.0 and not yet independently audited. APIs and codec coverage are still moving.
Usage
use ;
use Engine;
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.