-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error when i execute Asset.fromFile.It seams a bug #188
Comments
In addition now i tried to decode this new mp3 ... in this case .... decoding is never executed. and asset = AV.Asset.fromFile(evt.target.files[0]); |
In short, decoding a MP3 stream into buffer using functions like .decode() is never reliable. For most MP3s, you will almost always get some "glitches" during the decoding resulting in errors (usually 'bad main_data_begin pointer'). A workaround is to ignore those minor errors by editing mp3.js. |
I find the same problem using av.player .... i solved temporaly the problem hard coding to skip the exception . I tried to send pcm data to this class
it works when there is not that exception. |
var asset = AV.Asset.fromFile(evt.target.files[0]);
https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3 downloaded in local.
Error: bad main_data_begin pointer
at Layer3.decode (mp3.js:5061)
at MP3Frame.decode (mp3.js:365)
at Class.readChunk (mp3.js:46)
at Class.Decoder.decode (decoder.js:72)
at Class. (decoder.js:46)
at Class.EventEmitter.emit (events.js:64)
at Class.readChunk (mp3.js:326)
at FileSource. (demuxer.js:34)
at FileSource.EventEmitter.emit (events.js:64)
at FileReader. (file.coffee:25)
The text was updated successfully, but these errors were encountered: