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

Blacklight: Retribution .bnk(BKHD) & RIFF wavefmt

Get help on any and all audio formats, or chip in and help others!
Post Reply
ShinobiMao
ultra-n00b
Posts: 8
Joined: Tue Sep 07, 2010 4:41 pm
Has thanked: 6 times

Blacklight: Retribution .bnk(BKHD) & RIFF wavefmt

Post by ShinobiMao »

Howdy. While there are many tools for these formats, I've only been able to churn out unplayable files from this.

The steps I've taken seem to extract the files okay, but when converting them from an unplayable.wav to .ogg with ww2ogg, it never comes out correctly.

I've uploaded the .bnk in question, as well as a sample .wav output by bnkextr.

http://filesmelt.com/dl/SB_WeaponBank_bnk.rar

http://filesmelt.com/dl/SB_WeaponBank.001_.wav
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: Blacklight: Retribution .bnk(BKHD) & RIFF wavefmt

Post by hcs »

This uses the new encoder (aoTuV 6.03), ww2ogg by default uses the packed codebooks for the reference encoder (libvorbis). Support for using other files was added in ww2ogg 0.18.

Make sure you get 0.18 or later (newest is 0.19 and I'd recommend that), unzip the packed_codebooks_aoTuV_603.bin as well as the ww2ogg.exe, and run it like this on the .wavs:

ww2ogg --pcb packed_codebooks_aoTuV_603.bin BLAH.wav

One other note: In general you should use revorb ( http://www.hydrogenaudio.org/forums/lof ... 64328.html ) to fix up the granulepos in the files ww2ogg outputs. This is particularly important with short samples like this, otherwise decoders will make the wrong assumptions about the latency and cut off some of the first milliseconds. This is something ww2ogg should be able to do, but it has to handle so many different versions of WWise that it'd take a bit of work, and revorb already exists.
ShinobiMao
ultra-n00b
Posts: 8
Joined: Tue Sep 07, 2010 4:41 pm
Has thanked: 6 times

Re: Blacklight: Retribution .bnk(BKHD) & RIFF wavefmt

Post by ShinobiMao »

Thanks! I knew if it were you who replied that a solution would definitely be found. Everything worked perfectly and now I'm able to browse through the files with ease.
For anyone else who'd stumble across this post, you can make and run a .bat file to make it easier. Here's what I did:

Code: Select all

for %%a in (*.wav) do ( ww2ogg --pcb packed_codebooks_aoTuV_603.bin "%%a"
del "%%a" )
for %%a in (*.ogg) do revorb "%%a"
After the .bnk is extracted of course. I used bnkextr.
MiLØ
veteran
Posts: 114
Joined: Sun Dec 11, 2011 8:00 am
Has thanked: 36 times
Been thanked: 20 times

Re: Blacklight: Retribution .bnk(BKHD) & RIFF wavefmt

Post by MiLØ »

I'm stuck at extracting BNK step. bnk files from Zone of the Enders HD Collection. Using bnkextr.exe and nothing happens. I'm doing it with 360 and PS3 version and nothing. I tried drag & drop and command line.

Maybe it's a different type of bnk? Please advice. Here are a couple of samples:

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

Re: Blacklight: Retribution .bnk(BKHD) & RIFF wavefmt

Post by Vosvoy »

MiLØ wrote:I'm stuck at extracting BNK step. bnk files from Zone of the Enders HD Collection. Using bnkextr.exe and nothing happens. I'm doing it with 360 and PS3 version and nothing. I tried drag & drop and command line.

Maybe it's a different type of bnk? Please advice. Here are a couple of samples:

https://mega.co.nz/#!L0NERTKC!nxexgFYg1 ... ab6aug05ss
I tested on global_sfx.bnk and it worked (222 sound files).

Just put that in the batch file:

Code: Select all

bnkextr.exe global_sfx.bnk /swap
It's not a different type of .bnk archive 'cause the header is correct and the STID not screwed. The byte order is just originally swapped so you got to swap it back to extract it.

Cordialy.
Vosvoy
Post Reply