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

Medal of Honor - audio extractor

Get help on any and all audio formats, or chip in and help others!
Post Reply
daemon1
MEGAVETERAN
MEGAVETERAN
Posts: 2647
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 65 times
Been thanked: 2871 times

Medal of Honor - audio extractor

Post by daemon1 »

Audio extractor for Medal of Honor

Currently only tested on "Medal of Honor: Airborne" and "Medal of Honor 2010" but may work with other EA games with Unreal Engine.

Medal of Honor: Airborne

If you unpack .xxx packages with Gildor's extractor you get a lot of files of type .SoundRiotRawAsset. Some of them are soundbanks, and you can extract sounds from them with moha_snb [bank file]

Please note it will not work with "audio", "mix", "plugin" and other files, which are different types of audio assets. In this case the tool will give you an error "unknown file type".

There are some external stream banks, which is needed to decode big stream .xxx files, which are not UE packages, but just a raw data for XAS streams. These banks are all named "stream.SoundRiotRawAsset", but they are all just headers for different big streams. To unpack those, place the corresponding .xxx stream to the same directory.

There are also music banks, also named .xxx each containing about 100-200 audio files. Some are complete music pieces, but most are short fragments, combining which you can compile music tracks, or loop them infinitely. Extract them with moha_music [music bank]

Then you can decode files with xas_decode [exa file]

Some files were 3-channel and 5-channel, which is strange, and some players don't play such files.

This tool currently only support EA XAS format for this game, but later I plan to make it a universal XAS decoder.

Medal of Honor 2010

All sounds and music here contained in similar sound banks. They are not unreal packages anymore, you can extract sounds from them with moh_snb [bank file]

Some of them are external stream banks (those containing the word "stream"). These must be handled like explained before for Airborne game. For example, to extract Aud_MP_SoundRIOT_ui_stream_stb.xxx you need to run moh_snb Aud_MP_SoundRIOT_ui_stream.xxx and it will use headers from "...stream" and data from "...stream_stb"

After extracting the files you can convert them using xas_decode or ealayer3, depending on codec. There's no way to detect it automatically yet. Also ealayer3 is unable to detect their headers, so you need to use "-i 8" switch for most of files, and "-i 16" for files that have loops.
You do not have the required permissions to view the files attached to this post.
Last edited by daemon1 on Mon Nov 23, 2015 9:43 pm, edited 10 times in total.
User avatar
Vosvoy
veteran
Posts: 127
Joined: Fri Feb 18, 2011 4:58 pm
Has thanked: 15 times
Been thanked: 15 times

Re: Medal of Honor - audio extractor

Post by Vosvoy »

For the Unreal Packages extractor, go see Gildor's website guys: http://www.gildor.org
Last edited by Vosvoy on Tue Apr 21, 2015 3:53 pm, edited 1 time in total.
Vosvoy
daemon1
MEGAVETERAN
MEGAVETERAN
Posts: 2647
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 65 times
Been thanked: 2871 times

Re: Medal of Honor - audio extractor

Post by daemon1 »

Vosvoy wrote:PS: I don't think you can post stream info file mate but I'm not 100% sure of that.
Ok, I removed them.
OrangeC
double-veteran
double-veteran
Posts: 868
Joined: Sun Apr 20, 2008 2:58 am
Has thanked: 5 times
Been thanked: 41 times

Re: Medal of Honor - audio extractor

Post by OrangeC »

let me know when music is supported so i can test MOH reboot pc.
daemon1
MEGAVETERAN
MEGAVETERAN
Posts: 2647
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 65 times
Been thanked: 2871 times

Re: Medal of Honor - audio extractor

Post by daemon1 »

OrangeC wrote:let me know when music is supported so i can test MOH reboot pc.
The format in that "reboot" may be totally different, so you better send me a sample of its music bank.
User avatar
Vosvoy
veteran
Posts: 127
Joined: Fri Feb 18, 2011 4:58 pm
Has thanked: 15 times
Been thanked: 15 times

Re: Medal of Honor - audio extractor

Post by Vosvoy »

I didn't know that Medal Of Honor 2010 was also called "Reboot". I was looking to test it too.
Vosvoy
daemon1
MEGAVETERAN
MEGAVETERAN
Posts: 2647
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 65 times
Been thanked: 2871 times

Re: Medal of Honor - audio extractor

Post by daemon1 »

I've got the music decoded. In each music bank there are about 100-200 audio files. Some are complete music pieces, but most are short fragments, combining which you can compile music tracks, or loop them infinitely. There must be some script in the game to do this, but currently I can't find it or analyze it. Anyway I think you can easily find what pieces do you need.

Tools updated.
OrangeC
double-veteran
double-veteran
Posts: 868
Joined: Sun Apr 20, 2008 2:58 am
Has thanked: 5 times
Been thanked: 41 times

Re: Medal of Honor - audio extractor

Post by OrangeC »

Here is a bank from moh 2010.

https://mega.co.nz/#fm/wMUnSRLS
User avatar
Vosvoy
veteran
Posts: 127
Joined: Fri Feb 18, 2011 4:58 pm
Has thanked: 15 times
Been thanked: 15 times

Re: Medal of Honor - audio extractor

Post by Vosvoy »

daemon1 wrote:I've got the music decoded. In each music bank there are about 100-200 audio files. Some are complete music pieces, but most are short fragments, combining which you can compile music tracks, or loop them infinitely.
I saw that in the Xbox360 version but it was very messy. Each samples didn't have the right sample rate and the loop was cut before the end. I'm happy you figured out.
Vosvoy
daemon1
MEGAVETERAN
MEGAVETERAN
Posts: 2647
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 65 times
Been thanked: 2871 times

Re: Medal of Honor - audio extractor

Post by daemon1 »

Vosvoy wrote:I saw that in the Xbox360 version but it was very messy. Each samples didn't have the right sample rate and the loop was cut before the end. I'm happy you figured out.
Yes, if I combine these pieces one by one, can hear a perfect music file.
daemon1
MEGAVETERAN
MEGAVETERAN
Posts: 2647
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 65 times
Been thanked: 2871 times

Re: Medal of Honor - audio extractor

Post by daemon1 »

The format in Medal of Honor 2010 reboot is similar, but different headers, and most sounds are in Ealayer3 version 5. Yet some are still in XAS. I can decode them all I think.
daemon1
MEGAVETERAN
MEGAVETERAN
Posts: 2647
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 65 times
Been thanked: 2871 times

Re: Medal of Honor - audio extractor

Post by daemon1 »

Tools updated, Medal of Honor 2010 now supported.

Old airborne tools renamed.
User avatar
durandal217
veteran
Posts: 95
Joined: Tue Jul 17, 2012 3:52 am
Has thanked: 16 times
Been thanked: 12 times

Re: Medal of Honor - audio extractor

Post by durandal217 »

incredible work daemon thank you so much for this tool. Works like a charm.
victor639514
ultra-n00b
Posts: 1
Joined: Mon Nov 30, 2015 6:33 pm

Re: Medal of Honor - audio extractor

Post by victor639514 »

There are some external stream banks, which is needed to decode big stream .xxx files, which are not UE packages, but just a raw data for XAS streams. These banks are all named "stream.SoundRiotRawAsset", but they are all just headers for different big streams. To unpack those, place the corresponding .xxx stream to the same directory.
Mind if I ask, which directory to be more specific?
daemon1
MEGAVETERAN
MEGAVETERAN
Posts: 2647
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 65 times
Been thanked: 2871 times

Re: Medal of Honor - audio extractor

Post by daemon1 »

victor639514 wrote:
There are some external stream banks, which is needed to decode big stream .xxx files, which are not UE packages, but just a raw data for XAS streams. These banks are all named "stream.SoundRiotRawAsset", but they are all just headers for different big streams. To unpack those, place the corresponding .xxx stream to the same directory.
Mind if I ask, which directory to be more specific?
It means that "stream.SoundRiotRawAsset" and the corresponding .xxx stream must be in the same directory to unpack it.
Post Reply