<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div><div>Hello all,<br><br>I am trying to use Taglib to parse tags from some m4a files.  Unfortunately, Taglib is returning empty (not null) strings for the AlbumArtist and Composer fields on some of my files.  (On one of my files, it also returns a null string for the Date/Year atom.)  These incorrect atoms are read correctly by iTunes, Mp3tag, foobar2000.<br>


<br></div>This is the code I am using:<br><br>// 'keys' is an array of 4-char atoms I want, including "aART" and "\251wrt"<br>for(int i = 0; i < keysLength; i++) {<br>    if (tag->itemListMap().contains(keys[i]) && !tag->itemListMap()[keys[i]].toStringList().isEmpty()) {<br>


        print(" [%s] = %s", keys[i], tag->itemListMap()[keys[i]].toStringList().front().toCString(true));<br>        print(" [%s] = %s.", keys[i], tag->itemListMap()[keys[i]].toStringList().toString(" ; ").toCString(true));<br>


    } else {<br>        print(" [%s] null.", keys[i]);<br>    }<br>}<br><br></div><div>e.g. expected output:<br>[aART] = some artist.<br>[aART] = some artist.<br>[?wrt] = some composer.<br>[?wrt] = some composer.<br>


<br></div><div>But actual (incorrect) output:<br>[aART] = .<br>[aART] = .<br>[?wrt] = .<br>[?wrt] = .<br><br></div><div>Is my code the correct way to access a specific set of MP4 atoms?  If so, can I pass my files to someone who can analyze them?  I tried copying the tags into silence files, but Taglib was reading the silence files correctly.  When I analyzed the files in Isoviewer, I could not find any difference in the MP4 atoms, except perhaps a missing "utda/ndrm" atom in the silence files.<br>


<br></div><div>Thanks,<br>Duke<br></div></div>
</div></div>