Skip to main content

Crate rff_codec_mp3

Crate rff_codec_mp3 

Source
Expand description

MP3 (MPEG-1/2/2.5 Audio Layer III) codec, backed by the pure-Rust rusty_mp3 decoder + encoder (formerly in-tree here, now a standalone publishable crate — the same adapter pattern as rff-codec-h264 over rusty_h264).

This crate is the thin rff-facing layer: register() wires the codec into the registry, the wrapper structs implement the rff Decoder/Encoder traits by delegating to rusty_mp3::Mp3Decoder/rusty_mp3::Mp3Encoder, and everything ffmpeg-CLI-shaped stays here: Dictionary option parsing (-b:a, -q:a), AudioFrame ↔ PCM conversion honoring af.format, and rusty_mp3 → rff error mapping.

Re-exports§

pub use rusty_mp3;

Functions§

register
Register the MP3 codec (decoder + encoder) into a CodecRegistry.