These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

Extracting Sound Files?

Author
Kennesaw Breach
Illusion of Solitude.
Illusion of Solitude
#1 - 2013-06-26 17:11:16 UTC
It looks like there used to be some tools for extracting the sound files from the EVE client install, but those tools have disappeared and/or no longer work with the current client.

I poked at the client install myself, and found a simple audio resource zipfile containing a whole bunch of .ogg files, which I assumed were Ogg Vorbis formatted audio files. This does not appear to be the case, however. No Vorbis player or codec I have can play these files. The most descriptive error message I get comes from a linux ogg player saying it doesn't recognize the stream format.

So, what format are these files, and is there any way to get them to play outside of the EVE client?

Thanks.

-KB
Kennesaw Breach
Illusion of Solitude.
Illusion of Solitude
#2 - 2013-06-27 20:03:41 UTC
bump. Please, this should be a really easy question to answer. Are the .ogg files in the audio resource zipfile encoded or formatted in some way that a proprietary tool is required to extract them? Am I just missing something really simple? The old forum posts on this topic link to tools that no longer exist, and refer to .blue and .stuff formats that don't seem to be in use by EVE anymore.

Any help appreciated here.
Sarmatiko
#3 - 2013-07-02 08:54:57 UTC
Kennesaw Breach
Illusion of Solitude.
Illusion of Solitude
#4 - 2013-07-03 13:19:04 UTC
Sarmatiko wrote:


I'm not looking for the music, I'm looking for the sound effects, which what you linked does not offer. Thanks for the help anyway, though for the record I did use forum search, I did look at that post, and it does not have what I'm asking for.

Cmdr26
The Scope
Gallente Federation
#5 - 2013-07-06 17:21:48 UTC
Kennesaw Breach wrote:
It looks like there used to be some tools for extracting the sound files from the EVE client install, but those tools have disappeared and/or no longer work with the current client.

I poked at the client install myself, and found a simple audio resource zipfile containing a whole bunch of .ogg files, which I assumed were Ogg Vorbis formatted audio files. This does not appear to be the case, however. No Vorbis player or codec I have can play these files. The most descriptive error message I get comes from a linux ogg player saying it doesn't recognize the stream format.

So, what format are these files, and is there any way to get them to play outside of the EVE client?

Thanks.

-KB


I've been trying to extract the audio files as well for quite some time.
I hope I don't mix anything, but:
These ogg files are some sort of containers with deliberately broken headers so no player can read these files.
The bnk files seems to contain some audio files as well, however, there is also the opinion that these "audio" files are simply some sort of library telling eve where which sound is.

So far I've tried to extract the sounds with wav2ogg, bnkextr and revorb, but I still can't open these files.

I don't know why CCP makes things so complicated. After all it would be a great opportunity to have the players promote the game through self-made movies.
I really wished they would release a toolset which allows us to use Eve's files.
Abus Finkel
Caldari Capital Construction Inc.
#6 - 2013-07-08 02:32:40 UTC
For the .ogg files, use ww2ogg http://hcs64.com/vgm_ripping.html
For the .bnk files, see http://wiki.xentax.com/index.php?title=Wwise_SoundBank_(*.bnk)
If all you care about is extracting the sound files from the .bnk all you need to parse are the DIDX and DATA sections.
Cmdr26
The Scope
Gallente Federation
#7 - 2013-07-08 18:20:18 UTC
Abus Finkel wrote:

For the .bnk files, see http://wiki.xentax.com/index.php?title=Wwise_SoundBank_(*.bnk)
If all you care about is extracting the sound files from the .bnk all you need to parse are the DIDX and DATA sections.


I read the wiki-article about the DIDX and DATA sections, however, this sounds like a foreign language to me :( . I'm glad when my PC does what it is supposed to do.
All I did so far was to use bnkextr.exe to unpack the bnk files, which were then unzipped to a lot of .wav files. I then tried to run ww2ogg on these files, however, they weren't converted.

Do you know a solution?

I offer 100m Isk to the first person who can explain me how to open these files Big smile

Abus Finkel
Caldari Capital Construction Inc.
#8 - 2013-07-08 21:53:59 UTC
Use ffmpeg to reencode the files you get from ww2ogg. I'm not really sure why ffmpeg can read the produced .ogg files when no other program can't, but at least it works :)

Here's a .bat file that will convert all .wav files in a directory to .mp3. You need to have ww2ogg, ffmpeg and all the extracted .wav files in the same directory as the .bat.
If you don't want it to delete the *.wav and *.ogg temporary files then remove the line starting with 'del'
Quote:
@echo off

set FORMAT=mp3

for %%f in (*.wav) do (
ww2ogg "%%f" > NUL 2>&1
ffmpeg -i "%%~nf.ogg" "%%~nf.%FORMAT%" > NUL 2>&1
del "%%f" "%%~nf.ogg" > NUL 2>&1
echo Converted %%f to %%~nf.%FORMAT%
)
Cmdr26
The Scope
Gallente Federation
#9 - 2013-07-09 12:45:04 UTC
Thank you very much for your help.

Unfortunately, I've encountered 2 problems while following your steps:
1. when I try to convert the *. wav files with ww2ogg, the program crashes. I unziped the bin-file with bnkextr - is this my first mistake?
2. when I run your bat, ffmpeg reports, that it needs a file named "libstdc++-6.dll". After having downloaded the needed file, ffmep simply crashes when it comes to converting.
Abus Finkel
Caldari Capital Construction Inc.
#10 - 2013-07-10 01:45:05 UTC  |  Edited by: Abus Finkel
Cmdr26 wrote:
Thank you very much for your help.

Unfortunately, I've encountered 2 problems while following your steps:
1. when I try to convert the *. wav files with ww2ogg, the program crashes. I unziped the bin-file with bnkextr - is this my first mistake?

No that's what I did as well.
What happens if you try to run ww2ogg manually from the command line? You need ww2ogg.exe, packed_codebooks.bin and packed_codebooks_aoTuV_603.bin in the same directory.
'ww2ogg.exe some_file.wav'
This should convert the file to a .ogg. Unfortunately it seems no normal player can open this ogg file so I have to use ffmpeg to convert it again.

Quote:
2. when I run your bat, ffmpeg reports, that it needs a file named "libstdc++-6.dll". After having downloaded the needed file, ffmep simply crashes when it comes to converting.

I'm using the 64-bit static version from http://ffmpeg.zeranoe.com/builds/ but it seems the current latest version isn't statically linked.
The exact version I'm using is http://ffmpeg.zeranoe.com/builds/win64/static/ffmpeg-1.2-win64-static.7z (or http://ffmpeg.zeranoe.com/builds/win32/static/ffmpeg-1.2-win32-static.7z if you prefer 32-bit)
Run it with 'ffmpeg -i input_file.ogg output_file.mp3' (or output_file.wav if you prefer that format)
Cmdr26
The Scope
Gallente Federation
#11 - 2013-07-11 22:23:12 UTC
You, Sir, are a genius! :)
Everything works now and I could extract most of Eve's sounds (some sounds could not be converted by ww2ogg (Turrets.002.wav for example)).
Thank you very much for your help :)
Sarmatiko
#12 - 2013-07-12 18:48:23 UTC  |  Edited by: Sarmatiko
Abus Finkel wrote:
Unfortunately it seems no normal player can open this ogg file so I have to use ffmpeg to convert it again.

You dont need to run ffmpeg pass actually. What you need is to unbork converted files (after ww2ogg pass) with tool called revorb. After that you can play files in normal player.
Bat will look like this (assuming revorb located in same directory):
Quote:

for %%b in (*.WAV) do ww2ogg.exe "%%b"
for %%c in (*.OGG) do revorb.exe "%%c"
del *.wav
pause
exit




Kennesaw Breach wrote:
I'm not looking for the music, I'm looking for the sound effects, which what you linked does not offer.

My post described exactly what you needed. If you don't understand sentence "All sounds packed into BNK files in Res/Audio folder" (e.g not only music but ALL sounds) - then you have a problem.
Dominous Nolen
The Graduates
The Initiative.
#13 - 2013-09-30 08:36:13 UTC  |  Edited by: Dominous Nolen
Awesome Work!

@dominousnolen

"Fly dangerously, Fly safe, Fly whatever, just keep Flying." - Lee Blackwood

imbaRabbit
Caldari Provisions
Caldari State
#14 - 2013-12-04 17:59:11 UTC  |  Edited by: imbaRabbit
Here I come with few questions and problems ...

I wanted to extract the Japanese Voice.bnk which is stored within /res/audio/Japanese/ but unfortunately, the result *.mp3 files sound like R2D2 on drugs (everything's clipped).

If you want, you can get it here: http://abstract-vision.com/002.mp3 . WARNING: if you're going to listen to this stuff, please lower your volume and remove the headset from your ears if you have one ;). It's really, really high-pitched noise.


  1. I've extracted files with the 'bnkextr.exe' file (bnkextr Voice.bnk)
  2. Then I've pasted ww2ogg.exe, packed_codebooks.bin, packed_codebooks_aoTuV_603.bin, and ffmpeg.exe within the folder where *.WAV files are.
  3. After that, I've created a *.BAT file with following content:
  4. Quote:
    @echo off

    set FORMAT=mp3

    for %%f in (*.wav) do (
    ww2ogg "%%f" > NUL 2>&1
    ffmpeg -i "%%~nf.ogg" "%%~nf.%FORMAT%" > NUL 2>&1
    del "%%f" "%%~nf.ogg" > NUL 2>&1
    echo Converted %%f to %%~nf.%FORMAT%
    )


Although it converts all the files without giving out any indication of error, the only thing I get is random, high-pitched audio file.

From .wav to OGG: "ww2ogg.exe Interface.001.wav" gives me following result:

http://abstract-vision.com/wav-to-ogg.png

The interesting thing happens when I convert "ffmpeg -i Interface.002.ogg 002.mp3": Queue input is backward in time!

http://abstract-vision.com/ogg-to-mp3.png

Does someone know what this thing is? I've tried all of the files (even Effects.bnk, ...) the but I end up with the same result. I have never dealt with audio and I have no clue what's happening.

About revorb
Revorb did not work for me - it crashes instantly as it starts. It opens original *.OGG file, and creates a temporary file but it stops after file creation (cause: crash).

Thank you for reading!

With regards,
imbaRabbit

EDIT: The thing wasn't working from the step 2.

I have no clue why but I need to tell the ww2ogg to use the packed_codebooks_aoTuV_603.bin directly in a command line. Instead of

ww2ogg "%%f" > NUL 2>&1

I had to use this command:

ww2ogg "%%f" "-o" "%%~nf.ogg" "--pcb" "packed_codebooks_aoTuV_603.bin" > NUL 2>&1
imbaRabbit
Caldari Provisions
Caldari State
#15 - 2013-12-06 12:54:01 UTC
An update to the topic:

Although I can now extract everything, some of the files do not convert into *.OGG files.

This is the current code which I use. It's split into few parts:


  1. Create directory for every *.BNK file within the directory.
  2. Unpack the files from *.BNK into *.WAV.
  3. Convert *.WAV files into the *.OGG files.
  4. For every *.OGG start the revorb.exe.
  5. Delete the *.WAV files.
  6. Move all the *.OGG files to appropriate directory from the first step.


Quote:

for %%f in (*.bnk) do (
md %%~nf
start bnkextr.exe %%~nf.bnk
)

ping 1.1.1.1 -n 1 -w 1000 > null

for %%f in (*.wav) do (
ww2ogg "%%f" "-o" "%%~nf.ogg" "--pcb" "packed_codebooks_aoTuV_603.bin"
)

ping 1.1.1.1 -n 1 -w 1000 > nul

for %%f in (*.wav) do (
if exist "%%~nf.ogg" (
start revorb.exe "%%~nf.ogg"
del "%%f" > NUL 2>&1
) else (
echo "File %%~nf.ogg does not exist!"
)
)

ping 1.1.1.1 -n 1 -w 1000 > nul

for %%A in ("*.*.ogg") do (
for /f "eol=. tokens=1 delims=." %%B in ("%%~nA") do (
if not exist "%%B\" mkdir "%%B\"
echo Moving file "%%A" into "%%B\"
move "%%A" "%%B\"
)
)


Everything's nice and dandy except that some of the *.WAV files will not convert into the *.OGG files. I poked around the Internet for a while and I've found the XeNTaX thread which has discussed this issue. http://forum.xentax.com/viewtopic.php?f=17&t=10586 . Unfortunately, the given solution with ima_jigger2 does not work because I'm getting ima_rejigger2.c:90:main: not codec id 0x2 error for each of the *.WAV files which were not converted. Hence, I'm unable to open them in any of the, to me, known programs.

Solution anyone?
Cardinal Harvest
Republic Military School
Minmatar Republic
#16 - 2013-12-24 15:35:51 UTC
I tried following steps from here and ended nowhere. So i found explanation elsewhere.
Anyone that wants to do it from start:

http://www.twcenter.net/forums/showthread.php?622961-Extracting-bnk-files