Page 1 of 9

UbiSoft Audio Stream Decoder

Posted: Sat Sep 13, 2008 9:13 pm
by Zench
I have been writing a program called DecUbiSnd to decode audio from UbiSoft streams. There is a command line part and a graphical part. For those of you who have been following along, this is just the next version. Most games that have been developed by UbiSoft use this codec, even for multiple platforms. Do I need to list any examples? The file extension usually has the mask *.SS plus a single digit number on the end to indicate which platform. Example: STREAM.SS0 (for PC). From looking at some old topics it seems there was quite a bit of frustration over this. Hopefully there will be no more.

For most files, it has two limitations:
  • 1. It can't detect the sample rate
    2. It can't detect the length of the stream but has a good guess
Without further delay, here are the current versions:
Downloads page
  • DecUbiSnd-0.66.zip - Command line (including source code)
    DecUbiSndGui-0.66.zip - Graphical user interface
    DecUbiSndGui-0.66-src.zip - Graphical source code
Recent Changes:
Version 0.66
  • Fixed a very small scanning bug
Version 0.65
  • Added big-endian support for those streams
  • Fixed a scanning bug
Version 0.64
  • Added support for Splinter Cell Conviction interleaved streams
Version 0.63
  • Added support for old 4-bit mono files but there is still a bit of noise
  • Fixed a playback bug
Version 0.62
  • Added scan support for Old 6-Or-4 bit
  • Added decoding support for Old 6-Or-4 bit, except 4-bit mono
Version 0.61
  • Fixed a bug in the scanning system
  • Fixed a bug in the Ogg Vorbis checker
  • Fixed a bug in the playback system (GUI)
Notes:
I added support for PS2 SCDA streams. The graphical version is far from being 'completed', but this is just another step. There is no sound banks/maps loading yet either.

Re: UbiSoft Audio Stream Decoder

Posted: Sat Sep 13, 2008 9:18 pm
by OrangeC
Hmm new thread, nice.

Thx zench.

Re: UbiSoft Audio Stream Decoder

Posted: Sun Sep 28, 2008 7:00 pm
by OrangeC
Hey zench i have want to add support for the xbox 1 version of graw 1, here is the ss2 file.

http://www.megaupload.com/?d=4HJP4TQF

I have looked into the file and it seems the start has extra data before the actual stream starts.

Re: UbiSoft Audio Stream Decoder

Posted: Tue Sep 30, 2008 1:14 am
by Zench
OrangeC wrote:Hey zench i have want to add support for the xbox 1 version of graw 1, here is the ss2 file.

http://www.megaupload.com/?d=4HJP4TQF

I have looked into the file and it seems the start has extra data before the actual stream starts.
Weird... it looks like UbiSoft ADPCM, but it doesn't decode properly.

Re: UbiSoft Audio Stream Decoder

Posted: Tue Sep 30, 2008 1:22 am
by OrangeC
Could it be mixed with XBOX adpcm also?

I have tried also and yes it doesn't look like it decoded properly for me either, aslo i think there are multiple sounds in each ss2 file which filesizes range to the 40MB atleast.

Re: UbiSoft Audio Stream Decoder

Posted: Tue Sep 30, 2008 1:52 am
by Zench
OrangeC wrote:Could it be mixed with XBOX adpcm also?
It's definitely worth a try.

Re: UbiSoft Audio Stream Decoder

Posted: Tue Sep 30, 2008 1:55 am
by OrangeC
Yeah, also all the ss2 files start with the same data chunks at the beginning then go into there regular format, except this one.

http://www.megaupload.com/?d=9NKPOEQC

Re: UbiSoft Audio Stream Decoder

Posted: Tue Sep 30, 2008 3:07 am
by OrangeC
This has got to be definatly XBOX adpcm, i have tested the file with this tool.

http://aluigi.altervista.org/papers/xbadpdec.zip

Now it managed to play bits and peices of the file before it goes into static, then it plays some music again, i have decoded the file to raw and maanged to look at the waveform, there are some decoded music peices within the static.

So im guessing there are some 1-2 second segments to extract, then decode them with that program, but that could take a loong time., still gonna test it some more, you can try to with the program.

Re: UbiSoft Audio Stream Decoder

Posted: Tue Dec 02, 2008 10:35 am
by clayman
Hi Zench,

thanks a million for the tool. It really made my day yesterday. :) However, I tried to apply it on the music from the PC version of the first Splinter Cell game and, sadly, scanning gave no results... :( Is that game not supported?

Sorry if I ask something that's been answered elsewhere, I only skimmed through the other thread.

Re: UbiSoft Audio Stream Decoder

Posted: Tue Dec 02, 2008 4:27 pm
by Zench
clayman wrote:However, I tried to apply it on the music from the PC version of the first Splinter Cell game and, sadly, scanning gave no results... :( Is that game not supported?
For now it isn't. Unfortunately, I haven't been able to figure out the codec used by stress/fight music in this version of the game. You can, however, extract the music in STREAM.SS0. I'm glad you found my tool useful, though.

Re: UbiSoft Audio Stream Decoder

Posted: Wed Dec 10, 2008 5:55 am
by OrangeC
hey zench i looked at prince of persia the new one, and it uses ogg vorbis just like assassins creed but the simple streams i cannot decode them. Also i have a feeling it could use interleaved streams but again i have not found one interleave stream yet.

Re: UbiSoft Audio Stream Decoder

Posted: Thu Dec 11, 2008 11:06 pm
by Zench
OrangeC wrote:hey zench i looked at prince of persia the new one, and it uses ogg vorbis just like assassins creed but the simple streams i cannot decode them. Also i have a feeling it could use interleaved streams but again i have not found one interleave stream yet.
Perhaps you could post some pieces? I'd like to take a look at them.

Re: UbiSoft Audio Stream Decoder

Posted: Fri Dec 12, 2008 12:28 am
by OrangeC
I am upping you the whole streamfile, should be much easier to understand it with the full file. 500MB.

Re: UbiSoft Audio Stream Decoder

Posted: Fri Dec 12, 2008 1:31 am
by OrangeC

Re: UbiSoft Audio Stream Decoder

Posted: Fri Dec 12, 2008 9:06 pm
by Kataah
Noooo not again!
Its very similar to assassins creed. 3 different audio types.
Multichannel wav, voxware and ogg. The new problem is that the ogg tracks uses now different Serial Numbers.
There is no more one serial number to one track.
Anyway i will study this container later too.