Giter VIP home page Giter VIP logo

rs2-audio-extractor's Introduction

rs2-audio-extractor

Decode Wwise audio files to Ogg format while preserving original file names and project structure where possible.

Works with Rising Storm 2: Vietnam & Killing Floor 2. May also work with other games that provide Wwise metadata (txt) files.

Good performance by taking advantage of multiple CPU cores by using multiprocessing.

Usage

Show help:

extract.exe --help

Parse files in WwiseAudio and write output in output in Ogg format:

extract.exe "C:\...\WwiseAudio" "C:\output"

Concrete usage example commands

First open PowerShell or cmd.exe in the folder where you extracted extract.exe

Extract KF2 Russian audio:

.\extract.exe J:\SteamLibrary\steamapps\common\killingfloor2\KFGame\BrewedPC\WwiseAudio\Russian\ H:\KF2Audio_Russian

Extract KF2 English audio:

.\extract.exe J:\SteamLibrary\steamapps\common\killingfloor2\KFGame\BrewedPC\WwiseAudio\Windows H:\KF2Audio_English

Extract RS2 audio:

.\extract.exe "C:\Program Files (x86)\Steam\steamapps\common\Rising Storm 2\ROGame\BrewedPC\WwiseAudio\Windows" H:\RS2_Audio

Download

From releases: https://github.com/tuokri/rs2-audio-extractor/releases

Troubleshooting

ww2ogg errors or errors opening decoded files

The program output directory will have paths longer than the max default Windows path limit.

Fix by enabling Win32 long paths and rebooting.

https://www.howtogeek.com/266621/how-to-make-windows-10-accept-file-paths-over-260-characters/

Technical details

Third party software used:

QuickBMS: https://aluigi.altervista.org/quickbms.htm

The extractor also uses my custom forks of the following software:

ww2ogg: https://github.com/tuokri/ww2ogg

revorbstd: https://github.com/tuokri/revorbstd

rs2-audio-extractor's People

Contributors

tuokri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

xgmmp

rs2-audio-extractor's Issues

program not working even though i enabled 260 character limit (im using a laptop)

Traceback (most recent call last):
File "concurrent\futures\process.py", line 243, in _process_worker
File "extract.py", line 189, in decode_bank
File "subprocess.py", line 420, in check_output
File "subprocess.py", line 501, in run
File "subprocess.py", line 966, in init
File "subprocess.py", line 1435, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "concurrent\futures\process.py", line 243, in _process_worker
File "extract.py", line 175, in decode_banks
File "concurrent\futures_base.py", line 438, in result
File "concurrent\futures_base.py", line 390, in __get_result
FileNotFoundError: [WinError 2] The system cannot find the file specified
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "extract.py", line 514, in
File "extract.py", line 388, in main
File "concurrent\futures_base.py", line 438, in result
File "concurrent\futures_base.py", line 390, in __get_result
FileNotFoundError: [WinError 2] The system cannot find the file specified
[17596] Failed to execute script 'extract' due to unhandled exception!
Exception in thread Thread-1 (_target):
Traceback (most recent call last):
File "multiprocessing\connection.py", line 317, in _recv_bytes
Traceback (most recent call last):
BrokenPipeError: [WinError 109] The pipe has been ended
File "multiprocessing\connection.py", line 317, in _recv_bytes

During handling of the above exception, another exception occurred:

BrokenPipeError: [WinError 109] The pipe has been ended
Traceback (most recent call last):

During handling of the above exception, another exception occurred:

File "threading.py", line 1009, in _bootstrap_inner
Traceback (most recent call last):
File "threading.py", line 946, in run
File "extract.py", line 306, in id_to_filename_worker
File "logbook\queues.py", line 276, in _target
File "", line 2, in get
File "logbook\queues.py", line 298, in dispatch_once
File "multiprocessing\managers.py", line 818, in _callmethod
File "logbook\queues.py", line 565, in recv
File "multiprocessing\connection.py", line 255, in recv
File "", line 2, in get
File "multiprocessing\connection.py", line 326, in _recv_bytes
File "multiprocessing\managers.py", line 818, in _callmethod
EOFError
File "multiprocessing\connection.py", line 255, in recv

During handling of the above exception, another exception occurred:

File "multiprocessing\connection.py", line 326, in _recv_bytes
Traceback (most recent call last):
EOFError
File "logbook\handlers.py", line 216, in handle
File "logbook\queues.py", line 511, in emit
File "", line 2, in put_nowait
File "multiprocessing\managers.py", line 817, in _callmethod
File "multiprocessing\connection.py", line 211, in send
File "multiprocessing\connection.py", line 285, in _send_bytes
BrokenPipeError: [WinError 232] The pipe is being closed
Logged from file C:\Users\User\extract.py, line 315

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.