Hi,

I'm developing a script to automatically encode my CD collection into Flac. My main requirement is that the script must be 100% automatic, I don't want to have to click or type anything.

The problem I'm having is I want to add replay gain. Track gain is easy enough since the FLAC encoder has a "--replay-gain" option. However I'm struggling a bit more with the Album gain. The FLAC encoder will generate the album gain if I encode all my FLAC files in one operation, but for technical reasons I'd rather not do this, I want to encode each FLAC file individually.

Does anyone know a simple way to generate replay gain for an album after the FLAC files have been encoded?

Any help much appriciated!
Gaff.

-----------------

*Update*

Aha I found it!

metaflac --add-replay-gain *.flac

Wonderful.