Welcome Guest ( Log In | Register )

> foobar2000 General Forum Rules

This is NOT a tech support forum.
Tech support questions go to foobar2000 Tech Support forum instead.

See also: Hydrogenaudio Terms of Service.

how does foobar handle metadata/tags ?, when adding replaygain values
post Mar 8 2013, 05:18
Post #1

Group: Members
Posts: 2
Joined: 8-March 13
Member No.: 107102


I've got a pretty massive music library and I decided I'd be interested in using Replay gain. Thing is I never ripped my music with the track volume entry which means I'd have to scan my whole library, which is fine with me. Thing is, I sometimes got the feeling that when modifying a track name, or album title, or artist name, it would rewrite the file instead of modifying the info which caused fragmentation. So, my question is how does foobar handle this stuff, does it only add it or does it erase and recopy/rewrite the file on the hard drive ? I wouldn't want my whole library fragmented because I added replaygain values..

My library is in flac if that makes a difference

Go to the top of the page
+Quote Post
Start new topic
post Mar 9 2013, 19:49
Post #2

Group: Developer (Donating)
Posts: 2473
Joined: 19-October 01
From: Finland
Member No.: 322

If your FLAC files have enough padding for the metadata then they are modified in place. This is fast and doesn't cause any fragmentation or unnecessary disk writes. If they do not have the required space for the tags then foobar will have to re-create the files. This is done by writing the required headers and metadata+padding blocks into new temporary files followed by copying the encoded audio data from the original files into the temp files. Upon success the original files are destroyed and the temp files are renamed to replace them. The rewrite method currently does not utilize any methods to prevent fragmentation.
If your files are encoded with the official FLAC encoder with default settings they will have at least 8192 bytes of padding. This is enough to store regular text metadata but not for album art.
Go to the top of the page
+Quote Post

Posts in this topic

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 28th November 2015 - 03:59