Build your own network radio station

Source: Internet
Author: User
What do you think of my "Love song on Radio? If you like it, you can try it in Linux.
Refer to: Zhang microwave's blog

1. Download Software
Server:
ShoutCast Linux Server (glibc) v1.9.4 download

Http://sjhome.3322.org/blog/archives/download/shoutcast-1-9-4-linux-glibc6.tar.gz

DJ software:
Download the ShoutCast DSP plug-in for Linux download

Http://sjhome.3322.org/blog/archives/download/ SC _trans_posix_040.tgz

2. Install
Tar zvxf shoutcast-1-9-4-linux-glibc6.tar.gz

Tar zvxf SC _trans_posix_040.tgz

It is recommended that both of them be decompressed to the same directory.

3. Server Settings

VI SC _serv.conf

Maxuser = 20

# Maximum connected audience allowed by the server. Calculation Method: connection count = your total bandwidth x0.9 listen each connection bandwidth

Password = passwordme

# Set the server management password. It cannot be blank and must be set.

Portbase= 8000

# Radio station ports. If you have a firewall, you 'd better enable TCP ports 8000 and 8001.

Logfile =./SC _serv.log

# Log file on the server. If you do not want to use it, directly go to/dev/null.

Autodumpusers = 1

# Set automatic client disconnection. The default value is 0.

Publicserver = default

# Set the running mode of the radio station. If you want to play 7x24, you 'd better set it to always.

In fact, the settings on the server can basically remain unchanged, but the configuration files on the DJ end should be well set.

4. DJ end settings

VI SC _trans.conf

Playlistfile = playlist. lst

# List of files played by the Network Station. playlist. lst files can be manually created or generated using the following commands
Find/path/to/MP3/directory-type F-name "*. MP3"> playlist. lst, you just need to write your MP3 storage path.

Serverip = radio.5ilinux.com
SERVERPORT = 8000

# Note that the port number must be consistent with the settings on your server.

Streamtitle = a man in fortressbesieged's radio
Streamurl = http://sjhome.3322.org: 8000
Genre = pop music of China

# Set the name and category of the Network Station as needed.

Password = passwordme

# Note that the password settings must be consistent with those on your server.

Bitrate = 56000
Samplerate = 22050
Channels = 2

# Set the broadcast quality. I set 56 kbps, 22 kHz, and stereo. This is already the quality of FM. I think it should be able to meet general needs, especially if the bandwidth is not enough, try not to exceed 128 Kbps. Of course, if you want to listen to the CD sound quality, 196kbps. haha :)

OK. The basic settings are almost the same. If you have created playlist. lst, run the service,

./SC _serv &
./SC _trans_linux &

Now you can access the website of your network station through your Web site: 8000. Click listen to play the video through Winamp. The client playback software is not limited. You only need to support the PLS format.

Control skills. Update palylist. lst
If your MP3 list is updated, or a new song is added, and you do not want to restart the radio station to enable the new list directly, Shoutcast has long been an idea for you. You should first find your. /SC _trans_linux process PID, and then use the following command to automatically let the server read the new list file

Kill-usr1 program PID

It's that simple. Please try it!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.