hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Hosting Security and Technology Tutorials : How to Run a Broadcasting Station using Shoutcast on Linux
Reply

Hosting Security and Technology Tutorials Tutorials related to server security or the like.
Forum Jump

How to Run a Broadcasting Station using Shoutcast on Linux

Reply Post New Thread In Hosting Security and Technology Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 05-24-2004, 01:10 PM
sprintserve sprintserve is online now
Retired Moderator
 
Join Date: Jan 2003
Posts: 9,002

How to Run a Broadcasting Station using Shoutcast on Linux


This how-to will not replicate TLG's How-To on installing a Shoutcast Server. Rather this focuses on those who do not wish to broadcast from a remote location and would rather have the server play Mp3 located on the same server based on a playlist. TLG How-To is found here: http://www.webhostingtalk.com/showth...hreadid=227645

Please make sure you go through the above thread first do that first before you continue with this section. I will assume you have created a user just for running shoutcast (and isn't doing it from root) and you are currently running as that user. I will also assume you have already configured your shoutcast server (with passwords and so on).

Follow the steps:

1. Download: http://www.shoutcast.com/downloads/...s_posix_040.tgz

2. Untar
tar -zvxf sc_trans_posix_040.tgz

3. Configure
cd sc_trans_posix_040
pico sc_trans.conf

Make sure that the config file points to the Playlist file you are going to generate in step 4. You need to configure these configuration variables:
- PlayListfile
- ServerIP: This is the IP of your Shoutcast server which is probably the same server.
- ServerPort: Port 8000 is default
- Password: This is the password that you enter in the Shoutcast server configuration
- Bitrate: Depending on your radio, you can tweak the bitrate here
- The rest are fine default.

4. Create a playlist based on mp3s on the server:
find /path/to/mp3/directory -type f -name "*.mp3" > playlist.lst

5. Start your Shoutcast server
cd /path/to/shoutcast/server/
nohup ./sc_serv &

nohup and & is not compulsory but is nice to have. Nohup outputs to a log file and & runs the process in the background and returns you to shell.


6. Start your broadcast
cd /path/to/broadcast/server/
nohup ./sc_trans_linux &


It should now be playing. Access your server by going to http://serverip:8000/listen.pls or if there's an URL on that IP, you can use the URL as well.

If there's any questions, feel free to ask.

Reply With Quote


Sponsored Links
  #2  
Old 05-28-2004, 08:24 PM
Steven Steven is online now
I like ice cream
 
Join Date: Mar 2003
Location: California USA
Posts: 11,785
nice how to sprintserve

Reply With Quote
  #3  
Old 06-05-2004, 06:13 PM
cmmdk cmmdk is offline
Temporarily Suspended
 
Join Date: Jun 2004
Posts: 0
Where do i download Linux??
and is there a easy install with pictureS?
and easy read guide?
Because i hate to look on so much text

Reply With Quote
Sponsored Links
  #4  
Old 06-07-2004, 09:40 AM
Flumps Flumps is offline
Web Hosting Master
 
Join Date: Jan 2004
Location: UK
Posts: 3,205
linux normally comes installed on dedicated boxes from data centers but if you want to install linux on a home machine then you may need to try looking for it on google.

Reply With Quote
  #5  
Old 06-09-2004, 09:27 AM
kitsune kitsune is offline
New Member
 
Join Date: Jun 2004
Posts: 2
i was told that a winamp streaming station cannot be run on a shared hosting plan, is that true ? ? ?

also, can you stream VIDEO with shoutcast as avi ? or do you have to convert to NSV??

i tried converting to nsv once and it just didnt work.

Reply With Quote
  #6  
Old 07-21-2004, 03:03 AM
uid0 uid0 is offline
Disabled
 
Join Date: Jul 2004
Location: Canada
Posts: 38
Quote:
Originally posted by kitsune
i was told that a winamp streaming station cannot be run on a shared hosting plan, is that true ? ? ?

also, can you stream VIDEO with shoutcast as avi ? or do you have to convert to NSV??

i tried converting to nsv once and it just didnt work.
This is mainly true because most shared hosting plans do not come with shell access. In order to compile and run shoutcast, you would require access to the machine your shared hosting account is hosted on. Shoutcast can be an extremely bandwidth intensive application so not many hosting providers like to offer this service, but there are still enough that do.

As for streaming video, I haven't tried this recently (Actually, I haven't played any tunes through a shoutcast server in a while either) but I'm sure if you read the sc_serv documentation it would provide more than enough information regarding this.

Reply With Quote
  #7  
Old 07-21-2004, 05:38 AM
BizB BizB is offline
Web Hosting Evangelist
 
Join Date: Jul 2003
Posts: 526
is it protected from hot linking ?

Reply With Quote
  #8  
Old 11-10-2004, 06:55 PM
fantasian fantasian is offline
Junior Guru Wannabe
 
Join Date: Apr 2004
Posts: 55
how do you set it so that when someone is not broadcasting from a remote location, shoutcast will switch to the playlist file?

Reply With Quote
  #9  
Old 11-17-2004, 02:52 AM
sprintserve sprintserve is online now
Retired Moderator
 
Join Date: Jan 2003
Posts: 9,002
Well if you are talking about hot switching i.e. automatically switching over and take over when someone disconnect, I am not sure that's possible easily.

You just have to log in and start the playlist manually when there's no one broadcasting remotely.

Reply With Quote
  #10  
Old 12-02-2004, 08:46 PM
cami cami is offline
New Member
 
Join Date: Dec 2004
Posts: 0
shoutcast - windows

Hi sprint serve. I am interested in shoutcast broadcasting on windows. I put my pass, my IP, maxusers but still it says errors connecting to shoutcast.com. could you please tell me where is the problem. my internet connection is fast. thank you very much.
regards,
cami

Reply With Quote
  #11  
Old 12-03-2004, 01:55 AM
sprintserve sprintserve is online now
Retired Moderator
 
Join Date: Jan 2003
Posts: 9,002
You need your own server. Shoutcast.com is not a universal broadcasting station where you can connect to to broadcast.

Reply With Quote
  #12  
Old 12-07-2004, 01:18 AM
Bilco105 Bilco105 is offline
Web Hosting Master
 
Join Date: Oct 2002
Location: Manchester, UK
Posts: 1,164
How is bandwidth on the shoutcast servers? Thanks

Reply With Quote
  #13  
Old 12-07-2004, 03:48 AM
sprintserve sprintserve is online now
Retired Moderator
 
Join Date: Jan 2003
Posts: 9,002
Depends on bitrate, depends on number of listeners.

Basically 128kbit/s (most commonly used bitrate and agreed to be almost CD quality), you are talking about 16kbytes/s. So you can do the Maths.

Reply With Quote
  #14  
Old 02-10-2005, 08:48 AM
yaax yaax is offline
Junior Guru
 
Join Date: Sep 2003
Posts: 199
Is there any tool that can measure exact shoutcast used banwidth?
I know that I can limit total bandwidth by bitrate and number of listeners, but how to know how much bandwidth was actually used by each shoutcast server?

Reply With Quote
  #15  
Old 02-10-2005, 09:32 AM
Angelo Angelo is offline
Web Hosting Master
 
Join Date: Mar 2004
Location: Los Angeles
Posts: 617
A cron job to get the current number of listeners from Shoutcast XML stats in a friendly interval, than plotting out a graph by multiplying the listener number with bitrate. However it will not be much accurate.

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Big Data and Cloud Drive Enterprise Linux Adoption: Report Web Hosting News 2013-03-27 12:54:34
50c7927b-8de0-4268-9140-149b45a799bf Listing 2013-03-05 18:22:52
50c7927b-42e8-4b4b-a264-149245a799bf Listing 2013-03-05 18:22:52
Web Host MochaHost Adds New Features to Linux VPS Hosting Plans Web Hosting News 2012-08-01 15:52:14
Linux Foundation Website Down After Security Breach Last Week Web Hosting News 2011-09-12 20:32:11


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?