M4B file cannot be opened for editng

I've scoured the forums here for hours and can't find a way to fix this. I have around 400 audiobooks in M4B format, converted using AudioBookBuilder on a mac. I've never had any issues with these files, except with MP3tag.

With every.single.file I have tried, if I try to edit tags, I get the [filename] cannot be opened for writing error.

If I pull these same files over to EZ Meta Tag Editor, change something about the meta and save it there, I am now able to edit the file in MP3Tag.

This is not a file ownership issue. I've used some of the tools (mp3val, foobar) that I've seen linked, but they either can't read M4B files or report no issues.

Any help is much appreciated.

Hello and welcome!

That's interesting. Can you share (privately) one of the files before editing them in another program?

What is the easiest way for me to privately send you a link?

If you have Google Drive, DropBox, OneDrive, ... you can upload it there and send me the direct link via PM or email. If it's below < 10MB you can also send it directly.


Thanks for the example file! I was able to reproduce the issue and after a long debugging session identified the root cause to be the mdat atom actually being 8 bytes smaller than reported in the atom header.

This might sound gibberish but simply means, that the file was wrongly encoded. In such cases, I'm not trying to make any assumptions (which could actually lead to data loss), but simply stop and report an error.

I wanted to contact the developer to describe the issue and noticed in the changelog, that the issue is apparently already fixed with Audiobook Builder 2.1.2:

Zaps a potenial ‘mdat’ atom length issue.

Can you check if you're using this version, and if not, update and verify that the files are working?

If you still encounter issues with files built by Audiobook Builder 2.1.2, please send me another example file to analyze the issue.

Hello Florian. I was finally able to test this and can confirm that things are working properly. Thanks for your help

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.