Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Vag With MFAudio

Get help on any and all audio formats, or chip in and help others!
Post Reply
Ander0072
ultra-n00b
Posts: 6
Joined: Mon Aug 29, 2011 7:08 am

Vag With MFAudio

Post by Ander0072 »

I know this question may sound a bit "noobish" but I have over 7000 vag files which I wish to convert to wave, now using MFaudio works like a charm, the problem is it only allows 1 file input at a time;
is there a way to do it in bulk (like, select all the files & just show a destination folder, & just wait? & not have to re click an input every minute.)
hcs
mega-veteran
mega-veteran
Posts: 263
Joined: Sun Oct 18, 2009 9:41 pm
Location: Portland, OR
Has thanked: 3 times
Been thanked: 79 times
Contact:

Re: Vag With MFAudio

Post by hcs »

mfaudio can convert files on the command line, so you can write a .bat such as:

Code: Select all

for %%1 in (*.vag) do start /wait MFAudio "%%1" /OTWAVU "%%1.wav"
which is what I used for Max Payne. You could also just run that directly from the command line with %1 instead of %%1.
Ander0072
ultra-n00b
Posts: 6
Joined: Mon Aug 29, 2011 7:08 am

Re: Vag With MFAudio

Post by Ander0072 »

Thanks ^_^
worked like a charm & as fast as a bullet~
User avatar
SlavaVlasov
n00b
Posts: 11
Joined: Wed Jul 01, 2015 9:00 pm
Has thanked: 3 times
Been thanked: 7 times

Re: Vag With MFAudio

Post by SlavaVlasov »

And how i can set parameters from command line, like mono/stereo, khz etc? :roll:
User avatar
SlavaVlasov
n00b
Posts: 11
Joined: Wed Jul 01, 2015 9:00 pm
Has thanked: 3 times
Been thanked: 7 times

Re: Vag With MFAudio

Post by SlavaVlasov »

I found commands for MFAudio:

Code: Select all

Valid command line options:

/IFnnnnn	Input frequency
/ICn		Input channels
/IIxxxx		Input interleave (hex)
/IHxxxx		Input headerskip (hex)
/OTtttt		Output type (WAVU, VAGC,
		 SS2U, SS2C, RAWU, RAWC)
/OFnnnnn	Output frequency
/OCn		Output channels
/OIxxxx		Output interleave (hex)
"InputFile"	Input file to play/convert
"OutputFile"	Output file to convert to
Example:

Code: Select all

for %%1 in (*.vag) do start /wait MFAudio "%%1" /ITRAWC /IF16000 /IC1 /OF16000 /OC1 /OTWAVU "%%1.wav"
The only inconvenience: If "RAW Compressed" is determined by mistake as "RAW Uncompressed" by default, then it is impossible to forcibly switch the input format through the batch file. That is, in the output files you will hear noise.
User avatar
DKDave
ultra-veteran
ultra-veteran
Posts: 357
Joined: Mon May 06, 2019 6:07 pm
Location: On board the USS Callister
Has thanked: 9 times
Been thanked: 167 times

Re: Vag With MFAudio

Post by DKDave »

You could also use the convert to WAV feature in Foobar/vgmstream, not just for VAG, but for many other formats. I've always found that to work perfectly, with no need to mess about with setting output parameters.
I see a vision rising, dreary, Fading in as children play twilight games, In the town called Ordinary, An eye of light reveals a gateway to doomsday
Post Reply