node-pck-audio-extractor
node-pck-audio-extractor copied to clipboard
Multi platform, Multi core, Multi format, Converter for .pck files into various workable files
Node PCK Audio Extractor
Multi platform, Multi core, Multi format, Converter for .pck files into various workable files
Features
- Multi format export [
.wav
,.mp3
,.flac
] - Multi platform (uses the deps installer here)
- Multi threading support
- Multi BMS script support (see options)
Requirements
- Node 12+
- Yarn
- ffmpeg [installed by deps installer]
- quickbms & scripts [installed by deps installer]
- vgmstream [installed by deps installer]
- git (for fetching the deps installer)
Deps installer requirements
More info here
Usage
- Find your audio files, For example for Genshin Impact
GenshinImpact_Data/StreamingAssets/Audio/GeneratedSoundBanks/Windows
Move the .pck files you want to extract into the input
folder. The files must be directly inside the folder - no subdirectories.
- Install dependencies
- Windows run the
setup.cmd
(you can double click it or run though command line similar to MacOSX and Linux) - MacOSX or Linux run the script
./setup
- Run the program
- Windows run the
decode.cmd
(you can double click it or run though command line similar to MacOSX and Linux) - Any platform run with node from terminal
node decode.js
The files in ./input
will be converted to .wav files by default inside ./output
.
Options
Extra encoding
You can pass an optional argument to export the audio in different formats.
Valid arguments are flac
, mp3
Can be entered multiple times for multiple export
Example
node decode.js --extraEncode flac
node decode.js -e flac -e mp3
Encoding details
flac: lossless, 16bit, 44100 sample rate
mp3: 320kbit/s, 44100 sample rate
Customs bms script
The deps installer installs the latest collection of bms scripts to ultilize, you can pass an argument to set this.
default: wavescan.bms
node decode.js --bmsScript custom.bms
node decode.js -b custom.bms