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

UbiSoft Audio Stream Decoder

Get help on any and all audio formats, or chip in and help others!
Post Reply
Zench
VIP member
VIP member
Posts: 209
Joined: Sun May 04, 2008 9:11 pm
Has thanked: 4 times
Been thanked: 52 times
Contact:

UbiSoft Audio Stream Decoder

Post by Zench » Sat Sep 13, 2008 9:13 pm

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.
Last edited by Zench on Fri Apr 27, 2012 8:48 pm, edited 8 times in total.
And I said, "The well has finally run dry." So then that will be my battle cry.

OrangeC
double-veteran
double-veteran
Posts: 860
Joined: Sun Apr 20, 2008 2:58 am
Has thanked: 5 times
Been thanked: 33 times

Re: UbiSoft Audio Stream Decoder

Post by OrangeC » Sat Sep 13, 2008 9:18 pm

Hmm new thread, nice.

Thx zench.

OrangeC
double-veteran
double-veteran
Posts: 860
Joined: Sun Apr 20, 2008 2:58 am
Has thanked: 5 times
Been thanked: 33 times

Re: UbiSoft Audio Stream Decoder

Post by OrangeC » Sun Sep 28, 2008 7:00 pm

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.

Zench
VIP member
VIP member
Posts: 209
Joined: Sun May 04, 2008 9:11 pm
Has thanked: 4 times
Been thanked: 52 times
Contact:

Re: UbiSoft Audio Stream Decoder

Post by Zench » Tue Sep 30, 2008 1:14 am

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.
And I said, "The well has finally run dry." So then that will be my battle cry.

OrangeC
double-veteran
double-veteran
Posts: 860
Joined: Sun Apr 20, 2008 2:58 am
Has thanked: 5 times
Been thanked: 33 times

Re: UbiSoft Audio Stream Decoder

Post by OrangeC » Tue Sep 30, 2008 1:22 am

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.

Zench
VIP member
VIP member
Posts: 209
Joined: Sun May 04, 2008 9:11 pm
Has thanked: 4 times
Been thanked: 52 times
Contact:

Re: UbiSoft Audio Stream Decoder

Post by Zench » Tue Sep 30, 2008 1:52 am

OrangeC wrote:Could it be mixed with XBOX adpcm also?
It's definitely worth a try.
And I said, "The well has finally run dry." So then that will be my battle cry.

OrangeC
double-veteran
double-veteran
Posts: 860
Joined: Sun Apr 20, 2008 2:58 am
Has thanked: 5 times
Been thanked: 33 times

Re: UbiSoft Audio Stream Decoder

Post by OrangeC » Tue Sep 30, 2008 1:55 am

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

OrangeC
double-veteran
double-veteran
Posts: 860
Joined: Sun Apr 20, 2008 2:58 am
Has thanked: 5 times
Been thanked: 33 times

Re: UbiSoft Audio Stream Decoder

Post by OrangeC » Tue Sep 30, 2008 3:07 am

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.

clayman
n00b
Posts: 16
Joined: Wed Dec 27, 2006 12:26 am
Has thanked: 1 time

Re: UbiSoft Audio Stream Decoder

Post by clayman » Tue Dec 02, 2008 10:35 am

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.

Zench
VIP member
VIP member
Posts: 209
Joined: Sun May 04, 2008 9:11 pm
Has thanked: 4 times
Been thanked: 52 times
Contact:

Re: UbiSoft Audio Stream Decoder

Post by Zench » Tue Dec 02, 2008 4:27 pm

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.
And I said, "The well has finally run dry." So then that will be my battle cry.

OrangeC
double-veteran
double-veteran
Posts: 860
Joined: Sun Apr 20, 2008 2:58 am
Has thanked: 5 times
Been thanked: 33 times

Re: UbiSoft Audio Stream Decoder

Post by OrangeC » Wed Dec 10, 2008 5:55 am

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.

Zench
VIP member
VIP member
Posts: 209
Joined: Sun May 04, 2008 9:11 pm
Has thanked: 4 times
Been thanked: 52 times
Contact:

Re: UbiSoft Audio Stream Decoder

Post by Zench » Thu Dec 11, 2008 11:06 pm

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.
And I said, "The well has finally run dry." So then that will be my battle cry.

OrangeC
double-veteran
double-veteran
Posts: 860
Joined: Sun Apr 20, 2008 2:58 am
Has thanked: 5 times
Been thanked: 33 times

Re: UbiSoft Audio Stream Decoder

Post by OrangeC » Fri Dec 12, 2008 12:28 am

I am upping you the whole streamfile, should be much easier to understand it with the full file. 500MB.

OrangeC
double-veteran
double-veteran
Posts: 860
Joined: Sun Apr 20, 2008 2:58 am
Has thanked: 5 times
Been thanked: 33 times

Re: UbiSoft Audio Stream Decoder

Post by OrangeC » Fri Dec 12, 2008 1:31 am


Kataah
beginner
Posts: 39
Joined: Thu May 24, 2007 7:21 pm
Has thanked: 12 times
Been thanked: 4 times

Re: UbiSoft Audio Stream Decoder

Post by Kataah » Fri Dec 12, 2008 9:06 pm

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.
Last edited by Kataah on Fri Dec 12, 2008 9:49 pm, edited 1 time in total.

Post Reply