Create a network radio station using Linux + SHOUTcast
Source: Internet
Author: User
Linux + SHOUTcast Network Station-Linux Enterprise Application-Linux server application information, the following is a detailed description. I think you must have listened to the network radio station. How can this problem be solved? In fact, installing a similar radio station in linux is very simple.
1. Download Software
Server:
SHOUTcast Linux server (glibc) v1.9.2 [DOWNLOAD]
DJ software:
Download the SHOUTcast DSP Plug-In for Linux [DOWNLOAD]
2. Install
Tar zvxf shoutcast-1-9-2-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://radio.5ilinux.com: 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
Well, it's that simple. I think you will do it, but you still don't know how to make the VOD yet. This program also seems to have poor support for Chinese and no source code. We hope the new version will be better.
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.