rff-codec-alac
The Apple Lossless (ALAC) audio decoder for remade_ffmpeg_rs — our own code, not a binding.
- 16, 20, 24 and 32-bit, 1 to 8 channels, from MP4/M4A, CAF and Matroska.
- Takes the magic cookie in any of its wrappings (bare
ALACSpecificConfig, the 36-bytealacatom, or a CAF cookie withfrma). - FFmpeg's arithmetic, and FFmpeg's channel order: ALAC's C L R ... layout comes out as L R C LFE ... .
- Output is interleaved s16 for 16-bit streams and f32 for deeper ones (exact for 20 and 24 bits).
- Lossless: decoded output equals the source PCM on every test stream, and matches symphonia sample for sample.
- Pure Rust, no C/FFI, no dependencies beyond the core traits.
Usage
use CodecRegistry;
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.