Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials

Thread Tools Display Modes
Old 30-05-2022, 14:26
Masquerade's Avatar
Masquerade Masquerade is offline
Registered User
Join Date: Jan 2020
Location: Monte d'Or
Posts: 744
Thanks: 168
Thanked 786 Times in 391 Posts
Masquerade is on a distinguished road
Thumbs up How to correctly process audio from KTSL2STBIN archives

How to correctly process audio from KTSL2STBIN archives

Good evening everyone.

Today I will show you the correct method for compressing KTSL2STBIN audio archives. They are commonly seen in Koei Tecmo games like Atelier Ryza and Atelier Sophie.

KTSL2STBIN archives contain Ogg Vorbis audio which we can compress with Oggre library by ProFrager. However, in their stock state, the KTSL2STBIN archives do not contain normal ogg audio, similar to that of FMOD or WWise.

The process to compress them correctly is as follows:

  • Download the KVS Toolbox uploaded here. This contains all the required files for the process.

Step 1: Extracting the archive
  • These archives contain individual KVS files. These are the audio files. We need to unpack them from the KTSL2STBIN archive.
  • Open command prompt and run:
    kvs_extract <your archive>
    kvs_extract BGM.ktsl2stbin
  • This will produce a folder called "out" containing several KVS files.

Step 2: Converting to Ogg Vorbis
  • Open kvs2ogg.exe.
  • Go to "Tool(T)" tab and click "kvs Search(F)":
  • In the window that appears, select "Browse.." and choose the "out" folder you generated in Step 1.
  • Click "Search"
  • Once the full list of KVS files has loaded, right click anywhere in the table and go to "All Convert(B)" then from that menu, click "Convert(C)"
  • A file explorer window will open. You have to do nothing here, just click "Save" in the bottom right corner of that window.
  • The KVS data will be converted to OGG. Once the program is done, you will get a message box with some nonsense text. Don't panic, the tool is Japanese so because I don't have JP language pack installed in my Windows, the text does not display correctly.
  • Close KVS2OGG.
  • Go into the "out" folder and delete all of the KVS files. They are no longer needed.

Step 3: Bincat + Patch
  • Still inside the "out" folder, open command line and run:
    bincat *.ogg ..\<your archive name>.<your temp extension>
    bincat *.ogg ..\BGM.KTTMP (Koei Tecmo Temp)
  • After bincat has finished, close command line and delete the out folder. It's no longer needed.
  • Now, open command line in the same folder that contains your bincat output and your original KTSL2STBIN archive.
  • Run:
    hdiffz-x64 -c-lzma2-9 <bincat output> <original KTSL2STBIN archive> <diff file>
    hdiffz-x64 -c-lzma2-9 BGM.KTTMP BGM.KTSL2STBIN BGM.KTDiff
  • All done!

This is the end of the process. Now, we should have 3 files:
  • The KTTMP file.
  • The original KTSL2STBIN file.
  • The KTDiff Patch.
You can now delete the KTSL2STBIN file.

The KTTMP file you can compress with oggre.

The KTDiff file you must retain. After decompression/installation of your final compressed archive, you must run hpatchz (included in KVS Toolbox) to restore the original KTSL2STBIN file. Fortunately, the patches are very small in size so including them in your conversion will have extremely minimal impact on final size.

Thanks for reading!

Last edited by Masquerade; 30-05-2022 at 23:56.
Reply With Quote
The Following 3 Users Say Thank You to Masquerade For This Useful Post:
kj911 (30-05-2022), p_tonino (28-06-2022), ScOOt3r (31-05-2022)
Sponsored Links
Old 28-06-2022, 23:03
p_tonino p_tonino is offline
Registered User
Join Date: Jun 2022
Location: australia
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
p_tonino is on a distinguished road
Hi and thanks for the post. Trying this right now am I correct to believe I will be able to swap a few original kvs files around and repack to load in the game to switch the tracks like in Blue Reflection SL?

Trying it now and will find out I guess.

RIP no luck, seems not possible.

Last edited by p_tonino; 28-06-2022 at 23:16.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to correctly process WWise Vorbis Audio | Guide + WemTool Masquerade Conversion Tutorials 22 11-05-2022 08:50
Anno 1701 won't load, just get a blue screen! Shadow22 General Gaming 5 28-08-2012 12:52
CPU jumps up to 100% now, not before dav6 Software 11 24-05-2008 03:33
S.T.A.L.K.E.R. Shadow of Chernobyle - Crashing Cpt.Canuck General Gaming 4 23-03-2007 12:01
The Godfather, Game -- Unusual Error dvdmations PC Games 4 05-05-2006 03:04

All times are GMT -7. The time now is 01:48.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.
Copyright 2000-2020, FileForums @ https://fileforums.com