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

UbiSoft Audio Stream Decoder

Get help on any and all audio formats, or chip in and help others!
pietastesgood
advanced
Posts: 72
Joined: Sun Oct 26, 2008 2:41 am
Has thanked: 3 times
Been thanked: 4 times

Re: UbiSoft Audio Stream Decoder

Post by pietastesgood »

S'okay. How would we go about to parse these headers?
Zench
VIP member
VIP member
Posts: 209
Joined: Sun May 04, 2008 9:11 pm
Has thanked: 4 times
Been thanked: 59 times
Contact:

Re: UbiSoft Audio Stream Decoder

Post by Zench »

pietastesgood wrote:S'okay. How would we go about to parse these headers?
There's a header file floating around that contains some of the structures used. That would give us a big clue.
And I said, "The well has finally run dry." So then that will be my battle cry.
OrangeC
double-veteran
double-veteran
Posts: 868
Joined: Sun Apr 20, 2008 2:58 am
Has thanked: 5 times
Been thanked: 41 times

Re: UbiSoft Audio Stream Decoder

Post by OrangeC »

I dont have the game so maybe pie guy can supply you with those.
pietastesgood
advanced
Posts: 72
Joined: Sun Oct 26, 2008 2:41 am
Has thanked: 3 times
Been thanked: 4 times

Re: UbiSoft Audio Stream Decoder

Post by pietastesgood »

The contents of this post was deleted because of possible forum rules violation.
User avatar
Gocha
veteran
Posts: 109
Joined: Fri Dec 12, 2008 8:16 pm
Location: Batumi, Georgia, GE
Has thanked: 57 times
Been thanked: 9 times
Contact:

Re: UbiSoft Audio Stream Decoder

Post by Gocha »

Hi peaple,

Zench had updated Decoder version to 0.63, see the post #1

But I am very sad it could not encode back files. For example it looses the full price for me as I can't encode files back to make changes in game.

I hope one day that would be possible
My great respect and appreciation for them, who research game files! Special thanks to: aluigi, bacter, DerPlaya, Rick, Turfster, twig, Zench. Sorry if someone is missing in my list, I'll update when I'll notice it again
OrangeC
double-veteran
double-veteran
Posts: 868
Joined: Sun Apr 20, 2008 2:58 am
Has thanked: 5 times
Been thanked: 41 times

Re: UbiSoft Audio Stream Decoder

Post by OrangeC »

Would be very cool to add xma stream support for the gui.
Zench
VIP member
VIP member
Posts: 209
Joined: Sun May 04, 2008 9:11 pm
Has thanked: 4 times
Been thanked: 59 times
Contact:

Re: UbiSoft Audio Stream Decoder

Post by Zench »

Gocha wrote:But I am very sad it could not encode back files. For example it looses the full price for me as I can't encode files back to make changes in game.

I hope one day that would be possible
When I said that, I spoke too soon. :D

While we can't encode the format of SC1 voice files, we can (very easily) encode a different format that works just as well! Modify the MAPS.LM0 file a little bit, and it works! 8)

Sorry that I didn't think of it before.
OrangeC wrote:Would be very cool to add xma stream support for the gui.
It would be nice. I'll think about it.
And I said, "The well has finally run dry." So then that will be my battle cry.
OrangeC
double-veteran
double-veteran
Posts: 868
Joined: Sun Apr 20, 2008 2:58 am
Has thanked: 5 times
Been thanked: 41 times

Re: UbiSoft Audio Stream Decoder

Post by OrangeC »

Any luck with those header xma parsings?
Zench
VIP member
VIP member
Posts: 209
Joined: Sun May 04, 2008 9:11 pm
Has thanked: 4 times
Been thanked: 59 times
Contact:

Re: UbiSoft Audio Stream Decoder

Post by Zench »

OrangeC wrote:Any luck with those header xma parsings?
Oh, oops. Totally forgot. :oops:
And I said, "The well has finally run dry." So then that will be my battle cry.
OrangeC
double-veteran
double-veteran
Posts: 868
Joined: Sun Apr 20, 2008 2:58 am
Has thanked: 5 times
Been thanked: 41 times

Re: UbiSoft Audio Stream Decoder

Post by OrangeC »

haha no problem man. if you need any samples let me know i have creed 1 also.

But i think ubisoft xma streams are all the same with the 08 offset thing.
hcs
mega-veteran
mega-veteran
Posts: 263
Joined: Sun Oct 18, 2009 9:41 pm
Location: Portland, OR
Has thanked: 3 times
Been thanked: 79 times
Contact:

Re: UbiSoft Audio Stream Decoder

Post by hcs »

pie brought this to my attention, I've written something to handle the Prince of Persia streams. The files it produces have plain XMA after some header info.

The trouble I'm running into is that Maki + Elika is dumping 0x31 too few bytes of the Common_BAO_0x00440f00 file I'm using for testing. It looks like it should start dumping the file 0x31 bytes later. I'll give an example here of pointing my utility directly at the file within Data360_StreamedSounds.forge.

Code: Select all

PoP360XMA Data360_StreamedSounds.forge 0x1BAA9B8
The offset is optional, if the files were extracted properly you could exclude it, but here we're pointing it at a file starting at 0x1BAA9B8 in the container. PoP360XMA detects the end of stream properly.

It produces the following files:

Code: Select all

0: Data360_StreamedSounds.forge_000 3975784 bytes
1: Data360_StreamedSounds.forge_001 3977864 bytes
2: Data360_StreamedSounds.forge_002 3803684 bytes
3: Data360_StreamedSounds.forge_003 4201036 bytes
4: Data360_StreamedSounds.forge_004 3582464 bytes
Data360_StreamedSounds.forge_000 has the stream at 0x268, 001 at 0x288, 002 at 0x224, 003 at 0x24C, 004 at 0x200. xma_parse 0.6 can handle all these (0.5 was tripped up by 003) but you don't actually have to parse the stream to get it, it's just the rest of the file.
PoP360XMA 0.1 and xma_parse 0.6 on my page http://hcs64.com/vgm_ripping.html
pietastesgood
advanced
Posts: 72
Joined: Sun Oct 26, 2008 2:41 am
Has thanked: 3 times
Been thanked: 4 times

Re: UbiSoft Audio Stream Decoder

Post by pietastesgood »

Nice HCS!! Great work!
OrangeC
double-veteran
double-veteran
Posts: 868
Joined: Sun Apr 20, 2008 2:58 am
Has thanked: 5 times
Been thanked: 41 times

Re: UbiSoft Audio Stream Decoder

Post by OrangeC »

Thanks HCS.
Kataah
beginner
Posts: 39
Joined: Thu May 24, 2007 7:21 pm
Has thanked: 13 times
Been thanked: 4 times

Re: UbiSoft Audio Stream Decoder

Post by Kataah »

Be sure that you look inside the the other sound container too - iam not sure if this game use the same sound system like Assassin's Creed 1 PC - had no time to look inside this game yet but if yes then you will find sound files and maybe headers for the main music inside the other container too.

great work hcs ;)
AlphaTwentyThree
double-veteran
double-veteran
Posts: 982
Joined: Mon Aug 24, 2009 10:55 pm
Has thanked: 76 times
Been thanked: 660 times

Re: UbiSoft Audio Stream Decoder

Post by AlphaTwentyThree »

The contents of this post was deleted because of possible forum rules violation.
If you like what you see, why not click the little Thank You button? ;) It will definitely motivate me! :)
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks ;)
Post Reply