#363 ERROR: --replay-gain cannot be used when encoding to stdout


The error message is misleading as the output filename was specified in the command line.

$ mac 01.ape - -d |flac --replay-gain -o 01.flac -
--- Monkey's Audio Console Front End (v 3.99) (c) Matthew T. Ashland ---

flac 1.2.1, Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007 Josh Coalson
flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. Type `flac' for details.

ERROR: --replay-gain cannot be used when encoding to stdout
Type "flac" for a usage summary or "flac --help" for all options


  • Mike Brown

    Mike Brown - 2010-09-09

    I was just going to report this one, myself. A better description:

    --replay-gain should be allowed with -o output and '-' (stdin) input

    Currently, flac seems to think that when the input file is '-' (stdin), that you want the output to be stdout, which interferes with the use of --replay-gain. But the -o explicitly makes the output not be stdout, so there shouldn't be a problem here.

  • Ulrich Klauer

    Ulrich Klauer - 2013-04-05

    This was fixed in 2009 (see commit a832ef32fb2a888674659097f40c1f8efb72c1a4), so the fix will be in 1.3.0 when it is released.


Log in to post a comment.