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

Ubisoft .wav RIFF header

Get help on any and all audio formats, or chip in and help others!
planedec50
advanced
Posts: 40
Joined: Sun Jun 07, 2015 6:12 pm
Has thanked: 2 times

Ubisoft .wav RIFF header

Post 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)
brendan19
ultra-veteran
ultra-veteran
Posts: 389
Joined: Thu Aug 12, 2010 8:15 am
Has thanked: 54 times
Been thanked: 93 times

Re: Ubisoft .wav RIFF header

Post 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 :)
planedec50
advanced
Posts: 40
Joined: Sun Jun 07, 2015 6:12 pm
Has thanked: 2 times

Re: Ubisoft .wav RIFF header

Post 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.
brendan19
ultra-veteran
ultra-veteran
Posts: 389
Joined: Thu Aug 12, 2010 8:15 am
Has thanked: 54 times
Been thanked: 93 times

Re: Ubisoft .wav RIFF header

Post by brendan19 »

What is the game and platform are these files from?
planedec50
advanced
Posts: 40
Joined: Sun Jun 07, 2015 6:12 pm
Has thanked: 2 times

Re: Ubisoft .wav RIFF header

Post 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
brendan19
ultra-veteran
ultra-veteran
Posts: 389
Joined: Thu Aug 12, 2010 8:15 am
Has thanked: 54 times
Been thanked: 93 times

Re: Ubisoft .wav RIFF header

Post by brendan19 »

Rename from .wav to .sns and vgmstream will play/convert them just fine :)
vladik4kides
n00b
Posts: 19
Joined: Wed Jun 17, 2015 5:36 pm
Has thanked: 7 times

Re: Ubisoft .wav RIFF header

Post 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!
planedec50
advanced
Posts: 40
Joined: Sun Jun 07, 2015 6:12 pm
Has thanked: 2 times

Re: Ubisoft .wav RIFF header

Post 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
brendan19
ultra-veteran
ultra-veteran
Posts: 389
Joined: Thu Aug 12, 2010 8:15 am
Has thanked: 54 times
Been thanked: 93 times

Re: Ubisoft .wav RIFF header

Post 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.
planedec50
advanced
Posts: 40
Joined: Sun Jun 07, 2015 6:12 pm
Has thanked: 2 times

Re: Ubisoft .wav RIFF header

Post 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.
brendan19
ultra-veteran
ultra-veteran
Posts: 389
Joined: Thu Aug 12, 2010 8:15 am
Has thanked: 54 times
Been thanked: 93 times

Re: Ubisoft .wav RIFF header

Post by brendan19 »

Did you rename the exe from xma_test to xma_parse?
planedec50
advanced
Posts: 40
Joined: Sun Jun 07, 2015 6:12 pm
Has thanked: 2 times

Re: Ubisoft .wav RIFF header

Post by planedec50 »

It was already named that when i extracted the zip file
brendan19
ultra-veteran
ultra-veteran
Posts: 389
Joined: Thu Aug 12, 2010 8:15 am
Has thanked: 54 times
Been thanked: 93 times

Re: Ubisoft .wav RIFF header

Post by brendan19 »

What files are you attempting to run the script on? Post some samples.
planedec50
advanced
Posts: 40
Joined: Sun Jun 07, 2015 6:12 pm
Has thanked: 2 times

Re: Ubisoft .wav RIFF header

Post by planedec50 »

Its anything convertable. So the .wav, .rak files that i have been attempting at
brendan19
ultra-veteran
ultra-veteran
Posts: 389
Joined: Thu Aug 12, 2010 8:15 am
Has thanked: 54 times
Been thanked: 93 times

Re: Ubisoft .wav RIFF header

Post 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 :)
Post Reply