hcs64 / ww2ogg

Convert AudioKinetic Wwise RIFF/RIFX Vorbis to standard Ogg Vorbis
BSD 3-Clause "New" or "Revised" License
330 stars 39 forks source link

[Request] Trine 3 WEM support #2

Closed Kein closed 9 years ago

Kein commented 9 years ago

ww2ogg.exe audio1_fbq-0000000187.wem -o 1.ogg --pcb packed_codebooks_aoTuV_603.bin Audiokinetic Wwise RIFF/RIFX Vorbis to Ogg Vorbis converter 0.22 by hcs Input: audio1_fbq-0000000187.wem Parse error: expected 0x42 fmt if vorb missing

http://i.imgur.com/l3EBqou.png

hcs64 commented 9 years ago

I can't tell for sure based on just the screenshot you sent, but it looks like the file is not Vorbis data. It appears to be 16-bit little endian PCM, which you can read with many raw audio editors.

shmerl commented 8 years ago

I have a similar problem with System Shock Demo audio. I extracted WEM files using

Parse error: expected 0x42 fmt if vorb missing bnkextr, and when running ww2ogg I get:

ww2ogg 0001.wem 
Audiokinetic Wwise RIFF/RIFX Vorbis to Ogg Vorbis converter 0.24 by hcs

Input: 0001.wem
Parse error: expected 0x42 fmt if vorb missing

Here is the screenshot of the hex header:

hex_header

I can't open this file with Audacity.

shmerl commented 8 years ago

OK, I figured, Audacity doesn't analyze it by default. I had to do explicit raw import.

shmerl commented 8 years ago

Here is a final example using sox (for System Shock Demo):

sox --type raw --rate 44100 --encoding signed --endian little --bits 16 --channels 2 0001.wem 0001.wav
hcs64 commented 8 years ago

@shmerl : You'll want to skip the 64 (0x40) bytes of header.

Use Audacity Import->Raw Data with Start Offset set to 64.

Or with sox and dd and pipes:

dd if=0001.wem ibs=64 skip=1 | sox --type raw --rate 44100 --encoding signed --endian little --bits 16 --channels 2 - 0001.wav