#71 display gain/peak information on stdout

metaflac (8)

Hi, I have written a patch which extends the shorthand method --add-replay-gain. The user can make use of the extension by specifying a global option --display-only.

Invoked like the this:
$ metaflac --display-only --add-replay-gain foobar.flac
metaflac, instead of storing gain/peak in a the VORBIS_COMMENT, displays the gain/peak information on stdout (similar to vorbisgain -d and mp3gain -s s).

The benefit of this is that one can read the output of metaflac and store key (track) value (gain info) pairs in a file/db and have a player use the file/db to read the replaygain information, without modifying the flac files in the first place (or at all).

The patch results from modifing the flac source package from debian stable (etch).
$ cat flac_1.1.2-6.dsc
Format: 1.0
Source: flac
Version: 1.1.2-6
Binary: libflac++5, libflac-dev, liboggflac++-dev, liboggflac-dev, xmms-flac, libflac-doc, flac, libflac++-dev, libflac7, liboggflac++2, liboggflac3
Maintainer: Joshua Kwan <joshk@triplehelix.org>
Architecture: any
Standards-Version: 3.7.2
Build-Depends: debhelper (>= 4), xmms-dev, nasm (>= 0.98.34-1) [i386], doxygen, libid3-3.8.3-dev (>= 3.8.3-4.2), libogg-dev, g++ (>= 2:3.2), dpatch
2bfc127cdda02834d0491ab531a20960 1516235 flac_1.1.2.orig.tar.gz
9a16b77cee0a0fce25b7539660b1cf8e 277808 flac_1.1.2-6.diff.gz

Please note that I am aware that instead of adding a global option --display-only, a more intuitive shorthand method (e.g. --display-replay-gain) could have been implemented to achieve the same.

Laurent Baum


  • Anonymous - 2007-04-12

    patch, metaflac replaygain display only

  • Josh Coalson

    Josh Coalson - 2007-04-21
    • priority: 5 --> 4
    • assigned_to: nobody --> jcoalson

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks