Batch conversion with \'test\' by Gedankenschild at 4:59 PM EDT on June 2, 2008
Hi!

I just tried vgmstream and it works a treat.
My compliments to hcs for this whole project (including in_cube). Impressive how many formats are supported by now...

I also have a short question concerning the 'test'-converter:

Is there a way to make it batch-convert files?
I tried >>test -o *.wav *.dsp<< without success. That would be very convenient with games like Paper Mario 2 having 146 dsps in its sound folder... :)

Of course I know about Winamp's 'DiskWrite'. Still I think batch-conversions with 'test' would be a great thing.

Thanks and regards!
by Mouser X at 5:05 PM EDT on June 2, 2008
Screw pastebin. This is an easy one-liner. Here's what I have (thanks goes to HCS. He put it together. There are perhaps a few minor modifications by me though).

FOR %%a IN (*.fsb) DO test -l 1 -f 0 -x -o "%%a.wav" "%%a" >> adx.bat

Copy that into a text file, and save it with a .BAT extension. Or you can run it as a command, but to do so remove the extra "%" marks.

This command line will take FSB files (which are not currently supported by VGMstream as I found out) and run them through the "test" application. The commands given are as follows, in order based on the above command line: loop = 1; fade = 0; output adxencd commands; output file name = "%a.wav"; input file name = "%a"; Send all textual output to "adx.bat"

The FOR and DO stuff is to determine the files to process, and to put the file names into the correct variables (%a.wav and %a).

To use this on files other than FSB, change the extension it looks for (DSP, MIC, BRSTM, STRM, etc.). Again, this is specifically used to convert looping files (and unlooped ones. Those have to be removed manually) into ADX files. I use ADXs in Rockbox, because I like looping files as opposed to MP3s and such. Because it's likely that you won't need it to do that, you might wish to alter the command to look more like this:

FOR %%a IN (*.fsb) DO test -l 2 -f 10 -o "%%a.wav" "%%a"

(Loop twice, fade 10 seconds, output name, input name)

Hopefully that does the job you were looking for. Mouser X over and out.

edited 5:18 PM EDT June 2, 2008
Thanks! by Gedankenschild at 6:02 PM EDT on June 2, 2008
Wow! Thank you for the fast reply, Mouser X!

Works perfectly!
That was quite simple, creating a batch file. I wouldn't have thought of that...

Kind regards!
by Mouser X at 1:23 AM EST on December 30, 2008
I've recently been told (in #usf for those who wondered) how to make this output with somewhat cleaner file names. Use "%%~na.wav" instead of "%%a.wav". I haven't tested this yet (I'm not on my PC right now), but I plan to see how well this works (I expect it to work) when I have the chance.

If anyone has already been using this and they want to clean up their already existing filenames, you can use this (replace "<extension here>" with the appropriate names):

ren *.<extension here>.adx *.
ren *.<extension here> *.adx

I just figured I'd put this here for those who might want it, and also for myself, so that I can access it later to use it on the sets I've already converted. Mouser X over and out.


Go to Page 0

Search this thread

Show all threads

Reply to this thread:

User Name Tags:

bold: [b]bold[/b]
italics: [i]italics[/i]
emphasis: [em]emphasis[/em]
underline: [u]underline[/u]
small: [small]small[/small]
Link: [url=http://www.google.com]Link[/url]

[img=https://www.hcs64.com/images/mm1.png]
Password
Subject
Message

HCS Forum Index
Halley's Comet Software
forum source