higuma / mp3-lame-encoder-js

MP3 encoder for browsers using LAME
MIT License
130 stars 20 forks source link

Converting while the computer is loaded causes distortions #3

Open aviankona opened 8 years ago

aviankona commented 8 years ago

Hi, Thanks for the encoder, it looks great!

When I'm trying to convert to MP3 and my computer is loaded - CPU and memory is above 90% - the output result is distorted. The sound repeat itself for a second or so and then proceeds normally. (Please find an example in the following link: https://db.tt/4RQDxfqr - navigate to second 19)

I'm working with the worker and I'm staring to convert when the recording ends. It reproduces on Chrome and Firefox

My guess is that it's related to the high CPU. I'm hoping to be able to detect the corrupted frames and encode them again. As for now I couldn't see how to do it, any suggestions?

Thanks in advance.

Ondross commented 7 years ago

Hi, echoing all above points. The encoder is super easy to use, but I have the exact same problem.

Ondross commented 7 years ago

Quick follow up: my distortions (skipping, repeated sounds), were actually caused by issues with the webAudio API, not this codec. Sorry for the false alarm!

numerized commented 4 years ago

yes but this example glithces on my computer too: https://gersonrosales.github.io/Record-Audios-and-Videos-with-getUserMedia/example_3.html