Help - Search - Members - Calendar
Full Version: Replaygain logging
Hydrogenaudio Forums > Hydrogenaudio Forum > General Audio
Lentium
I'm looking for a way to catalog replaygain results/statistics into a simple text file, mostly for vorbis and mpc. I've tried "vorbisgain.exe -a -r -d *.ogg > vorbisgain.log" but it always comes up empty, because of the way it uses the command window I can't log it using this method. Does anyone know of a tool that would allow me to do this? Even a logging program that I could pipe the output to might work (although using "vorbisgain [options] | more > log.txt" didn't work either). Thanks.
Infophreak
Though I am not entirely sure, I suppose this is a limitation of the Windows shell (CMD.EXE if you are on an NT-based system). What is certainly true is that it is extremely limited in what it can do, so it wouldn't surprise me at all if this were in fact the case. If it is so, there is little you can do except:

1) Get 4NT (which might work), or
2) Get a Win32 version of zsh from http://unxutils.sourceforge.net/ (which will probably work)

and change the %COMSPEC% environment variable to point to your new shell.
Jasper
Though the Windows shell is sometimes a bit limited (NT is a HUGE improvement over 9x btw), this is something it should definitely be able to do. Does it still display the things you want to log on screen? If so, you may want to try redirecting STDERR to the output file instead of STDOUT (or both, but you'll have to experiment a bit, or Google for it, as I don't know how it's done), note the 2 in front of the angle bracket (>):
CODE
vorbisgain.exe -a -r -d *.ogg 2> vorbisgain.log
Infophreak
You are absolutely right: http://www.microsoft.com/windowsxp/home/us...redirection.asp

Interesting. Even tcsh (Which I am stuck with at university. Stupid admins don't allow us to do chsh. What I wouldn't give for bash or zsh!) doesn't handle redirection as flexibly as CMD.exe. A Unix shell that's worse than CMD.exe - that's just sad :\
Lentium
Yes I'm running an NT-based windows OS (XP).
Redirecting stderr gave me the following results:

CODE
  Gain   |  Peak  | Scale | New Peak | Track
----------+--------+-------+----------+------
  0% - 01 Get along.ogg
  0% - 01 Get along.ogg
  1% - 01 Get along.ogg
  2% - 01 Get along.ogg
  3% - 01 Get along.ogg
  4% - 01 Get along.ogg
  5% - 01 Get along.ogg
  6% - 01 Get along.ogg
  7% - 01 Get along.ogg
  8% - 01 Get along.ogg
  9% - 01 Get along.ogg
 10% - 01 Get along.ogg
 11% - 01 Get along.ogg
 12% - 01 Get along.ogg
 [snip]
 96% - 01 Get along.ogg
 97% - 01 Get along.ogg
 98% - 01 Get along.ogg
 99% - 01 Get along.ogg
100% - 01 Get along.ogg
-7.48 dB |  36098 |  0.42 |    15257 | 01 Get along.ogg


While most of what it outputs to the console is what I want to have, it's one of those command-line programs that constantly updates one of the lines with it's progress. So while this is actually what it's writing to the console, the end result looks like this:

CODE
  Gain   |  Peak  | Scale | New Peak | Track
----------+--------+-------+----------+------
-7.48 dB |  36098 |  0.42 |    15257 | 01 Get along.ogg
-7.56 dB |  36925 |  0.42 |    15464 | 02 KUJIKENAIKARA!.ogg
-4.99 dB |  35375 |  0.56 |    19916 | 03 Get along (Off Vocal Version).ogg
-5.50 dB |  36416 |  0.53 |    19333 | 04 KUJIKENAIKARA! (Off Vocal Version).ogg

Recommended Album Gain: -6.91 dB


While I imagine I could somehow filter out every line with a percentage sign in it, I'm not entirely sure how I would do that. The output that I got was the same for unitutils and regular cmd.exe. I can try downloading that 4NT demo but I think I'll probably get the same results due to the way vorbisgain works.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.