Hello! Qchan here again with another script.
If you're an audiophile and want the direct gamerips, you can go here:
http://www.smashcustommusic.com/game/2492
Now, if you want to download the entire soundtrack from that site (and any other game rip on that site), you can use my Linux/Unix/Mac script to do so.
#!/bin/bash
# If the parameters aren't blank
if [[ $1 != "" ]]; then
# Save base name
BASE=`echo $1 | awk -F '/' '{print $3}'`
# Ping URL
echo "Connecting to host..."
ping -c 1 -w 5 "$BASE" &>/dev/null
# If the URL is a real URL
if [[ $? -eq 0 ]]; then
# Grab links from URL
curl $1 > /tmp/testfile
# For each download in the file
for x in `cat /tmp/testfile | grep -E 'a href=\"/[0-9]{1,5}' | awk -F '"' '{print $2}'`
do
# Download name
FILENAME=`cat /tmp/testfile | grep -m 1 "$x" | sed -n 's:.*<a href.*>\(.*\)</a>.*:\1:p'`
# Download file
wget $BASE/brstm$x -O ./"$FILENAME.brstm"
# Convert file names to safe file names (helps with conversion!)
mv "$FILENAME.brstm" $(echo "$FILENAME.brstm" | sed -e 's/[^A-Za-z0-9._-]/_/g')
# Debug
#echo
#echo "Filename : $FILENAME"
#echo "BASE URL : $BASE"
#echo "FULL URL : $1"
#echo "CURR URL : $BASE/brstm$x"
done
else
# Display error
echo "ERROR! $BASE is unreachable."
fi
else
# No parameter was given
echo "Please input a URL"
fi
To use the script, all you have to do is type: ./scriptfile.sh
http://www.smashcustommusic.com/game/2492
This script was designed specifically for smashcustommusic.com, and for it to work, you have to point the script to where the entire list of songs are located for whatever particular game you're trying to get the soundtrack of.
I.E.
Hyrule Warriors OST =
http://www.smashcustommusic.com/game/2492
Castlevania: Symphony of The Night OST =
http://www.smashcustommusic.com/game/537
etc.
You can find the entire game list here:
http://www.smashcustommusic.com/gamelist
If you're trying to convert the OST (BRSTM files) to FLAC, WAV, MP3, OGG, etc. Then I recommend you download LoopAudioConver. You can find that here:
http://www.lakora.us/brawl/loopingaudioconverter/
The Linux version of this program runs via Wine. It gives me problems, so I just run the converter through Windows. You're free to fiddle with it and maybe get it to work on your Linux/Unix/Mac box.
There is another way to convert BRSTMs on Linux/Unix/Mac. You can compile vgmstream! When you compile it, it also creates a plugin for Audacious and you can just play the files directly!
Just go here to get the source:
http://sourceforge.net/projects/vgmstream/
Follow these directions to compile:
sudo apt-get install audacious-dev libmpg123-dev libvorbis-dev libglib2.0-dev libgtk2.0-dev libpango1.0-dev autoconf automake libtool gcc make
./bootstrap
./configure
make -f Makefile.unix
sudo make -f Makefile.unix install
If you don't want to bother compiling, you can get the precompiled binaries here:
http://sourceforge.net/projects/vgmstream/
You can get the DLLs here:
http://hcs64.com/files/vgmstream_external_dlls.zip
Then all you have to do is type:
./test.exe -o soundfile.wav soundfile.brstm
To automate the process, you can do something like this:
~/home/qchan/Hyrule Warriors/~$>for x in `dir *.brstm`; do ../vgmstream-r1040-test/test.exe -o `echo $x | cut -d. -f1`.wav $x;done
This is assuming you're using the precompiled vgmstream frontend linked above. It also assumes the folder is in your home directory. Edit the above as needed.