Set / Get any tag

Festus Hagen festushagenlists at
Sun Jan 10 12:46:45 UTC 2016

Yahoo mail is going to boink this, however here is a simple example ...


* It is what it is, you can do with it as you please. [with respect]
* Just don't blame me if it teaches your computer to smoke!
* -Enjoy
* fh : )_~

* Simple example of adding TextIdentificationFrame 'TLAN'.
* g++ -o toy main.cpp -I<"Path to taglib Headers"> -L<"Path to taglib library"> -ltag -lz
* For shared, Ensure the taglib dll can be found
* For static, Add -DTAGLIB_STATIC
* Example ... Using taglib build tree, not an installed TagLib!
* g++ -DTAGLIB_STATIC -o toy main.cpp -I..\..\Build\taglib\Headers -L..\..\Build\taglib -ltag -lz

#include <mpegfile.h>
#include <textidentificationframe.h>
#include <id3v2tag.h>

int main(int argc, char *argv[])
TagLib::MPEG::File audioFile(argv[1]);
TagLib::ID3v2::Tag *tag = audioFile.ID3v2Tag(true);

TagLib::ID3v2::TextIdentificationFrame *frame = new TagLib::ID3v2::TextIdentificationFrame("TLAN");

TagLib::StringList l;
l.append("eng");           // Language 1, English
l.append("tlh");           // Language 2, Klingon

return 0;

From: Priya Krishnan <priya.salman at>
To: taglib-devel at 
Sent: Saturday, January 9, 2016 1:20 AM
Subject: Set / Get any tag

How to add TLAN tag and save. I attempted to adding to propertiesmap and calling set properties and saved.

Save was successful , but it is not reflected in real file.

Can you explain how to add any tag (other than basic tags)?


taglib-devel mailing list
taglib-devel at

More information about the taglib-devel mailing list