mirror of
https://github.com/Escartem/AnimeWwise.git
synced 2026-06-05 07:50:23 +08:00
renamed folders
This commit is contained in:
@@ -5,8 +5,8 @@ Extract audio from .pck and .hdiff to mp3 with this tool. It can in theory extra
|
||||
|
||||
1. Get repo by cloning it -> `git clone https://github.com/Escartem/WwiseExtract` or [downloading it](https://github.com/Escartem/WwiseExtract/archive/refs/heads/master.zip)
|
||||
2. Install dependencies -> `pip install -r requirements.txt`
|
||||
3. Place all of your `.pck` files in the *original* folder and `.pck.hdiff` in the *hdiff* folder
|
||||
> ⚠️ If you want to extract an hdiff content, you must place the pck file with the same name before patch in the original folder, pck's that do not have a corresponding hdiff file will be extracted normally, when they do have a corresponding hdiff file, only the hdiff file content is extracted and not the full pck
|
||||
3. Place all of your `.pck` files in the *audio* folder and `.pck.hdiff` in the *patch* folder
|
||||
> ⚠️ If you want to extract an hdiff content, you must place the pck file with the same name before patch in the *audio* folder, pck's that do not have a corresponding hdiff file will be extracted normally, when they do have a corresponding hdiff file, only the hdiff file content is extracted and not the full pck
|
||||
4. Start the program -> `python extract.py`
|
||||
5. After finishing, everything will be in the *output* folder in the mp3 format (ogg may be added later)
|
||||
|
||||
|
||||
@@ -32,8 +32,8 @@ def main():
|
||||
shutil.rmtree("output")
|
||||
|
||||
# Get all files to process
|
||||
hdiff_files = [f for f in os.listdir("original") if f.endswith(".pck") and os.path.exists(f"hdiff/{f}.hdiff")]
|
||||
alone_files = [f for f in os.listdir("original") if f.endswith(".pck") and not os.path.exists(f"hdiff/{f}.hdiff")]
|
||||
hdiff_files = [f for f in os.listdir("audio") if f.endswith(".pck") and os.path.exists(f"patch/{f}.hdiff")]
|
||||
alone_files = [f for f in os.listdir("audio") if f.endswith(".pck") and not os.path.exists(f"patch/{f}.hdiff")]
|
||||
files = [*hdiff_files, *alone_files]
|
||||
print(f"{len(files)} file(s) to extract")
|
||||
iteration = 0
|
||||
@@ -58,7 +58,7 @@ def main():
|
||||
if os.path.exists("temp"):
|
||||
shutil.rmtree("temp")
|
||||
os.makedirs(path("temp"), exist_ok=True)
|
||||
shutil.copy(f"original/{file}", f"temp/{file}")
|
||||
shutil.copy(f"audio/{file}", f"temp/{file}")
|
||||
|
||||
output_path = "original_decoded"
|
||||
if alone:
|
||||
@@ -92,7 +92,7 @@ def main():
|
||||
curr += 1
|
||||
|
||||
# update files
|
||||
shutil.copy(f"hdiff/{file}.hdiff", f"temp/{file}.hdiff")
|
||||
shutil.copy(f"patch/{file}.hdiff", f"temp/{file}.hdiff")
|
||||
shutil.move(f"temp/{file}", f"temp/{file.split('.')[0]}.original.pck")
|
||||
|
||||
# prepare args
|
||||
|
||||
Reference in New Issue
Block a user