How to remove excessive padding from FLAC files?


#1

Mp3tag doesn't rewrite a FLAC file when removing artwork. It just turns it into (or adds to, I'm not certain how it works) a padding metadata block. If the artwork was very large this leaves a very large amount of unused space within the file. An album that I just downloaded had 370kB cover images embedded in each file. I've removed them and now I have more than 380kB of padding in every file.

How can I remove this padding and control the amount of padding in a FLAC file?


Deleting embedded images in FLAC files doesn't reduce file size
[X] Files not resized when removing cover arts
MP3TAG verändert Erstellt-Datum
#2

A solution was posted here

Daz


#3

Yes, I was just looking at metaflac. I'd like to leave some padding so that the files aren't rewritten if I make changes or add a comment. Does it really require two metaflac operations to accomplish this? I imagine that's rather slow, as each time the file would have to be rewritten in full.


#4

I believe so as it will have to write the file out after removing the padding. The speed all depends on the disk subsystem (and probably fragmentation) and CPU, etc., but it is something that can be done unattended, so you could let it run overnight.

Daz


#5

I used XMedia recode to remove the art, using flac to flac copy.
There is no recoding, or lost tag data.
I then added the art I wanted with MP3Tag.