Sunday, November 07, 2004 12:34 AM bart

Converting a large series of music files to .wma format

Today, I performed a setup of the Windows Media Services on Windows Server 2003 for some testing. However, one of the problems you might come around if you try this is the fact that .mp3 files for example are non-streamable by the Windows Media Services. Fortunately, a tool called the "Windows Media Encoder" can be downloaded from the Microsoft website to do this conversion. However, this tool only allows to convert one file at a time, which is not handy if you have a bunch of files that you want to convert. Luckily, there is a also an SDK (see http://www.microsoft.com/downloads/details.aspx?FamilyID=000a16f5-d62b-4303-bb22-f0c0861be25b&DisplayLang=en) that allows you to program against the Encoder SDK. Conversion of files using the SDK is pretty simple and if you don't want to write the code yourself, there is a very handy VBS script included in the SDK called Wmcmd.vbs. God, I like this :-). A quick sample:

wmcmd -input c:\wmpub\wmroot -output c:\wmpub\mymusic -profile a64

About 10-15 seconds per music file and you're ready to start streaming. The only problem I still have to solve is the tagging of the files, but that's something for later. For the moment, I'm writing some C# code to create a screen-capturing application (I know Microsoft Producer has this, but I'd like to find out how to accomplish a really good result for demo-recordings).

I'll keep you posted guys.

Del.icio.us | Digg It | Technorati | Blinklist | Furl | reddit | DotNetKicks

Filed under:

Comments

No Comments