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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 26-02-2022, 15:38
Masquerade's Avatar
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,167
Thanks: 284
Thanked 1,358 Times in 615 Posts
Masquerade is on a distinguished road
Thumbs up How to properly compress FMOD vorbis audio

How to properly compress FMOD vorbis audio

Good evening everyone. I will not spend too long writing up this one since I detailed a lot in the WWise guide.

Like I noted in my guide for WWise audio, the WAV version of FMOD can be compressed with MSC just fine. FSB files contain OGG audio or WAV (and in some cases, both). OGGs, when done correctly, can be compressed with Oggre, saving you some space.

Here is the guide for how to properly compress FMOD audio. Part credits go to sowwyitsanalt for helping dig up some of these tools to help with the process.

Guide

Step 1: if you have an FMOD .bank file
  1. Dump the bank to an fsb file using BankDumper.
    Code:
    BankDumper Master.bank Master.FSB

Step 2: now that you have a file that starts with FSB5 header

  1. Download the attachment from below - "Python-FSB5.7z". This is a modified version of this library used to dump FMOD audio into playable OGGs and WAVs. Thanks to anadius for the modifications.
  2. Extract the 7z.
  3. Install Python if you do not have it installed, you will need it to run the script.
  4. Open a command window in the folder containing your bank
  5. Run: extract.py "<fsb file>" -o "<output folder"
    Code:
    extract.py Master.FSB -o Master
  6. Pray that it works. If you get an error message, I would stop using this bank and move on, but it's up to you.

Step 3: Building the big ogg file
  1. Use Bincat by Aluigi to concatenate the oggs in the output folder into a single file. If there are wavs, concatenate them into a separate file.

    Code:
    bincat Master\*.ogg Master.TMP
    Code:
    bincat Master\*.wav Master.TMP2

Step 4: OGG to FMOD
  1. At this point, we are working on our recompression steps. Use oggvorbis2fsb5 to turn your big ogg file into an FMOD audio file.
    Code:
    oggvorbis2fsb5 Master.TMP Master.DAT
    This tool will crash if any non OGG data is in the big file, so this is why we separate our wavs. If you have any wav data, use Bincat to combine the output from oggvorbis2fsb5 with the WAV TMP file you made earlier.
    Code:
    bincat Master.DAT Master.TMP2 Master.FSB_NEW

Step 5: Make a patch to the original bank
  1. Depending on your output from step 4, you will either have a DAT file or a FSB_NEW file. You can now use XDelta or HDiffZ to make a patch from this file to the original bank. See how small it is!

    If you use this method for installation, follow step 4 after extracting your archive to build the FMOD compatible data then instead of making the patch, apply the patch you made in step 5 to restore the original file.



Hopefully you now understand the process of compressing FMOD audio.

Referring to the above method, Master.TMP will be able to be compressed with oggre leading to smaller size than if you ran LZMA or whatever over the BANK.

This method is hit and miss, since there can be frequent errors with the python script. It isn't perfect.

If you would like a visual example, with screenshots and demonstration on a sample bank, please let me know and I shall provide.
Attached Files
File Type: 7z Python-FSB5.7z (447.4 KB, 53 views)

Last edited by Masquerade; 26-02-2022 at 15:55.
Reply With Quote
The Following 9 Users Say Thank You to Masquerade For This Useful Post:
:( Sad8669 (26-02-2022), dixen (27-02-2022), ffmla (28-02-2022), Gehrman (26-02-2022), Junior53 (24-06-2023), kj911 (07-04-2022), rambohazard (04-03-2022), Wanterlude (26-02-2022), wareck (15-04-2024)
Sponsored Links
 

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 25 01-09-2024 23:45
Anno 1701 won't load, just get a blue screen! Shadow22 General Gaming 5 28-08-2012 13:52
CPU jumps up to 100% now, not before dav6 Software 11 24-05-2008 04:33
air force delta snake DC Games 0 15-04-2001 05:34
air force delta snake DC Games 1 13-04-2001 21:04



All times are GMT -7. The time now is 08:04.


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