converting mp3 and wav to streaming media



firstly, i think i should say this: there is a program that will do that for you:
secondly, check these scripts out:
especially take a look at KPlaylist, GetID3() and on the next page whimpy, and StreamMP3...
Publisher`s Description for MP3 RM Converter

MP3 RM Converter supports batch conversion between MP3, WAV, WMA and OGG. And more important, MP3 RM Converter support RM format, you can convert your MP3, WMA, WAV and OGG files to RM files. MP3 RM Converter converts the audio files digitally-not through the soundcard-which enables you to make perfect copies of the originals. Converting your files is just a button click away because this program is user-friendly-directing the users from start to finish. You'll be an experter in no time! Run stably on Windows 98/NT/Me/2K/XP/2003.
for 20 bucks you can get it from here:
this enables you to convert any file to rm using PHP and system commands on a win based server, if the server is unix based thought, you will need a Unix command line tool to do this... but it still can be done (I'm somewhat sure that you can do it in PHP, just not exactly sure as to how)