Audio encoding (.mp3) library in Rust?

Hi,
I am using symphonia and video-rs to decode mp3 and mp4 files into raw data.
Symphonia works great as an audio decoder, however unfortunately it doesn't support encoding. video-rs is fine for both encoding/decoding, however at the moment it only supports video (no audio data is transferred). I would make a contribution, but I can't afford to do that at the moment (I have a deadline).
is there a library I can use to turn raw audio data into .mp3? alternatively, I can use ffmpeg CLI, but I want to avoid this to the maximum extent. I could write a binding myself using ffmpeg4-sys, but that collides with symphonia

Hi,

Using MLT Framework now. Doesn't have a Rust binding, but planning to make one soon. Will definitely check those too.

Thanks!

I don't think there is a popular pure-rust MP3 encoder yet, but have you checked out mp3lame-encoder — Rust audio library // Lib.rs for example? - it binds to LAME

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.