Page 1 of 2

Ubisoft .wav RIFF header

Posted: Wed Jun 24, 2015 9:20 pm
by planedec50
Ubisoft's audio wav format wont be read in vgmstream or anything else. The header is RAKI....X360xma2. I've tried to use vgm stream but it wont read it. Can anyone help? I've put a download to the file.

https://www.mediafire.com/?xbpv26o83973tpj (Ends in .rak extension)

Re: Ubisoft .wav RIFF header

Posted: Thu Jun 25, 2015 7:25 pm
by brendan19
Download this zip file

It contains the tools necessary to decode the file. Special thanks goes out to Aluigi, Alpha23, HCS and Xplorer.

1. Copy all the .RAK files you have to the QuickBMS folder
2. Run QuickBMS
3. Select the XMA Transform BMS Script first
4. Choose the .RAK files you wish to convert
5. Select where you want the transformed files to be placed
6. When prompted, press Y for XMA Parse to do its thing.

Then after you have the .XMA file/s, use Xplorer's ToWAV tool to convert the XMA into PCM WAV.

Enjoy :)

Re: Ubisoft .wav RIFF header

Posted: Thu Jun 25, 2015 8:44 pm
by planedec50
Theres also another type if Ubi RIFF header http://www.mediafire.com/listen/d3n99mu ... 802332.wav (Example)

RIFFþí….WAVEfmt this is the header it begins with. It isnt normally read and some wont open.

Re: Ubisoft .wav RIFF header

Posted: Fri Jun 26, 2015 2:16 am
by brendan19
What is the game and platform are these files from?

Re: Ubisoft .wav RIFF header

Posted: Fri Jun 26, 2015 2:46 am
by planedec50
These are from the Just Dance 2,3, and 4 games on the Wii version. They are extracted from the .wav.bf archive

Re: Ubisoft .wav RIFF header

Posted: Fri Jun 26, 2015 3:10 am
by brendan19
Rename from .wav to .sns and vgmstream will play/convert them just fine :)

Re: Ubisoft .wav RIFF header

Posted: Fri Jun 26, 2015 11:40 am
by vladik4kides
Just download vgmstream plugin for Winamp and enable export plugin. Then rename .wav files to the .sns and open it with Winamp. It will convert it to the mp3. Enjoy!

Re: Ubisoft .wav RIFF header

Posted: Thu Jul 16, 2015 5:45 pm
by planedec50
Hi i have another version of the wav mentioned before. This time its the xbox version. I cant convert with XMA and it cant be read by vgm stream. Do you know anything?

Heres an example: http://www.mediafire.com/listen/ii80w9c ... e0201a.wav

Re: Ubisoft .wav RIFF header

Posted: Thu Jul 16, 2015 7:13 pm
by brendan19
Okay for this file, you need to note down the channels and frequency rate of the file, then scan for the XMA flag manually and delete everything that is 6 bytes before that flag.

The frequency is most likely going to be 44100Hz or 48000Hz. These numbers can be found in the RIFF header, look for the frequency rate first and then a couple of bytes back will show the channels.

The most common frequency numbers are 80BB (48000Hz) and 44AC (44100Hz)

Once you have this information you need to scan for the XMA flag.

The XMA flag is "FC01C001"

Delete everything starting 6 bytes before the XMA flag.

It should look something like this:

Image

Once this is done, open up the XMA Transform BMS Script from AlphaTwentyThree and make sure that the set FREQ_DEFAULT and set CH_DEFAULT are the same as the sample rate and channel you notated down before then save the script.

Run the script, it will give you an XMA file with a proper header and then use ToWAV to convert.

Re: Ubisoft .wav RIFF header

Posted: Thu Jul 16, 2015 8:26 pm
by planedec50
Im having problems with the bms script. Whenever i type "y" and press enter, it outputs "wrong command-line argument" and i cant seem to fix it.

Re: Ubisoft .wav RIFF header

Posted: Fri Jul 17, 2015 10:06 am
by brendan19
Did you rename the exe from xma_test to xma_parse?

Re: Ubisoft .wav RIFF header

Posted: Fri Jul 17, 2015 4:50 pm
by planedec50
It was already named that when i extracted the zip file

Re: Ubisoft .wav RIFF header

Posted: Fri Jul 17, 2015 6:14 pm
by brendan19
What files are you attempting to run the script on? Post some samples.

Re: Ubisoft .wav RIFF header

Posted: Fri Jul 17, 2015 10:53 pm
by planedec50
Its anything convertable. So the .wav, .rak files that i have been attempting at

Re: Ubisoft .wav RIFF header

Posted: Fri Jul 17, 2015 11:35 pm
by brendan19
Upload all the XMAs and I'll fix them up for you and send them back so you convert them. It's probably quicker at this point :)