TagLib 1.6.1: MP4::Tag#setTrack not working correctly with iTunes on Mac OS X?

Lukáš Lalinský lalinsky at gmail.com
Wed Apr 7 19:37:53 CEST 2010

On Wed, Apr 7, 2010 at 7:33 PM, Harald Schubert <schubert.harald at gmx.net> wrote:
> Hello everyone,
> I am trying to set the track number for an MP4 file under MacOS X 10.6. I've
> built taglib as a Mac framework and everything is working fine (reading &
> writing MP3 tags, reading MP4 tags, writing MP4 string tags etc.) except for
> writing the track number. I've tried many things, including the following:
> tag->setTrack(12);
> or
> tag->itemListMap()[TagLib::String("trkn", TagLib::String::UTF8)] =
> TagLib::MP4::Item(TagLib::uint(12), TagLib::uint(13));
> The tags are being written and I can parse them with command line tools like
> AtomicParsley, but iTunes doesn't recognize them correctly.
> Can anyone tell what I am doing wrong? Is there a workaround?

This is a known problem
(http://marc.info/?l=taglib-devel&m=126416552027347&w=2). It's already
fixed in SVN and will be released in TagLib 1.6.2, which should be
released *soon* (maybe even today, it was planned for Monday).


More information about the taglib-devel mailing list