d o t c o m b o o m ' s g u i d e o n EXTRACTING MUSIC FROM WII GAMES ( o n L i n u x ) WHAT YOU NEED - a wbfs or iso file for the game (from USB Loader GX, WiiFlow, etc) - dolphin emulator (sudo add-apt-repository ppa:dolphin-emu/ppa && sudo apt update && sudo apt install dolphin-emu on Ubuntu) - ffmpeg OR Looping Audio Converter (https://github.com/libertyernie/LoopingAudioConverter/releases) and mono (sudo apt install mono-complete on Ubuntu) 1. In Dolphin Emulator, if you haven't already, select the path with your Wii games so they show in the main window. 2. Right click on the game you want to extract music from, and select Properties 3. Go to the Filesystem tab, and find the folder with the BRSTM files. In my case, this folder is simply called Sound. 4. Right click on the Sound folder and choose Extract Directory... 5. Choose a folder to extract the music to. So now you have the BRSTM files. If you have VLC you can listen to them without doing any converting. However, for better support we'll want to convert these files to a regular audio file. To do this we can use ffmpeg or Looping Audio Converter. The ffmpeg method is slightly easier and doesn't require mono, but the Looping Audio Converter can separate the beginning part and the seamless looping part of the BRSTM files, and also can make an extended track with multiple loops, not unlike BrawlBRSTMs3 X's extended mixes. FFMPEG METHOD: 1. Bring up a terminal and navigate to where you saved the BRSTM files. 2. Copy and paste this command: for i in *.brstm; do ffmpeg -i "$i" "${i%.*}.mp3"; done 3. If you want to change the format, just change the "mp3" in the command to whatever your preference is. 4. Press enter. ffmpeg will convert each BRSTM file in the directory. And now you have converted the BRSTM files to your preferred music format. LOOPING AUDIO CONVERTER METHOD: 1. Open LoopingAudioConverter.exe with mono. Press OK to dismiss the error about certain programs not being found. 2. Click on Add Folder and choose where you saved the BRSTM files. 3. If you need to, type BRSTM in the "Only files ending with:" textbox and then click Filter. 4. Click on "..." next to the Output Directory and choose it. Preferably, this would be either an empty directory or where you saved the BRSTM files. 5. Set the Output Format to WAV. Other formats *might* work, but I've found WAV to be the most reliable. 6. Check the "Export segment before loop" and "Export loop segment" checkboxes if you want them. 7. If you want an extended track, you can increase the number of loops. 8. Finally, click Start. If all goes well, your WAV files will be in the output directory you set. Now since these are WAVs, which are uncompressed and may be quite large, you may wish to convert them to an MP3 or whatever format you prefer. The directions of that is basically the same as the converting the BRSTMs to MP3s using ffmpeg. 1. Bring up a terminal and navigate to where you saved the WAV files. 2. Copy and paste this command: for i in *.wav; do ffmpeg -i "$i" "${i%.*}.mp3"; done 3. If you want to change the format, just change the "mp3" in the command to whatever your preference is. 4. Press enter. ffmpeg will convert each WAV file in the directory. Last revision: 4/16/2018 (Rev 2.5)