Some work that might be of interest

Thomas Post post at equinux.com
Fri Dec 18 16:56:55 CET 2009


Hi There

In a project we are working on, we use the taglib for reading/writing mp4 and id3 tags/covers. For a more convinient use in our project, we added a few convenience functions for ID3v2 and mp4 tags to the lib. Maybe someone else is interested in that work too. So we d'like to share it here.
Basically we added a few methods to get additional tags to the TagLib::Tag class. These methods have a default implementation that returns null or 0 if no other implementation is made. In the TagLib:MP4::Tag and the TagLib::ID3v2::Tag these methods are implemented.
Two things are maybe even interesting to add to the next version of the lib. When reading the cover, the lib tries to detect the image format by reading some bytes from the covr tag in the mp4 header. But on some headers these bytes are just 0. So no image type is found and the lib returns null. We added some code that if these bytes are 0, it tries to detect the image from the image header (jpeg,jfif or png). 
The second thing is that we added in the conversion from ID3 v2.2 to v2.4 the "missing"  TCP/TCMP tag. It looks like this tag is not part of the ID3 standard, but iTunes uses it to store it's "is part of a compilation flag". So maybe it could be useful sometimes.
I attached all the modifications as patch do this mail, but be aware, the code is maybe not as good as it should be. I'm an Objective-C developer. So I'm not so into all that C++ stuff.

  

Thomas Post
-----------------------------------------------------------------------------------------------------------

equinux Aktiengesellschaft
Informationstechnologien
Kirschstraße 35
80999 München - Germany
Tel. +49-89-520465-339
Fax +49-89-520465-299
mailto:post at equinux.de
http://www.equinux.com/de
-----------------------------------------------------------------------------------------------------------
Vorstand: Till Schadde  -  Aufsichtsrat: Stefan Neuenhahn
USt-IdNr.: DE206360115  -  Sitz München  -  HRB München 129700
-----------------------------------------------------------------------------------------------------------

equinux USA, Inc.
100 Produce Ave. Suite L, South San Francisco, CA 94080 
Toll free: 1-888-equinux (1-888-3784689)
http://www.equinux.com
-----------------------------------------------------------------------------------------------------------

Stay updated what's going on at equinux
equinux Blog | equinux @ Twitter | equinux @ Facebook
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/taglib-devel/attachments/20091218/5edf06eb/attachment-0002.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-161-id3lyrics.patch
Type: application/octet-stream
Size: 23286 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/taglib-devel/attachments/20091218/5edf06eb/attachment-0001.dll 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/taglib-devel/attachments/20091218/5edf06eb/attachment-0003.htm 


More information about the taglib-devel mailing list