Logo         Community
  Trog
Services
The Company
Community
Columns
Your Account
Contact Us
 
 
Network Radio With Icecast
Set up a multi-channel radio station on your home or office network.

| The Iceman Cometh |

In the words of its official documentation, Icecast is "...a streaming media server which currently supports Ogg Vorbis and MP3 audio streams...it can be used to create an Internet radio station or a privately running jukebox and many things in between". It's arguably one of the oldest - and most popular - audio streaming systems available, and the reason I'm grinning so much lately is that we recently set up one on an old Linux box we had lying around in the office. As a result, users anywhere on our office LAN can tune in and listen to any of the three channels of streaming music we've set up, without any of the lags and disruptions commonly associated with online radio stations.

Sounds cool? You bet it is! And it's incredibly easy to set up as well...once you know the basics.

There are two primary components to the Icecast project:

1. The server: The server component of the project, appropriately enough named icecast, accepts audio content from one or more source clients, and streams it out to players. The server also keeps track of connected clients, and makes available information on the audio tracks being played, their duration, and their mountpoints. A single Icecast server can have multiple streams being broadcast simultaneously, each one located at a different mountpoint (think of a mountpoint as a channel on the radio).

2. The source client: The source client, named iceS, reads an audio file, either in MP3 or Ogg Vorbis format, and streams it to a server. Typically, the source client must log in to the server with correct authentication credentials before the server will accept the audio content. iceS can also be programmed to use playlists to send audio files to the server in a pre-defined sequence.

Once you've got the Icecast server and source client set up, any player capable of reading an Icecast stream can connect to the server and begin "listening" to the audio stream being played. Most of today's audio players, including Winamp and Windows Media Player, are capable of decoding Icecast streams, making it easy to test and use the system.

If you need to stream live audio instead of pre-canned audio files, Icecast can easily be hooked up to audio encoders to enable you to do this (at different bitrates if necessary). And Icecast also includes support for a couple of more advanced features: relaying, in which an audio stream from one server is mirrored on to another server for more optimal resource usage; and support for YP listings, in which the server's audio streams are displayed in real-time in a public YP directory.

Now that you have the background - let's get to work, by installing and configuring Icecast.


How to do Everything with PHP & MySQL
How to do Everything with PHP & MySQL, the best-selling book by Melonfire, explains how to take full advantage of PHP's built-in support for MySQL and link the results of database queries to Web pages. You'll get full details on PHP programming and MySQL database development, and then you'll learn to use these two cutting-edge technologies together. Easy-to-follow sample applications include a PHP online shopping cart, a MySQL order tracking system, and a PHP/MySQL news publishing system.

Read more, or grab your copy now!


previous page more like this  print this article  next page
 
Search...
 
In trog...
Logging With PHP
Building A Quick-And-Dirty PHP/MySQL Publishing System
Output Buffering With PHP
Date/Time Processing With PHP
Creating Web Calendars With The PEAR Calendar Class
more...
 
In the hitg report...
Crime Scenes
Animal Attraction
Lord Of The Strings
more...
 
In boombox...
Patience - George Michael
Think Tank - Blur
My Private Nation - Train
more...
 
In colophon...
Hostage - Robert Crais
The Dead Heart - Douglas Kennedy
Right As Rain - George Pelecanos
more...
 
In cut!...
American Chai
The Core
Possession
more...
 
Find out how you can use this article on your own Web site!


Copyright © 1998-2018 Melonfire. All rights reserved
Terms and Conditions | Feedback