Blog Posts from April 21, 2004 (page 1 of 1)
The first thing I need for my DJ idea is to be able to broadcast content. This means a variety of things, but first and foremost is music. The RIAA provides special webcasting licenses as long as the webcaster meets specific criteria. (I’m guessing I’ll have to talk to our legal dept. before I actually broadcast any music). The criteria is pretty acceptable – I could easily build a bot that streams music 24/7 from my own ripped CD collection in accordance with the RIAA’s criteria.
Of course, all that ripped music is on my personal home machine and I have no interest in copying it all up to my media server. What I really want to do is broadcast from my home machine to the server, which in turn broadcasts to potential listeners. From what I understand, I need to use the Windows Media Encoder (or an app built with the WMEncoder SDK) to push media to the server for rebroadcast. No problem – building a bot to do that should be no big deal. Except that it is a big deal.
WMEncoder can only work with two sources of media (not including screen captures, HTML and script which are not applicable to this post) files and devices. Since I’m mixing together the contents of multiple files, I can’t use a single file as a source. Which means a device. The problem lies in the fact that audio apps are designed to write to audio rendering devices (like the sound card) not to audio capture devices. What I need is a audio “loopback” device that takes the audio sent to the virtual audio rendering device and sends it directly to the virtual audio capture device. Thus, the output of the bot is fed as input into the encoder. So far, I’ve found Virtual Audio Cable from NTONYX that looks like it will do the trick (I actually dug out the windows driver book and entertained very brief thoughts of building my own, but in the end, I’d rather just spend the $50 for VAC).
I’m not sure if I’m going to use DirectSound or DirectShow to build my broadcast bot. I’m leaning towards DirectShow since it seems more suited to this sort of problem (even though it is the only piece of DirectX w/o a managed wrapper). I just wish there was a Windows Media Broadcast rendering filter that didn’t require the use of VAC or the encoder.
Anyone out there have any experience with DirectShow?
But then I was silenced by a floppy disk.
My friend Tom, who hosts DevHawk and TechieWife for me, is on a contract job out-of-state and couldn’t remotely diagnose why the web server that hosts this blog wouldn’t reboot after a power-outage. Turns out there was a floppy in the drive and go figure, the server tried to boot from the floppy. So I’ve been offline all week. Still, I have to give Tom props as
- He hosts me for free
- I have admin access to the machine
- He’s down to try new things
Being on .NET Rocks last week reminded my a little of my old college DJ days. I’ve got an idea I’d like to play around, but I’d need a media server. That’s where #3 above comes into play. I ask Tom and I receive. No idea what I’m going to do with it yet, but now I have a media server to play with. Thanks, Tom…You Rock!