Recordmp3js icon indicating copy to clipboard operation
Recordmp3js copied to clipboard

Mp3 convert of a long record may results in a buffer over flow

Open khelkun opened this issue 9 years ago • 3 comments

I've tried to record a 10 minutes sample on the demo page http://audior.ec/recordmp3js/ I click on stop button then it starts to convert to Mp3 and it raises a buffer over flow error after a few minutes

Converting to Mp3
Version : 3.99.5 /  Mode: 3 /  Samples: -1 /  Channels: 1 /  Input Samplate: 44100 /  Output Samplate: 44100 /  Bitlate :32 /  VBR :0
Uncaught buffer over flow
    Lame.encode_buffer_ieee_float @ /recordmp3js/js/libmp3lame.min.js:1446
    self.onmessage @ /recordmp3js/js/mp3Worker.js:31

khelkun avatar Feb 05 '16 14:02 khelkun

I'm getting this too

geebone avatar Mar 25 '16 11:03 geebone

same here... any ideas? The problem here starts after 5 min records... I could save a 4 min one....

kimlage avatar Apr 10 '17 21:04 kimlage

I don't need Recordmp3js at present and no time to figure out the root cause of the issue but to do so I would: run the sample on my own environment with the non minified libmp3lame.js to see where the exception is raised in libmp3lame.js.

Then one should see if it's something related to libmp3lame.js itself (has not evolved for 4 years) or the usage done by Recordmp3js (has not evolved for 2 years) or the Recordmp3js sample code. It could be related to this issue: https://github.com/akrennmair/libmp3lame-js/issues/8 Then may be changing the Lame config would do the trick.

khelkun avatar Apr 13 '17 09:04 khelkun