tag:help.beatunes.com,2009-07-24:/discussions/problems/59418-failed-to-read-audiofilebeaTunes: Discussion 2020-07-28T16:02:24Ztag:help.beatunes.com,2009-07-24:Comment/484862172020-07-25T11:48:44Z2020-07-25T11:48:45ZFailed to read audiofile<div><p>Hi,</p>
<p>I'm trying Beatunes.</p>
<p>The Library is folder based.</p>
<p>There's around 6000 tracks, only 4000 are showing up in beatunes.</p>
<p>This is what I found a lot in the logs :<br>
2020-07-25 13:34:00,239 [205335] [ERROR][HibernateFileSystemLibraryLoader] com.tagtraum.audiokern.AudioMetaData: Failed to create AudioMetaData object: com.tagtraum.audiokern.AudioMetaDataException: Failed to read audiofile /xxx.m4a</p>
<p>I looked at the files permissions and stuff, I tried but couldn't find how to fix it.</p>
<p>When I switch the library to itunes based, the 6000 files are showing up.<br>
The same files with the error message can be played and analyzed.</p>
<p>Any idea ?</p>
<p>Thanks</p></div>Jeanjantag:help.beatunes.com,2009-07-24:Comment/484862172020-07-25T11:59:12Z2020-07-25T11:59:13ZFailed to read audiofile<div><p>I'm using beatunes 5.2.10, itunes 12.9.5.5 on MacOS X 10.14.6</p></div>Jeanjantag:help.beatunes.com,2009-07-24:Comment/484862172020-07-25T14:17:11Z2020-07-25T14:17:11ZFailed to read audiofile<div><p>Can you send the whole log file as an attachment, please?</p></div>hendriktag:help.beatunes.com,2009-07-24:Comment/484862172020-07-27T05:42:10Z2020-07-27T05:42:10ZFailed to read audiofile<div><p>Hi,<br>
here it is.</p></div>Jeanjantag:help.beatunes.com,2009-07-24:Comment/484862172020-07-27T07:03:50Z2020-07-27T07:03:50ZFailed to read audiofile<div><p>Hey there,</p>
<p>thanks for the logs.</p>
<p>When using beaTunes for a folder-based library, all metadata (like id3 tags) is read using the library <a href="http://www.jthink.net/jaudiotagger/">jaudiotagger</a>. Apparently it believes your <code>.m4a</code> files are malformed and therefore cannot read them.</p>
<p>When using beaTunes together with iTunes or Music.app, metadata is (in many cases) not read by beaTunes itself, but by iTunes/Music.app, which does not seem to have a problem with your files.</p>
<p>Since jaudiotagger usually does not have an issue with <code>.m4a</code> files, there is at least something unusual about yours. To get to the bottom of this, I'd have to actually have one of these files for testing. Can you send one please?</p>
<p>That all said, files don't get into this state on there own. Is there anything you did with them that could explain this? I.e. used some tagging software or so?</p>
<p>Thank you,</p>
<p>-hendrik</p></div>hendriktag:help.beatunes.com,2009-07-24:Comment/484862172020-07-27T07:37:00Z2020-07-27T07:37:00ZFailed to read audiofile<div><p>Here's a file</p>
<p>I use DJ software like traktor, rekordbox, serato, virtualdj...<br>
also Itunes, mp3tag...<br>
And now beatunes.</p>
<p>I'm organizing my collection so yes i tried and still trying software.</p></div>Jeanjantag:help.beatunes.com,2009-07-24:Comment/484862172020-07-27T17:09:06Z2020-07-27T17:09:06ZFailed to read audiofile<div><p>Hey,</p>
<p>thanks for the file. It indeed appears to be malformed. I have checked with <a href="https://sourceforge.net/projects/atomicparsley/">AtomicParsely</a>. It reports</p>
<pre>
<code>APar_readX_noseek read failed, expect 8, got 1: end of file</code>
</pre>
<p>which basically means that the file ended prematurely. This kind of error may be ignored by some software packages and leads to errors with others.</p>
<p>-hendrik</p></div>hendriktag:help.beatunes.com,2009-07-24:Comment/484862172020-07-27T19:15:55Z2020-07-27T19:15:55ZFailed to read audiofile<div><p>Thanks for the quick answer.</p>
<p>Do you know any way to fix this?</p>
<p>Thanks again.</p></div>Jeanjantag:help.beatunes.com,2009-07-24:Comment/484862172020-07-28T07:20:03Z2020-07-28T07:20:03ZFailed to read audiofile<div><p>Hi,</p>
<p>I have implemented a workaround for this for Jaudiotagger (<a href="https://bitbucket.org/ijabz/jaudiotagger/issues/321/be-more-tolerant-towards-malformed-mp4">here</a>). But it will take a while (at least a week or two, but that is no promise!) until it finds its way into beaTunes.</p>
<p>If you're Python-savy, you might want to run <code>mp4file --optimize</code> (see <a href="https://pypi.org/project/mp4file/">mp4file</a>) on your <code>.m4a</code> files. The file you sent to me was fixed by this (the extra byte at the end was removed).</p>
<p>Hope this helps,</p>
<p>-hendrik</p></div>hendriktag:help.beatunes.com,2009-07-24:Comment/484862172020-07-28T14:55:04Z2020-07-28T14:55:04ZFailed to read audiofile<div><p>I converted them in flac and they were instantly added to the Beatunes library.</p>
<p>Thanks</p></div>Jeanjantag:help.beatunes.com,2009-07-24:Comment/484862172020-07-28T16:02:12Z2020-07-28T16:02:12ZFailed to read audiofile<div><p>That's another way of solving the issue! :-)</p></div>hendrik