Dec 31

VJ DJThe fact that the online community of Second Life provides a way listen to streaming audio has created opportunities for musicians , DJs, and others to stream live audio broadcast into Second Life. Since there are no real good tutorials out there on streaming from a Mac and that I’m getting tired of repeating the same set of instructions, I put together this article. First I’m going to make the assumption that you want to stream to more than ten listeners at a single location in Second Life, and that you already have installed and are familiar with the basics of using Second Life. Please note that you can also stream to even more listeners over the internet using this same method.

Getting Nicecast

The first step in the process is that you need to have broadcasting source software. PC users have a simple WinAmp plug-in that most users use. But for Mac users this isn’t an option. While there are several DJ programs like Tracktor that support streaming, by far the easiest to use and most prevalent piece of software is Nicecast by Rouge Amoeba ( http://rogueamoeba.com/nicecast/) . Nicecast cost $40US for the fully functional version. But it’s well worth the money in saving you time and headaches. Simply put, you need to purchase this software if you want to broadcast from your Mac.

broadcastFor the purpose s of this article I’ll presume that you are using Nicecast. After installing Nicecast and opening it the first window that you will see is the Broadcast window. This is the start and stop button for your broadcast, so you will want to keep this window open at all times when broadcasting.

Okay, listen up! Here is the is the biggest misunderstanding regarding Nicecast and internet broadcasting: You CAN use Nicecast’s built-in server to broadcast, but in 99% of the cases you DO NOT want to use the built-in Server. Here’s why: Unless you have a serious connection to the internet(and I mean T3 or better) you wont me able to serve very many streams. The math is simple, if you want to run a 96kbs stream, the bandwidth required is 96Kbs per listener. So your typical high speed 600 or 700kbs DSL connection can support seven listeners in the best case scenario, add overhead for NAT, shared devices, Gateways ,yadda yadda yadda, and you can see that running your own server probably won’t work. I will show how to configure Nicecast to use an external server so that you can broadcast to more listeners.

Getting a Shoutcast server

This brings us to the second piece of software in the chain. A Shoutcast DNAS server. Either you or the land/ club owner in Second Life will have to rent usage of a streaming server. There are two “brands” of servers out there; Shoutcast and Icecast, Shoutcast being a free piece of software from NullSoft and Icecast which is open-source software. I’ll use the Shoutcast server for this example. Like I said earlier, either you or the venue owner needs to “Rent a Stream” which is to say, a streaming server. If you search Shoutcast in Second Life you can find several vendors that can rent you the use of a server on an hourly, weekly, or monthly basis, and you can pay for these in Linden $. A typical 100 listener, 128kbs server rents for about $4000 Lindens a month. If you are a freelance musician or DJ in Second Life having you’re own streaming server is a huge advantage in terms of control, if you can justify the overhead. If you are a club or venue owner, haveing your owndn streaming server will allow to attract more artist and visitors to your venue and will allow you control of the music on your land.You can also search the internet and find Shoutcast streams for about $30-50US a month. Once you or the venue owner has rented a Shoutcast server you will be provided with the following information:

a URL with port number (in the form http://XX.XX.XX.XX:XXXX or http://hostname.com:port #) this is the URL that you will need for the land settings or to send internet listeners to.
A Host server IP ie. XX.XX.XX.XX
A port number ie XXXX
And a Password
You’ll need this information to configure the Nicecast Broadcaster.
You may also receive an admin login and password for configuring the Shoutcast server. which in most cases you won’t need to mess with. Warning: any changes to the default Shoutcast configuration should be undertaken with great care.

Configuring Nicecast

The next step is to configure Nicecast to send the audio from your Mac to the Shoutcast server. serverIn Nicecast, go to Show Server under the Window menu or hit Command 2. Next, click on the drawer icon either in the upper left or right of the Server window
Once the Drawer is open, click on the + sign in the lower left of the drawer.

server 3This will add a server called Untitled Server and a configuration form will open in the Server window. In the Name field, type in a name of your choice for your server.
Next select Shoutcast as the Server Type. In most cases leave the Account field blank. Type in the password that came with your Spoutcast server info. Fill in the Address field with the IP address or hostname of your Shoutcast server (Do not include the http://.) Fill in the port number from your Shoutcast server info. Leave the Mount Point field blank and leave the Public URL field set to Automatic. Next click on the radio button to the left of your server to activate it. You can now close the Server window.

There are a couple more settings that you should do in Nicecast. Make sure the Broadcast window is open or open it by going to Window>Show Broadcast or typing Command 1. Under the Source button you can choose which application you’re going to source your audio from. Nicecast will allow you to stream just about any audio from your Mac, but for testing and getting familiar with Nicecast, I suggest setting this to iTunes so that you can play music from your music library into Second Life. Read the Nicecast documentation to customize your source audio settings. Under the Info button you can fill out information about your “Radio Station” that you want your listeners to see. Don’t worry about the Titles button at this time. Under the Quality button you MUST set the Bitrate to same as your Shoutcast server. Set the Sampler Rate to 44.1 and the Channels to Stereo and leave the CPU slider in the middle. Under the Share Button, the URL of your stream will be there automatically. This is the Address you can give internet listeners or post to your Website. And finally there’s the Effects Button. The Effects button brings up the Effects window, where you can add audio effects and useful plug-ins like the voice-over module to Nicecast. I’ll refer you to the Nicecast documentation to use this window, for now you can close the Effects window. Okay, you are almost ready to broadcast, now we have to configure SL to receive the broadcast.

Configuring Second Life

Land MediaAt this point, you are configured to send your stream out to the internet., but to bring it into Second Life we need to configure the land to receive the broadcast. Launch Second Life and go to the land where you are going to be broadcasting to. In the case that the land or club is owned by somebody else, they will have to configure the land or if they already have a land stream changer, you may be able to enter the information from the Shoutcast server into the changer. In the case that you own the land, select About Land from the World Menu. In the About Land window click on the Media tab. Enter the URL with the port number of your Shoutcast server into the Music URL field. You can close the About Land window if you’d like. Now it’s time to do a test broadcast.

Starting your Broadcast.

With Second Life still open, switch to or open Nicecast. Click on the Start Broadcast button. You may get a “Quit and Relaunch” dialog if you have iTunes open, If you do, just click on the Quit and Relaunch button to relaunch iTunes. Next you should see the red on air light appear and when you start playing a song in iTunes you should see the level meter in the Broadcast window moving and you should see the name of the currently playing song. All of this confirms that you are sending a stream to the Shoutcast server. You may at this point be hearing both the source song and a slightly delayed version of the same audio through Second Life, this is good, it means you’re successfully broadcasting.. Go to the Control menu in Nicecast and choose Mute. Now, switch windows to Second Life. You still should be hearing your music. If not, make sure your media player is enabled and that you’ve hit the play button. If there is somebody else in your same location ask them if they can hear the stream. It should be working at this point. If not, here is a short troubleshooting list.

Trouble Shooting

I can’t address every problem you might encounter, but here are some of the common errors and their solutions.
If you get an “unable to connect to server” message in Nicecast, make sure that you entered the Shoutcast server info correctly in the Server window and that the server is activated.
And restart the broadcast.
If you are on air in Nicecast, but can’t hear in Second Life, check the land setting to make sure the correct music URL is entered, then, check that your media player is enabled and you’ve hit the play button.
If the Second Life stream sounds garbled or slow or fast, make sure your Shoutcast server and Nicecast are set to the same bitrate.
I sincerely that you got your stream up and running at this point. Be sure to take the time to read the Nicecast documentation thoroughly. And IM me, VJ Shojo, in Second Life to come listen to your show.

written by macaudioguy


16 Responses to “Streaming Audio Into Second Life From a Mac”

  1. 1. Caley Says:

    Hello… we use nicecast plus shoutcast for streaming live broadcasts, but we need an effect that will boost the volume level for some of our listeners.

    Some of our listeners are getting good volumes, but not all… is there an effect we can add to nice cast that can boost the volume we’re broadcasting?

    Thanks,
    Caley

  2. 2. macaudioguy Says:

    You can try putting a compressor as the last effect in the chain, but be sure to monitor your levels via the peak meter to make sure you’re not over-modulating and distorting. Of course have your listeners check their volume controls in Second Life.

  3. 3. HotRodJohnny Gears Says:

    I’ve done this. WHAT Address and Port do I use? I’ve used the address and port supplied by secondlivestreama.com and my address and port. Still silence. The club opens in six days!!

  4. 4. macaudioguy Says:

    HotRod make sure you entered the correct IP and port in the server window of Nicecast and make sure you activate the account in Nicecast.
    Then makes sure that media is enabled on your land in SL and that you entered the correct IP and port into the Land settings.
    I’lll try to catch you in world and see if I can help.

  5. 5. HotRodJohnny Gears Says:

    The server says no DJ connected. NIcecast says no connection. This ain’t workin’. Do I need to turn off the firewall for this port on my Mac and forward this port on my router? Any instructions I find seem to be lacking some important details because I follow the instructions as I interpret them and….. no connection.

  6. 6. HotRodJohnny Gears Says:

    Nothing makes sense. WHAT is the correct IP?? I paid for a stream from secondlifestream.com. I was given an address of: delta.secondlifestream.com and a port 10486. This accomplishes nothing when entered in the Nicecast external server window. Secondlifestream.com says my stream is on with no DJ connected BUT Shoutcast Administrator says my stream is down PLUS I can’t log in with my delta.secondlifestream.com password. NIcecast won’t connect to Shoutcast. Do I open my firewall for port 10486, 800 or 8001? Do I forward port 10486 or 800 or 8001 to my machine on my router? I can broadcast with the NIcecast internal server (port 8001) to SL with no problems, except for the DSL limit of 6 listeners. Can you tell I’m frustrated?

  7. 7. HotRodJohnny Gears Says:

    Don’t know what I did but I’m on the air!

  8. 8. Lex Says:

    Hi mac,

    I am starting up dJ’ ing in SL and set up a nicecast and got a stream. Now im trying to get mixing software configured. Do you know a program that is compatible and i can use in combination with itunes?

  9. 9. rodrigo fajardo Says:

    Hi, i guess it has to do with each user, it makes no sense that some users get loud and others not, they should check audio settings in control panel in each case. it is better to use an audio normallizer prior using a file or be sure the audio files are well mastered. be sure not to clip your tracks or it wont sound pro.

    regards

  10. 10. Beverley Mills Says:

    just wondering what order the effects should go in and what are the best levels
    thanks for the information above… Bev

  11. 11. Thank you! Thank you! Thank you! Says:

    Hey great info and very much appreciated!

  12. 12. Jude Says:

    Hey man….finally instructions for Mac Djing that work…..love ya man…thx ;)

  13. 13. Melody Says:

    Excellent article! Been looking for this info for ages lol I had no idea you could rent the streams in SL itself lol, that was the part I kept getting stuck on lol (the live365 and via streaming etc options were just too expensive for me right now) … I didn’t even think of searching there. Thanks :)

  14. 14. Marsha Perlman Says:

    Ok I have followed all the instructions and I keep getting error: Unknown host on the nicecast. I have put in the info exactly as it was given to us and we have had other djs use the stream so I know the stream works. Any ideas of what is wrong?

  15. 15. Hurana Ugajin Says:

    Is there another broadcasting software that is cheaper? I have heard that Quicktime will work, is that true? Thanks.

  16. 16. Glen Says:

    Hey Mac, thanks for the article. The instructions a re clear enough, but i get the same issue as Marsha (No.14.Unknown host on the nicecast.) What have I done incorrectly?