lordmulder / DynamicAudioNormalizer

Dynamic Audio Normalizer
Other
251 stars 36 forks source link

WARNING: Unknown command-line argument "--rms-mode" #3

Closed peter1000 closed 9 years ago

peter1000 commented 9 years ago

hi,

Just compiled it from git (Linux) and got:

WARNING: Unknown command-line argument "--rms-mode"

You seem to be using in your tests: --target-rms

Also your dos refer to it: RMS processing can be enabled using the --target-rms switch.

BTW: nice app :+1:

lordmulder commented 9 years ago

Hello. Yes, the proper switch to enable RMS-based mode is "--target-rms" or just "-r": https://github.com/lordmulder/DynamicAudioNormalizer/blob/master/DynamicAudioNormalizerCLI/src/Parameters.cpp#L185 Not quite sure where you got "--rms-mode" from. I just checked the manual again and it only mentions "--target-rms". Also I'm not quite sure why/how this warning came up during compilation. The program isn't even run during compilation. Can you clarify when exactly you got this warning?

Best Regards, MuldeR

peter1000 commented 9 years ago

Not quite sure where you got "--rms-mode" from. I just checked the manual again and it only mentions "--target-rms".

After compiling when I run: DynamicAudioNormalizerCLI --help you see

-r --rms-mode <value> Target RMS value [default: 0.00]

$ DynamicAudioNormalizerCLI --help
---------------------------------------------------------------------------
Dynamic Audio Normalizer, Version 2.08-0, Shared
Copyright (c) 2015 LoRd_MuldeR <mulder2@gmx.de>. Some rights reserved.
Built on Jul 15 2015 at 16:28:09 with GCC 5.1.0 for Linux-x64.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License <http://www.gnu.org/>.
Note that this program is distributed with ABSOLUTELY NO WARRANTY.
---------------------------------------------------------------------------

Basic Usage:
  DynamicAudioNormalizerCLI [options] -i <input.wav> -o <output.wav>

Input/Output:
  -i --input <file>        Input audio file [required]
  -o --output <file>       Output audio file [required]

Algorithm Tweaks:
  -f --frame-len <value>   Frame length, in milliseconds [default: 500]
  -g --gauss-size <value>  Gauss filter size, in frames [default: 31]
  -p --peak <value>        Target peak magnitude, 0.1-1 [default: 0.95]
  -m --max-gain <value>    Maximum gain factor [default: 10.00]
  -r --rms-mode <value>    Target RMS value [default: 0.00]
  -n --no-coupling         Disable channel coupling [default: on]
  -c --correct-dc          Enable the DC bias correction [default: off]
  -b --alt-boundary        Use alternative boundary mode [default: off]
  -s --compress <value>    Compress the input data [default: 0.00]

Diagnostics:
  -v --verbose             Output additional diagnostic info
  -l --log-file <file>     Create a log file
  -h --help                Print *this* help screen

Raw Data Options:
  --input-bits <value>     Bits per sample, e.g. '16' or '32'
  --input-chan <value>     Number of channels, e.g. '2' for Stereo
  --input-rate <value>     Sample rate in Hertz, e.g. '44100'
lordmulder commented 9 years ago

Oh, I see. So it's simply the built-in help screen for "--target-rms" mode that is wrong. Sorry, will be fixed soon...

Best Regards, MuldeR

On 16.07.2015 10:56, peter1000 wrote:

Not quite sure where you got "--rms-mode" from. I just checked the
manual again and it only mentions "--target-rms".

After compiling when I run: |DynamicAudioNormalizerCLI --help| you see \ -r --rms-mode Target RMS value [default: 0.00]**

$ DynamicAudioNormalizerCLI --help

Dynamic Audio Normalizer, Version 2.08-0, Shared Copyright (c) 2015 LoRd_MuldeR mulder2@gmx.de. Some rights reserved. Built on Jul 15 2015 at 16:28:09 with GCC 5.1.0 for Linux-x64. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License http://www.gnu.org/. Note that this

program is distributed with ABSOLUTELY NO WARRANTY.

Basic Usage: DynamicAudioNormalizerCLI [options] -i -o

Input/Output: -i --input Input audio file [required] -o --output Output audio file [required] Algorithm Tweaks: -f --frame-len Frame length, in milliseconds [default: 500] -g --gauss-size Gauss filter size, in frames [default: 31] -p --peak Target peak magnitude, 0.1-1 [default: 0.95] -m --max-gain Maximum gain factor [default: 10.00] -r --rms-mode Target RMS value [default: 0.00] -n --no-coupling Disable channel coupling [default: on] -c --correct-dc Enable the DC bias correction [default: off] -b --alt-boundary Use alternative boundary mode [default: off] -s --compress Compress the input data [default: 0.00] Diagnostics: -v --verbose Output additional diagnostic info -l --log-file Create a log file -h --help Print _this_ help screen Raw Data Options: --input-bits Bits per sample, e.g. '16' or '32' --input-chan Number of channels, e.g. '2' for Stereo --input-rate Sample rate in Hertz, e.g. '44100' | — Reply to this email directly or view it on GitHub https://github.com/lordmulder/DynamicAudioNormalizer/pull/3#issuecomment-121885534.
peter1000 commented 9 years ago

So the built-in help screen for "--target-rms" mode is simply wrong.

Seems so.

just a question: is there an option I missed to run it in silent/quite mode without any output?

lordmulder commented 9 years ago

Nope, there's no such option (yet). Just use 2> /dev/null' to discard the outputs ;-)

On 16.07.2015 16:57, peter1000 wrote:

So the built-in help screen for "--target-rms" mode is simply wrong.

Seems so.

just a question: is there an option I missed to run it in silent/quite mode without any output?

— Reply to this email directly or view it on GitHub https://github.com/lordmulder/DynamicAudioNormalizer/pull/3#issuecomment-121981037.

lordmulder commented 9 years ago

Merged.