Jaycatt Nico's Streaming Primer
Jaycatt Nico's Streaming Primer is no longer available at blog.slmusic.org and I could not find it elsewhere on the interwebs. I asked Jaycatt for a copy of it to post here. It's "old" but the information is still valid.
Streaming Live Music in Secondlife
A primer by Jaycatt Nico
Version 1.0 - 10/18/06
Hello there! I've been playing live music in Secondlife (SL) for almost two years now, and the question I get asked most is "Hey, I'm a musician in real life (RL) too! How can I get started playing music here in SL?" I decided to make this Notecard to explain some of the process and steps involved. Now, this Notecard only deals with PCs (not Macs) because that's where my experience is. Hopefully someone will develop a Macintosh primer soon.
How does music get into SL anyway?
Whether it's a radio station, a DJ playing music, or a live musician, music ends up in SL the same way. Each plot of land in SL has a "Media URL" (a web address, such as "http://33.42.152.1:8000") associated with it (actually two; one for audio and one for video, but we'll focus just on the "audio" one here). The owner of the plot, or qualified members of the Group that owns the land have the ability to change this URL. Sometimes, an object can also be used to change this URL if the owner or member has set one up. The URL connects to what is typically called a SHOUTcast (or ICEcast) stream. You may have run into SHOUTcast streams before outside of SL, where they are sometimes referred to as "internet radio stations".
Do I need any hardware to do it?
Well, at a minimum, you simply need to have a way of recording sound. Keep in mind that the quality does depend on what equipment you have. It's possible to buy a $10 microphone, set it up to record whatever happens in the room, and start playing away, but the quality can be pretty poor. Ideally, you will want to provide inputs for each instrument and microphone you will be using. If you're just singing a capella, you might be fine with a single microphone. But, add in a guitar, or piano, or whatever, and you'll want a way to combine the sounds. The best way to do this is with a mixer, which you might have already. The mixers puts all the different sound sources together and sends a single signal to the PC. There are all kinds of mixers, if you don't have one, ranging anywhere from $50 to $500 or more. The mixer I use, a Phonic Helix Board 12 USB Mixer (http://tinyurl.com/y6aalg) actually connects to the PC with a USB cable, providing a digital signal, instead of plugging directly into the PC's microphone jack. However, it runs about $200.
Okay, I've got the equipment I need to get the audio into the computer. What software do I need to collect it?
I recommend using plug-ins for Winamp, because Winamp is free. Winamp can be downloaded at http://www.winamp.com. There are two different plug-ins for Winamp that can be used to listen to the audio and send it to a URL: the "SHOUTcast DSP Plug-In" and the "Oddcast Plug-in". You can get by with the DSP Plug-in for most cases, but if a venue is looking for an ICEcast stream, and not a SHOUTcast one, you would be better off with Oddcast. Oddcast will do both, but it takes a little more set-up time. You can even have both installed, if you want, and switch between them.
No one's told me I need to use ICEcast, I think I'll use the "SHOUTcast DSP Plug-in".
It's a good place to start! After Winamp is all installed, you can download the Plug-in here: http://tinyurl.com/9me9w. Contact me if the link does not work and I can help find it. Install the plug-in, and select the "Nullsoft SHOUTcast Source DSP" choice under Preferences-->Plug-ins. I'll explain what to do with the settings later. You'll eventually need to work with the "Output", "Encoder", and "Input" tabs.
I think I'll install the Oddcast one instead, how do I do that?
Setting up the Oddcast Plug-in so that you can use an MP3 stream is a bit trickier (the SHOUTcast DSP Plug-in does it by default) but if you ever have the need to send an ICEcast stream, then you'll want to be using Oddcast. The latest version can be downloaded here: http://tinyurl.com/y88g7o. Contact me if the link does not work and I can help find it. Next, visit this link: http://tinyurl.com/yxd2ks. Save the "lame_enc.dll" file to your C:\Program Files\Winamp directory. Now, open up Winamp, and select the "oddcast DSP v3" choice under Preferences-->Plug-ins. I'll explain what to do with the settings later.
Great, I've got it all installed... Now, how do I get the audio I'm collecting out to a URL then?
First, a bit of background. When people visit a plot of land in SL that has a "media URL" set on it, their computer connects to the URL (the "server") you are using and starts requesting data from it. Your own PC can be the "server", but you have to have a pretty fast internet connection to keep up with the demand. Most cable and DSL lines won't cut it. Some college and business internet connections might. Keep in mind you may have upwards of 30-60 people attempting to listen in, and that's a lot of data to "upload" to people. The other alternative is to "rent" bandwidth on a remote PC, and people will connect to that. He's not paying me anything to say this (honest!), but since you are using Secondlife, the cheapest, most robust rental I've found is managed by "Jamie Otis" (Search for him in-world and I believe there is a kiosk for renting on his "Picks"). At the time of this primer, he charges $4000L a month (approximately $14 US). You can also go out with Google and search for "shoutcast hosting", but most of those services are expensive (somewhere between $20-$80 a month).
I'm feeling lucky and techy (or are very short on funds) and want to use my own PC as the "server"!
This can be pretty tricky to set up, but I'll describe what needs to be done here, without getting too specific (since hardware and internet connections vary). Odds are you have a "router" that your internet connection plugs into, and your computer is connected to the router. Most routers have a firewall in place, and you will need to configure your router to allow traffic attempting to connect to a certain "port" (ie: http://22.115.6.12:8000, where "8000" is the port) to be directed to your PC which is running the server software. Depending on which router you have, this can be easy or difficult (or sometimes, not even necessary!) You will also need to know the IP of your internet connection (which can be found here: http://www.whatsmyip.org/ and will show up at the top of the screen). The server software can be found here: http://tinyurl.com/ygwre6. Contact me if the link does not work and I can help find it. Once the server is set up, there's a little configuration involved but it's not too tricky. There's a text file you can edit, picking which port and password. Contact me if you get this far (if I haven't already confused you) and I might be able to help walk you through the rest of it... ;)
Okay, I think I'm ready... I know the IP address, the port, and the password and now want to start sending audio to it!
Great! All you need to do is configure the plug-in you are using.
I'm using the "SHOUTcast DSP Plug-in", how do I set it up?
First, let's look at the "Output" tab. Choose "Output 1" and make sure the "Connection" (not "Connect"!) button is selected. In the "Address" box, put the IP address or URL you got from your shoutcast server provider (either Jamie Otis's or other). If you are using your PC as the server, leave it as "localhost". Same with "Port" and "Password"; use the ones provided by your provider or what you picked if you are running your own server. On the "Encoder" tab, choose "MP3 Encoder" and for the "Encoder settings" use "96kbps, 44.100kHz, Stereo". If people complain of the audio cutting out or skipping, you can choose the setting for "64kbps" instead. On the "Input" tab, change the "Input Device" to the input your audio will be coming from (could be "USB Audio" for instance, or "Soundcard input".). Check the levels here as well, to make sure you're getting a strong signal. Don't forget the "Push to Talk" and "Lock" buttons, in case they are needed to get the signal to show up! Now, go back to the "Output" tab, and click "Connect". Hopefully, everything will connect, and on the "Main" tab, you should see the Status say something like "Encoding", etc. And you're set!
I'm using the Oddcast Plug-in, how do I set that one up?
Click the "Add Encoder" button, and right click on the encoder it created and select "Configure". On the "Basic Settings" part, change the "Encoder Type" to "MP3 Lame", and change the Bitrate to "96". If, when you're streaming later, people complain of the audio cutting out or skipping, you can change it to "64" instead. Next, pick a "Server Type". Normally you will want "Shoutcast", but "Icecast" is also available. In the "Server IP" box, put the IP address or URL you got from your shoutcast server provider (either Jamie Otis's or other). If you are using your PC as the server, leave it as "localhost". Same with "Server Port" and "Encoder Password"; use the ones provided by your provider or what you picked if you are running your own server. If you are using an Icecast server type, you will also need to fill in the "Mountpoint" box with the correct info. Click "OK" to close the Configuration window. Back at the main "Oddcast" screen, click the red X covering the picture of the microphone, and pick where the audio is coming from (could be "USB Audio" for instance, or something else that describes your soundcard.) Also, pick the input next to that, such as "Microphone" or "Line In". You should see levels in the "Peak Meter" area moving as the audio is broadcast. If it says "Off" next to "Peak Meter", click the area to the left of the words "Peak Meter" and they should show up. If all looks good, right-click on the new "Encoder" listing you created and choose "Connect". Hopefully the "Transfer Rate" area will change from Disconnected to Encoding, and you're all set!
Feel free to contact me in-world if you have any questions and I can try to help. I'm fairly busy these days but hopefully what I've written above will get you started!
--Jaycatt Nico =^.^=
Comments
A few additional links:
SLMC :: (PC Users) Intro to Playing Music in SL / Streaming
Streaming Music - Second Life Wiki
SLMC :: NICECAST SET UP AND STREAMING ( For Mac Users)
Posted by: Dolmere Talamasca
|
March 21, 2008 10:15 PM
Thanks very much for having this here, Dolmere! For some reason the SL database has lost my Notecard on the subject, so you were the only copy left!
Posted by: Jaycatt Nico | March 28, 2008 05:42 PM