Open blainekasten opened 4 years ago
I don’t plan on adding this, encoding is a lot harder than decoding, and apart from the format, they have very little to do with each other. For decoding, you take the bits, look at the spec to see what they mean, and that’s mostly all there is to it. Encoding is a search problem, where you can encode an input in many different ways, and you need to find a small enough one in a reasonable amount of time.
There are only a few competitive flac encoders out there, I think your best bet would be to use one of those. There are a number of crates on crates.io with libflac bindings. Writing an encoder in Rust would be interesting, but it would take a lot of time and effort for it to be a serious alternative to libflac.
Given that Claxon is used by Rodio as it's FLAC support, I was wondering if ya'll have considered adding encoding support?
My use case is effectively that I want to convert a wav file to FLAC, but it doesn't seem that there is any Rust FLAC encoders out there yet.