Ubisoft MPEG files (Tonic Trouble)

Codecs, formats, encoding/decoding of game audio, video and music
Droolie
Posts: 7
Joined: Wed Feb 25, 2015 3:28 pm

Ubisoft MPEG files (Tonic Trouble)

Post by Droolie »

Hey there!

I'm looking to decode the Ubisoft MPEG files found in Tonic Trouble, and I'd be forever grateful if anyone could help. I've posted this on various forums without any help, so I'm hoping I'll have some luck here. :)

Here are some examples of stereo Ubisoft MPEG files: https://app.box.com/s/4a8u0kbfe1izlewedqjl
Here are 3 examples of mono Ubisoft MPEG files (they're voice tracks): https://app.box.com/s/qypjqe1pypd9dtmncern
It seems that much like normal MPEG audio, stereo files have 1 frame for left channel, 1 frame for right channel, and then repeat.

The tracks seem to be 16-bit 44100Hz files, and from what I've found, the format is a bit like this:

Code: Select all

0x4 - the amount of samples of the audio track. Seems to be used only for loop length.
0x4 - "2RUS" header for stereo, "1RUS" header for mono
0x??- frame header, starting with at least 8 "on" bits (11111111). This start is just like MPEG, but the rest of the header isn't...
[ frame ]
0x?? - frame header, seems to be padded to nibble level (as in, there can be 4 "on" bits at the end of one byte and 4 at the beginning of the following byte)
[ frame ]
etc.


Many thanks,
Droolie.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Ubisoft MPEG files (Tonic Trouble)

Post by aluigi »

I think you need decubisnd.
Have you already tried it?
https://bitbucket.org/Zenchreal/decubisnd/downloads
Droolie
Posts: 7
Joined: Wed Feb 25, 2015 3:28 pm

Re: Ubisoft MPEG files (Tonic Trouble)

Post by Droolie »

Yeah, I have, but DecUbiSnd doesn't support that format.
deton24
Posts: 5
Joined: Fri Feb 02, 2018 12:09 am

Re: Ubisoft MPEG files (Tonic Trouble)

Post by deton24 »

Converter has been released with source codes:
http://www.ctpax-x.org/?goto=files&show=161

You can consider donating CTPAX-X on Kiwi, Yandex Money, Webmoney (data provided in the left of the main page) helping them keep their site online.

Thanks to aluigi for providing QuickBMS script extracting MPX segments!