Changing MP4::Tag ItemListMap

Lukáš Lalinský lalinsky at gmail.com
Fri Nov 27 17:57:34 CET 2009


2009/11/27 Новичков А.А. <novichko at atnet.ru>:
> Hi, I have a question. How can I write some non-standard tag into mp4
> file? The class MP4::Tag doesn't have any methods for it.

Take a look at the MP4::Tag source code. The usual way is something like:

file->tag()->itemListMap()["aART"] = TagLib::StringList("Album artist");
file->tag()->itemListMap()["\251wrt"] = TagLib::StringList("Composer");

Or, if you want to write a new free-form tag:

file->tag()->itemListMap()["----:com.apple.iTunes:foo"] =
TagLib::StringList("Some custom tag");

-- 
Lukas Lalinsky
lalinsky at gmail.com


More information about the taglib-devel mailing list