Page MenuHomePhabricator

Audio processing: compress audio before uploading?
Open, LowestPublicFeature

Description

Should LinguaLibre upload its pronunciations in FLAC format instead of uncompressed Wave files? FLAC compression is lossless, so it would save space (and bandwidth for users) without quality reduction. The only downside is that LinguaLibre’s server would use a bit more CPU for compressing the file. But that’s probably a very minor issue since it’s only needed once per file. To convert to FLAC in maximal compression, you can use something ffmpeg -i input.wav -compression_level 12 output.flac. Wikimedia Commons automatically transcodes FLAC to Vorbis and to MP3; see example FLAC file. Just a thought, not sure if it’s worth it.

Event Timeline

Pamputt changed the subtype of this task from "Task" to "Feature Request".Oct 6 2020, 8:16 PM

I support flac, but ffmpeg produces non-standard flac files. For that reason, we should use the official flac encoder.

Yug triaged this task as Lowest priority.Jul 6 2022, 10:46 AM
Yug renamed this task from Compress audio before uploading? to Upload: compress audio before uploading?.Jul 7 2022, 11:06 AM
Yug renamed this task from Upload: compress audio before uploading? to Audio processing: compress audio before uploading?.Jul 7 2022, 11:28 AM
Poslovitch subscribed.

Not sure about this, but might be worth exploring for the rework.

Hi, I would like to contribute to this.

I think it is a great idea to compress files, before uploading them, and about server load, in the future, a worker can be configured for this purpose so that it doesn't load the API, so it should be an overall more efficient solution if I am not wrong.

Can anyone guide me to where I can find the code for uploading audio files