Removal of ID3v2 header from FLAC files

Lukáš Lalinský lalinsky at
Wed May 18 17:48:29 CEST 2011

On Wed, May 18, 2011 at 5:36 PM, David Troendle <david at> wrote:
> I am still a bit new at this, but I believe the code snippet below will
> remove all ID3v2 frames from a TagLib::FLAC::File.  However the ID3v2 header
> appears to remain because calls to TagLib::FLAC::File::ID3v2 return a
> non-NULL.  Also, Mp3tag still reports there are ID3v2 tags.
> Is there a way to remove the ID3v2 header?

There isn't any officially supported way at the moment. Even if you
would manage to make FLAC::File::ID3v2() return NULL, it would not
delete the tag. The TagLib::FLAC::File class must be modified to
support this, as it has information about the original ID3v2 tag.
Something like this should be added at the right place in

removeBlock(d->ID3v2Location, d->ID3v2OriginalSize);

I'll try to implement it for the next TagLib release.


More information about the taglib-devel mailing list