|
지난달에 이어서 이번 달에는 인터넷 방송을 위한 실제 설정 방법을 진행하도록 하겠습니다. 지난달 원고를 참조하여 icecast를 설치했다면 이제 여러 가지 설정과 관련된 세부적인 내용은 아래 내용을 참조하시기 바랍니다.
#vi /bin/ices.conf 위 명령을 사용하여 ices.conf 파일을 엽니다. 아래와 표와 같이 설정 항목들이 나옵니다. 하나씩 살펴보도록 하겠습니다. 이곳에서 다루지 않는 부분은 중요하지 않으므로 기본 설정 값을 그대로 사용하면 됩니다.
############### Server Location and Resposible Person ########################## # Server meta info, please fill out these. # They get displayed when listing directories, streams, and # if the client supports it, among the other stream headers. # You can put anything here, it's just for show. ############### location Just west of Mars rp_email kirk@enterprise.space server_url http://www.icecast.org/
|
위에는 http://www.icecast.org 등의 디렉토리 서버에 자신의 icecast server를 나타낼 때 자신이 방송하고 있는 서버의 위치와 URL, 그리고 관리자 메일 등을 나타내 주는 것으로 보여주고 싶지 않다면 적지 않아도 됩니다.
########################### Server Limits ###################################### # These describe the maximum number of simultaneous connections allowed. # When reached, the server will refuse access. # There is a builtin bandwidth measuring tool inside the icecast server, # and when icecast thinks that it is using more than "throttle" MB/s, then # no clients or sources will be allowed until the bandwidth usage goes back # down below the limit. Use this with caution, since the bandwidth measurement # is in no way an exact science. ########################### max_clients 900 <-- 동시에 접속할 수 있는 클라이언트의 수, 즉 청취자의 수를 제한하는 기능입니다. max_clients_per_source 900 <-- 채널이 여러 개 일 때 각 채널마다 들을 수 있는 청취자의 수를 제한해 줄 수 있는 기능입니다. max_sources 10 <-- icecast server에 동시에 제공할 수 있는 최대한의 소스 개수 max_admins 5 <-- 서버에 동시에 접속할 수 있는 admin의 개수 throttle 10. <-- 대역폭이 어느 정도까지 사용될 수 있는지를 결정합니다. 단위는 Megabytes per second를 사용하며 만약 설정된 대역폭을 넘어서면 모든 접속이 거부됩니다.
|
########################## Stream Meta Data #################################### # This is a experimental feature, at best. # When it does not work, it will put the whole stream out of synk on the client # side, and you will get a big mess. # use_meta_data controls whether this icecast server will use title streaming at # all. It's turned off by default, cause it creates chirps in the # stream if you're not careful. # streamtitletemplate is a the template for creating the title that gets sent to # the client and the directory server. %s will be # substituted for the actual filename. # streamurl is the default url for each stream. # nametemplate is a template for the name of each stream. # desctemplate is a template for the description of each stream. ########################## use_meta_data 0 <-- mp3로 방송할 때 파일이름(title streaming)을 보여줄 수 있게 해줍니다. streamurllock 0 <-- 소스가 자신의 URL을 변경할 수 없게 하려면 1로 셋팅 하면 됩니다. streamtitletemplate %s streamurl http://yp.icecast.org nametemplate %s desctemplate %s
|
######################### Server passwords ##################################### # Unless you've compiled icecast with crypt support, # i.e with --with-crypt as an argument to the configure script, # then these are in cleartext. If you _do_ have crypt support, then # you have to create a crypted version of the password. You can do this # with the included mkpasswd.c program. Just compile it with # "gcc -o mkpasswd mkpasswd.c", perhaps with the -lcrypt option. #########################
encoder_password hackme <-- 기본 값은 hakeme로 각 항목의 뒤에 패스워드를 정해주어야 하며 자신이 원하는 password로 정해주면 됩니다. admin_password hackme oper_password hackme
|
######################## Directory servers ##################################### # A directory server is a "meta-server" where you, for free, can list # your own icecast server. This is a great way of getting more listeners. # The touch_freq is how often to "update" the directory server with information # from your server. (e.g number of listeners, stream info, etc..) ########################
#icydir yp.shoutcast.com <-- 주석을 풀면 icy 디렉토리 서버에 자신의 서버를 알리게 됩니다. #icydir yp.breakfree.com #icydir yp.musicseek.net #icydir yp.van-pelt.com #icydir yp.radiostation.de #directory yp.icecast.org #directory yp.mp3.de touch_freq 5 <-- 디렉토리 서버에 자신이 사용하고 있는 서버의 상태를 업데이트 하는 시간 간격으로 보통 기본 값은 5분입니다.
|
############# Server IP/port configuration (IMPORTANT) ######################### # If no hostname is specified, icecast will listen on all available interfaces, # i.e INADDR_ANY. This is probably what you want. .. .. #hostname 192.168.1.1 <-- 모든 IP에서 오는 스트림을 listen할 수 있고, 이곳에 도메인이나 IP를 적게되면 icecast 서버는 오직 그 IP에서 오는 스트림만 들어서 서비스를 하게 됩니다. 따라서 잘못된 IP를 적으면 동작하지 않습니다. port 8000 port 8001 server_name your.server.name <-- 자신의 도메인 이름 또는 IP를 꼭 적어야 합니다.
|
######################## Main Server Logfile ################################## # This is the file where icecast prints all the information about # connections, warnings, errors, etc... # You cannot change this in the admin console, but changing it here # and then rehashing the server will work. # logfiledebuglevel is the debugging level for all output to the main logfile. # consoledebuglevel is the debugging level to the icecast console. # accessfile is the file where all connects/disconnects goes # usagefile is a file for periodic bandwidth and usage information goes ########################
logfile icecast.log <-- 보통 서버를 시작할 때마다 icecast.log를 비워주기를 권장합니다. accessfile access.log usagefile usage.log logfiledebuglevel 0 <-- 로그파일에 기록될 내용의 정도를 지정합니다. 0은 debugging output이 없고, 1,2는 보통 3,4는 많이 나오게 됩니다. consoledebuglevel 0 <-- logfiledebuglevel과 같은 기능으로 단지 출력이 icecast의 콘솔로 나온다는 점이 다릅니다.
|
########################## Reverse Lookups #################################### # Set this to 1 if you want ip:s to be looked up (using reverse lookup) # or 0 if you just want the ip:s (which is slightly faster) ########################## reverse_lookups 1 <-- 1로 설정하면 IP를 호스트 네임으로 변환합니다. 대부분의 경우 IP만 가진 클라이언트이므로 이런 경우 0으로 off 해두면 됩니다.
|
############################ Console mode ##################################### # Use 0 if you want stdin to become a local admin console with log tailing # Use 1 if you want stdin to become a local admin console # Use 2 if you just want the console to become a log window # Use 3 if you want the icecast server to be launched in the background (not ava ilable for Win32) ############################ console_mode 0 <-- icecast server가 시작할 때의 모드입니다. 0은 로그정보와 함께 admin 콘솔로 사용되고, 1은 로그 정보 없는 admin 콘솔로, 2는 로그파일 원도로만 사용하고, 3은 icecast server를 daemon process로 시작하게 합니다.
|
########################### Client Timeout #################################### # (How to deal with clients when no encoder is connected) # A negative value means keep them forever # 0 (zero) means kick them out instantly # X > 0 means keep them X seconds ########################### client_timeout 30 <-- 소스 스트림(liveice, shout)의 연결이 끊어졌을 때 소스와 서버와의 연결이 다시 연결되는데 몇 초를 기다려야 할지를 결정합니다. 일단 0보다 큰 숫자여야 합니다.
|
######################### Kicking clients ##################################### # If set to 1, then clients whose source has disconnected will # be kicked. If set to 0, they will simply be moved to another # stream. This only has an effect if client_timeout is <= 0. #########################
kick_clients 0 <-- 소스의 연결을 기다리는 시간이 초과된 경우, 만약 1이라면 클라이언트와의 연결을 끊어버리고, 0일 경우 다른 스트림으로 클라이언트를 옮겨서 다른 스트림을 들을 수 있게 해줍니다.
|
###################### Static file directory ################################## # This enables the http-server file streaming support in icecast. # If you don't want to go through the trouble of setting up apache # or roxen or whatever, then you can just specify a directory here, # and then http://your_server:port/file/file.mp3 will be equivalent # to /staticdir/file.mp3 # The http server support is of course very limited, don't try to # do anything fancy. Also, only .mp3 files will be displayed. ######################
#staticdir c:\windows\desktop <-- 웹 브라우저에서 http://도메인 또는 IP:Port/file/을 했을 경우 나타나는 디렉토리를 결정합니다. staticdir /usr/local/icecast/static
| |