forked from Vextil/Wwise-Unpacker
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-renamed folders -restructured scripts -quite mode for tools -unpack wav before converting to mp3 if dest_wav folder doesn't exist -recursive wem->wav and wav->mp3 processing -extracted files are not removed automatically -skipping already extracted files when the scripts are called multiple times
- Loading branch information
1 parent
932e8d7
commit c4cc66d
Showing
11 changed files
with
129 additions
and
198 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,5 @@ | ||
# Windows image file caches | ||
Thumbs.db | ||
ehthumbs.db | ||
|
||
# Folder config file | ||
Desktop.ini | ||
|
||
# Recycle Bin used on file shares | ||
$RECYCLE.BIN/ | ||
|
||
# Windows Installer files | ||
*.cab | ||
*.msi | ||
*.msm | ||
*.msp | ||
|
||
# Windows shortcuts | ||
*.lnk | ||
|
||
# ========================= | ||
# Operating System Files | ||
# ========================= | ||
|
||
# OSX | ||
# ========================= | ||
|
||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# Thumbnails | ||
._* | ||
|
||
# Files that might appear on external disk | ||
.Spotlight-V100 | ||
.Trashes | ||
|
||
# Directories potentially created on remote AFP share | ||
.AppleDB | ||
.AppleDesktop | ||
Network Trash Folder | ||
Temporary Items | ||
.apdisk | ||
|
||
*.wem | ||
*.pck | ||
*.bnk | ||
*.wav | ||
*.mp3 |
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
@echo off | ||
|
||
set TYPE=%1 | ||
echo === Wwise_Unpacker v1.3 === | ||
echo. | ||
echo == Unpacking to '%TYPE%' | ||
echo. | ||
|
||
goto:start | ||
|
||
rem ================= Methods | ||
:UNPACK_WAV | ||
mkdir dest_raw > nul 2>&1 | ||
mkdir dest_wav > nul 2>&1 | ||
|
||
echo ---- Running 'quickbms': Extract raw files | ||
for %%a in ("Game_Files\*.pck") do (Tools\quickbms.exe -q -k Tools\wwise_pck_extractor.bms "%%a" "dest_raw") | ||
echo. | ||
|
||
echo ---- Running 'bnkextr' | ||
for %%b in ("Game_Files\*.bnk") do ( | ||
Tools\bnkextr.exe "%%b" > nul | ||
ren *.wav *.wem | ||
move *.wem "dest_raw" | ||
) | ||
echo. | ||
|
||
echo ---- Running 'vgmstream-cli': Convert to wav | ||
for /r "dest_raw" %%c in ("*.wem") do (Tools\vgmstream-cli.exe -o "dest_wav\%%~nc.wav" "%%c" > nul) | ||
echo. | ||
goto:eof | ||
|
||
|
||
:UNPACK_MP3 | ||
if not exist dest_wav ( | ||
call :UNPACK_WAV | ||
) | ||
|
||
mkdir dest_mp3 > nul 2>&1 | ||
|
||
echo ---- Running 'ffmpeg': Convert to mp3 | ||
for /r "dest_wav" %%a in ("*.wav") do ( | ||
echo Converting %%~nxa | ||
Tools\ffmpeg.exe -loglevel error -y -i "%%a" -acodec libmp3lame -q:a 0 -y "dest_mp3\%%~na.mp3" | ||
) | ||
echo. | ||
goto:eof | ||
|
||
|
||
rem ================= Main | ||
:start | ||
if "%TYPE%"=="wav" ( | ||
call :UNPACK_WAV | ||
) | ||
if "%TYPE%"=="mp3" ( | ||
call :UNPACK_MP3 | ||
) | ||
|
||
|
||
rem ================= Footer | ||
echo ------------------------------------------------------------- | ||
echo == Unpack finished! Files should be in the 'dest_%TYPE%' folder | ||
echo ------------------------------------------------------------- | ||
|
||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@echo off | ||
unpack mp3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@echo off | ||
unpack wav |