Audio Conversion

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.

 
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值