READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

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 » Tue Aug 30, 2011 6:03 am

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: 73 times
Contact:

Re: Vag With MFAudio

Post by hcs » Tue Aug 30, 2011 3:16 pm

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 » Wed Aug 31, 2011 3:15 am

Thanks ^_^
worked like a charm & as fast as a bullet~

User avatar
SlavaVlasov
ultra-n00b
Posts: 5
Joined: Wed Jul 01, 2015 9:00 pm
Has thanked: 2 times
Been thanked: 3 times

Re: Vag With MFAudio

Post by SlavaVlasov » Sun Sep 23, 2018 11:53 pm

And how i can set parameters from command line, like mono/stereo, khz etc? :roll:

User avatar
SlavaVlasov
ultra-n00b
Posts: 5
Joined: Wed Jul 01, 2015 9:00 pm
Has thanked: 2 times
Been thanked: 3 times

Re: Vag With MFAudio

Post by SlavaVlasov » Wed Jul 24, 2019 10:28 pm

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
veteran
Posts: 100
Joined: Mon May 06, 2019 6:07 pm
Has thanked: 1 time
Been thanked: 33 times

Re: Vag With MFAudio

Post by DKDave » Thu Jul 25, 2019 12:00 am

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.
"Each person is born with their fate written into their own genetic code. It's unchangeable, immutable. But that's not all there is to life." - Dr. Naomi Hunter

Post Reply