Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider adding encoding support #23

Open
blainekasten opened this issue May 21, 2020 · 1 comment
Open

Consider adding encoding support #23

blainekasten opened this issue May 21, 2020 · 1 comment

Comments

@blainekasten
Copy link

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.

@ruuda
Copy link
Owner

ruuda commented May 21, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants