View Full Version : Extracting sound files from the .BIN and .BNDL files


PaddMadd
10-15-2011, 04:36 AM
I'm trying to extract sound files from the game such as engine sounds and the siren to import into GTA:IV, but I'm having no luck with an extractor. I've found tons of extractors for the music and SBS files, but they aren't working for what I need them for. Can anyone point me to a working extractor/converter?

Alexc12fr
10-15-2011, 05:40 AM
Impossible so far.

mnn
10-15-2011, 05:47 AM
Alexc12fr: Actually, very possible. Bundle format has been already reversed. Streams inside bundles are currently in progress.

Otherwise how do you think this would be possible?
http://img840.imageshack.us/img840/9182/94713434.th.jpg (http://img840.imageshack.us/img840/9182/94713434.jpg)
http://img825.imageshack.us/img825/4579/36814580.th.jpg (http://img825.imageshack.us/img825/4579/36814580.jpg)


PaddMadd:If you're not a developer, who can create tools for himself you'll need two applications.

First - NFSHP bundle explorer (http://code.google.com/p/nfshpexplorer/downloads/list).
Second - EA Layer 3 Decoder (https://bitbucket.org/Zenchreal/ealayer3/downloads).

Music: UI\SONGS
Audio for videos: UI\MOVIES

Audio inside bundles is located in streams with type of 129 (or 0x81).

Alexc12fr
10-15-2011, 05:58 AM
Tell me where are engine and siren sounds.

PaddMadd
10-15-2011, 07:10 AM
I have managed to extract my sound files, but I have them in .nfs format(Bundle Explorer says they are .RAW files). What's the best converter for this file extension? Sorry for the spoonfeed request lol.

RacingFreak
10-15-2011, 07:18 AM
I think you could try opening these files as RAW in GoldWave. It's really very possible, I will check myself too.

PS
Another way that works in few cases is opening using Dragon unPACKer 5.

PaddMadd
10-15-2011, 08:02 AM
I have tried both above options, and it didn't work unless I did something wrong.

mnn
10-15-2011, 10:35 AM
PaddMadd: How about reading my previous post again?

Sounds, which are in bundles (file type 129 = 0x81) you have to modify. Cut first 0x80 = 128 bytes and you're good to go - EA Layer 3 decoder will be able to decode it and convert it to MP3 then.

Watch out for sounds in bundles, which have 0x40 = 64 bytes - they're just references to sounds in <language> folder (like EN_US\922104.SPS). Sounds in these folders can be easily converted using EA Layer 3 decoder to MP3.
And don't try to convert files in <language>\PB or the 5 largest files in SOUND\STREAMS - they can't be converted using EA Layer 3 decoder (either they're somehow compressed or they're not sound files at all).

Here are some sounds, which I extracted. There should be some engine sounds and also police car sirens.

http://www.sendspace.com/file/6fo9o2

Just a note - siren sounds are located in VEHICLES\WAVES.BNDL bundle.

RacingFreak
10-15-2011, 10:42 AM
PaddMadd: How about reading my previous post again?

Sounds, which are in bundles (file type 129 = 0x81) you have to modify. Cut first 0x80 = 128 bytes and you're good to go - EA Layer 3 decoder will be able to decode it and convert it to MP3 then.

Watch out for sounds in bundles, which have 0x40 = 64 bytes - they're just references to sounds in <language> folder (like EN_US\922104.SPS). Sounds in these folders can be easily converted using EA Layer 3 decoder to MP3.
And don't try to convert files in <language>\PB or the 5 largest files in SOUND\STREAMS - they can't be converted using EA Layer 3 decoder (either they're somehow compressed or they're not sound files at all).

Here are some sounds, which I extracted. There should be some engine sounds and also police car sirens.

http://www.sendspace.com/file/6fo9o2

Just a note - siren sounds are located in VEHICLES\WAVES.BNDL bundle.

Thank you man, I will definitely try this out :)

PaddMadd
10-15-2011, 04:16 PM
PaddMadd: How about reading my previous post again?

Sounds, which are in bundles (file type 129 = 0x81) you have to modify. Cut first 0x80 = 128 bytes and you're good to go - EA Layer 3 decoder will be able to decode it and convert it to MP3 then.

Watch out for sounds in bundles, which have 0x40 = 64 bytes - they're just references to sounds in <language> folder (like EN_US\922104.SPS). Sounds in these folders can be easily converted using EA Layer 3 decoder to MP3.
And don't try to convert files in <language>\PB or the 5 largest files in SOUND\STREAMS - they can't be converted using EA Layer 3 decoder (either they're somehow compressed or they're not sound files at all).

Here are some sounds, which I extracted. There should be some engine sounds and also police car sirens.

http://www.sendspace.com/file/6fo9o2

Just a note - siren sounds are located in VEHICLES\WAVES.BNDL bundle.

Okay, this makes much more sense now that I've had a good night's rest. With knowing what which files to look for and exactly how to modify them, it's going to make things a ton easier. Thank you!

PaddMadd
10-15-2011, 10:23 PM
Success! I have imported the files into IV. They need some polishing, but a fellow modder is doing that.

Thank you, mnn!

tzuridis
10-16-2011, 08:59 PM
PaddMadd: How about reading my previous post again?

Sounds, which are in bundles (file type 129 = 0x81) you have to modify. Cut first 0x80 = 128 bytes and you're good to go - EA Layer 3 decoder will be able to decode it and convert it to MP3 then.

Watch out for sounds in bundles, which have 0x40 = 64 bytes - they're just references to sounds in <language> folder (like EN_US\922104.SPS). Sounds in these folders can be easily converted using EA Layer 3 decoder to MP3.
And don't try to convert files in <language>\PB or the 5 largest files in SOUND\STREAMS - they can't be converted using EA Layer 3 decoder (either they're somehow compressed or they're not sound files at all).

Here are some sounds, which I extracted. There should be some engine sounds and also police car sirens.

http://www.sendspace.com/file/6fo9o2

Just a note - siren sounds are located in VEHICLES\WAVES.BNDL bundle.

Sorry but I do not understand a lot of what this guy wrote. I have done all the above steps before this post and have been successful with extracting the RAW data (but I do not know what to do with the RAW data, placing it on the EA decoder does nothing) but I have gotten mp3's from the .SPS files with the EA layer decoder so I do have hope for my ability to do this! However I do not even know where to begin or continue with the explanation provided in the first sentence.

Can anyone explain a little more deeply as to what I have to do to get the engine sounds from cars. I think I am not the only person who wants to have the Pagani Zonda engine start sound as a ringtone. :P

Martin the hedgehog
10-17-2011, 12:28 AM
I am not the only person who wants to have the Pagani Zonda engine start sound as a ringtone. :P

I can take it out with Fraps for you. It's much easier.

mnn
10-17-2011, 07:32 AM
Sorry but I do not understand a lot of what this guy wrote. I have done all the above steps before this post and have been successful with extracting the RAW data (but I do not know what to do with the RAW data, placing it on the EA decoder does nothing) but I have gotten mp3's from the .SPS files with the EA layer decoder so I do have hope for my ability to do this! However I do not even know where to begin or continue with the explanation provided in the first sentence.

As I said sound files in bundles have additional data as header. You need to cut it out in order to convert those to MP3 using EA Layer 3 decoder.

Really, it's not a rocket science...

Can anyone explain a little more deeply as to what I have to do to get the engine sounds from cars. I think I am not the only person who wants to have the Pagani Zonda engine start sound as a ringtone. :P

These are IDs of Zonda's cars.

380633 - Zonda Cinque
380673 - Cinque Roadster

owenqi
02-09-2012, 08:37 AM
As I said sound files in bundles have additional data as header. You need to cut it out in order to convert those to MP3 using EA Layer 3 decoder.

Really, it's not a rocket science...



These are IDs of Zonda's cars.

380633 - Zonda Cinque
380673 - Cinque Roadster

I'm sorry, but I would like to ask, by using which application or software can we cut out the raw files
looking for a reply, thanks a lot.

mnn
02-09-2012, 08:40 AM
Using any hex editor...

owenqi
02-09-2012, 09:03 AM
Using any hex editor...

thanks very much, i will try it out.

coopra1
01-14-2013, 01:19 AM
Hey, I didn't want to create new topic, if this exists.
How to add my own songs to NFS: HP 2010? I discovered, that I only need to change .sps extension into .mp3 and AIMP can play its - they aren't encoded?

If someone can help me to add new songs and tell me, if the .bndl modification is needed, I'll be happy :P

I'm really new in these things, but these songs make me nervous a bit and I want to change it.