Help - Search - Members - Calendar
Full Version: id3v2 custom padding size
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
bukem
That's question mainly to Kode54. Would it be possible to add option to foo_id3v2 to set custom padding size. I've noticed that almost all my mp3 use only about 20% of padding space. It's a waste of free space especially when you have flash player. Every bit of memory is crucial.
kode54
foo_id3v2 v1.13 has been uploaded.

id3lib's padding code was supposed to pad the file size up to an even multiple of 2KB, not the tag size, but since I render the tag to memory and don't actually link the ID3_Tag class to the file, the padding function had no way of knowing the file size. So, I had to add an extra function to the class to set the file size, and I had to fix the ID3_Tag::Size() function to not pass the header size to ID3_Tag::PaddingSize, since it already takes it into account. Otherwise, the estimate comes up ~10 bytes short of the actual tag size. God, what a spoony library.

Of course, if you find this still produces too much padding, you can now disable padding altogether.
bukem
The new "write tags without padding" option works great! Thanks Kode54! You saved my life again biggrin.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.