Audio Conversion
There are high-quality free windows utilities to convert between different audio formats -- wma, wav, mp3, rm. I have links to them on this page. Also on this page I have some very simple batch files which convert all files in the current directory.
- Lame. (download). This free open-source utility converts wav to mp3. After installing it, I copy "lame.exe" and "lame_enc.dll" to c:/windows for convenience, so they're on the path.
- Windows Media Encoder 9. (download). This free utility from Microsoft converts things into wma.
- Mplayer. (download mplayer and codecs). This free open-source utility plays many types of media, so long as it has the right codec installed. It can also save streaming realmedia to disk (.rm), and convert that .rm diskfile into wav. Unfortunately it messes up filenames that have commas in them. I copy mplayer.exe into c:/windows for convenience, so it's on the paht.
- Real Alternative. (download). This free open-source player plays streaming realmedia. By installing it, you also get the realplayer codecs installed on your machine.
For each of the following batch files, I'd save the batch file in c:/windows for convenience, so it's on the path.
mp3-to-wav - download mp32wav.bat
Convert mp3 to wav. Requires lame.
for %%I in (*.mp3) do lame --decode "%%I" "%%~nI.wav"
mp3-to-wma - mp32wma.bat
Convert wmp3 to wma. Requires Windows Media Encoder.
for %%I in (*.mp3) do cscript.exe "/program files/windows media components/encoder/wmcmd.vbs" -input "%%I" -output "%%~nI.wma" -profile a128
rm-to-wav - rm2wav.bat
Convert rm realaudio to wav. Requires mplayer and codecs. Will screw up output filenames if they had commas in them.
for %%I in ("*.rm" "*.ram" "*.ra") do mplayer "%%I" -ao pcm:fast:file="%%~nI.wav" -vc null -vo null
wav-to-mp3 - wav2mp3.bat radio2mp3.bat
Convert wav to mp3. Requires lame
for %%I in (*.wav) do lame --preset extreme --priority 0 "%%I" "%%~nI.mp3"
// radio2mp3.bat: for converting wav into highly-compressed mp3 for %%I in (*.wav) do lame -h -V9 --priority 0 "%%I" "%%~nI.mp3"
wma-to-wav - wma2wav.bat wma2wav1.bat
Convert wma to wav. Requires mplayer.
// This goes in the file wma2wav.bat: for %%I in (*.wma) do call c:/windows/wma2wav1.bat "%%I" "%%~nI.wav" // This goes in the file wma2wav1.bat: mplayer %1 -ao pcm:fast:file="temp.wav" -vc null -vo null ren temp.wav %2
Here I'm putting the output of mplayer into "temp.wav" before renaming it to the real filename. This gets around the problem that mplayer screws up filenames with commas in them.