libmtag: simple music tagging library

I created a new project called libmtag that right now is basically an abstraction layer around taglib with a much simpler and more powerful API for C, and Ruby bindings.


As taglib, it supports: ID3v1, ID3v2 for MP3 files, Ogg Vorbis and FLAC files.

There’s a GettingStarted document if you want to try it Right Now.

The simplest case in C goes like this:

MTag_File *file;
MTag_Tag *tag;
file = mtag_file_new (fn);
tag = mtag_file_tag (file);
printf ("%s - %s\n",
mtag_tag_get (tag, "artist"),
mtag_tag_get (tag, "title"));
mtag_file_free (file);

And in Ruby:

file =
print("%s - %s\n" % [file.tag.artist, file.tag.title])

I hope you like it.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s