Recordmp3js
Recordmp3js copied to clipboard
Mp3 convert of a long record may results in a buffer over flow
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
I'm getting this too
same here... any ideas? The problem here starts after 5 min records... I could save a 4 min one....
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.