Recordmp3js
Recordmp3js copied to clipboard
blank and silent time frame is added after convert to mp3
For example I record 10 seconds, after converted to mp3, it will get extra 10 blank second.
Same issue here.. Any luck anyone..???
+1 on this issue. If anyone has a solution, please share it.
Had the same issue and because of the fact that the author doesn't reply here is my solution:
Open js/libmp3lame.min.js Find the following line (nearly at the bottom)
a=Module.ccall("lame_encode_buffer_ieee_float","number","number number number number number number".split(" "), [a,c,g,b.length,f,1024E3]);
And replace it with:
a=Module.ccall("lame_encode_buffer_ieee_float","number","number number number number number number".split(" "), [a,c,g,b.length/2,f,1024E3]);
(As you can see, the only difference is that b.length becomes b.length/2)
I've tested it and the plugin doesn't add extra time any more and it converts to mp3 without problem.
Regards
Thanks @miwels - that works for me as well.
Worked, thanks @miwels
Thanks @miwels, worked for me too!
Thanks @miwels!
This fix isn't working for me in Firefox 37.0.1 at least.
Also doesn't work for me in chrome 42.0.2311.135
try my forked version. I've not tested on firefox, but it definitely works on chrome. https://github.com/geirman/recorder-wav-mp3
Ah there we go, thanks for working on this. Super handy.