Very long time of parsing of tags (mp3, mp4, ...)
skzvlad at gmail.com
Sat Mar 5 13:00:35 CET 2011
Please forget about this problem ("Very long time of parsing of tags").
After some changes I can not reproduce it.
Sorry for the trouble.
I have another question about the attached image.
I found that the file size does not decrease after removal of the picture.
mp3 file without picture have size: 2 078 346 bytes,
size of jpg file to attach: 314 225 bytes,
size of this mp3 file after attaching the picture: 2 390 164 bytes,
and size of this mp3 file after deleting of all attached pictures: 2 390
Why file size does not decrease after removal of the picture?
For example, I use the next code to delete all pictures from mp3 file:
TagLib::MPEG::File* pFile = ...;
TagLib::ID3v2::Tag* pID3v2Tag = pFile->ID3v2Tag();
std::list<TagLib::ID3v2::Frame*>::const_iterator it =
while (it != frameList.end())
nextIt = it;
it = nextIt;
After performing of this code all pictures are detached, but size of file is
Probably, I did not correctly use the library?
2011/3/5 Scott Wheeler <wheeler at kde.org>
> On Mar 5, 2011, at 8:53 AM, Vladimir Skuzovatkin wrote:
> > 1) Small (~10Kb) PNG image was written into media file. Time of
> > opening file (after writing of image) is equal to ~4 milliseconds.
> > 2) Small PNG image was deleted from media file and big (~400Kb) PNG
> > image was written into media file. Time of opening file is equal to
> > ~30 seconds.
> It could be that there's > 10k of padding available, but not > 400k,
> so it has to rewrite the file, which, while it shouldn't take 30
> seconds on average, it could on a large file.
> taglib-devel mailing list
> taglib-devel at kde.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the taglib-devel