Error reading MP3
 
Notifications
Clear all

Error reading MP3

13 Posts
7 Users
0 Reactions
4,356 Views
Posts: 1015
(@gilrock)
Noble Member
Joined: 14 years ago
JSOrange97 wrote:I had been making good progress on sequences... Until tonight I got an error loading an MP3 for a new sequence: "Error reading data from mp3, too much data read." Anyone conquer this one yet? Or again, is it something I am doing?

I saw this on a couple songs months ago when we were first working on reading the MP3's to display the waveform. I'm going on memory but I seem to remember I thought whoever created the MP3 format was a moron. You would think it would be easy to know how big the file is from the header but its not. You gotta do math on number of channels and bitrate and even then there can be extra buffers that pad out the length of the file. An MP3 player just reads it on the fly until it hits the end but if you want to allocate space to hold the entire file you almost need to read it twice. Once to figure out how big it really is and then allocate space and then read it again to load it. I remember allowing for some number of extra buffers when we allocate space because I was trying to not do a double read. There seems to be a small percentage of MP3s that are bigger than the amount of extra we allow for. We added the error message in place of it crashing. Making it a constant bit rate should keep from falling in this category which is what you want anyways because Windows Media Player does not do a precise seek operation in an MP3.


Reply
Posts: 40
Topic starter
(@jsorange97)
Trusted Member
Joined: 11 years ago
Technician wrote:On another discussion, the LAME encoder was discussed at length. The issue is it is illegal to bundle with a product such as Audacity without paying a licence. This is why it is not included, as Audacity is not going to pay 10 cents for each copy distributed for free. For private home use (non commercial) you can legally download and use the encoder. You won't get into trouble downloading and installing LAME MP3 Encoder for private home personal use. Don't distribute your copy, and don't use it for a commercial application such as at a public radio station. A private home Christmas display in your yard is fine. Don't encode MP3's for others with LAME. This is why LAME has been free do download for years.

Hope that clears it up.

Thanks - it helps. The MP3 website also has some clarification on the licensing. I'm also just leery of pulling files of off offshore servers...


Reply
bdeditch
Posts: 82
(@bdeditch)
Estimable Member
Joined: 19 years ago
jnealand wrote:Use the LAME addon. Very simple.

Exactly what I had to do, open it in Audacity and then export to your folder you have your music for your NC sequence.


Reply
Page 3 / 3
Share: