icecast ¸¦ ÀÌ¿ëÇÑ ¶óµð¿À ¹æ¼Û ÃÖÃÊÀÛ¼ºÀÏ : 2000/04/09 ÃÖÁ¾ÆíÁýÀÏ : 2000/10/28 ±Û¾´ÀÌ : ÃÖ ¹Î¼º (CHoims@hitel.net) --- 1. ÁغñÀÛ¾÷ 2. icecast 2-1 icecast ´Â... 2-2 icecast ¼³Ä¡ 2-3 icecast ¼³Á¤ 2-4 icecast »ç¿ëÇϱâ 3. shout 3-1 shout ¶õ? 3-2 shout ¼³Ä¡ 3-3 shout ¼³Á¤ 3-4 shout »ç¿ëÇϱâ 4. liveice 4-1 liveice ¶õ? 4-2 liveice ¼³Ä¡ 4-3 notlame ¼³Ä¡ 4-4 liveice ¼³Á¤ 4-5 liveice »ç¿ëÇϱâ 5. ¹æ¼Û µè±â --- 1. ÁغñÀÛ¾÷ ¸®´ª½º¿¡¼­ ¹æ¼ÛÀ» Çϱâ À§ÇØ ÇÊ¿äÇÑ ÇÁ·Î±×·¥ µéÀÔ´Ï´Ù. icecast (¹æ¼Û¼­¹ö) °ø½Ä ȨÆäÀÌÁöÀÎ http://www.icecast.org ¿¡¼­ ´Ù¿î °¡´ÉÇÕ´Ï´Ù. shout (MP3 ½ºÆ®¸®¸Ó) liveice (DJ Åø) notlame (MP3 encoder) --- 2. icecast 2-1 icecast ´Â... icecast ´Â GPL À» µû¸£¸ç TCP/IP ±â¹Ý¿¡¼­ MP3 ¹æ¼ÛÀ» °¡´ÉÄÉ ÇÏ´Â ½ºÆ®¸®¹Ö ¼­¹öÇÁ·Î±×·¥À̸ç linux »Ó¸¸ ¾Æ´Ï¶ó À©µµ¿ì ¿î¿µÃ¼Á¦¿¡¼­µµ »ç¿ëÀÌ °¡´ÉÇÕ´Ï´Ù. 2-2 icecast ¼³Ä¡ icecast °ø½Ä»çÀÌÆ®ÀÎ http://www.icecast.org ¿¡¼­ ´Ù¿îÀ» ¹Þ½À´Ï´Ù. (2000³â 10¿ù 28ÀÏ ÇöÀç ¾ÈÁ¤¹öÀüÀº 1.3.7 ÀÌ¸ç °³¹ß¹öÀüÀ¸·Î´Â 1.3.8-beta2°¡ ³ª¿Í ÀÖ½À´Ï´Ù) °£´ÜÇÏ°Ô RPM ÆÐÅ°Áö¸¦ ´Ù¿î ¹Þ¾Æ ¼³Ä¡ ÇÒ¼ö ÀÖÀ¸¸ç, ¿©±â¿¡¼­´Â ¼Ò½º¸¦ Á÷Á¢ ¹Þ¾Æ¼³Ä¡ÇØ º¸°Ú½À´Ï´Ù. ´Ù¿î ¹ÞÀº ÇÁ·Î±×·¥Àº ¾ÈÁ¤¹öÀüÀÎ 1.3.7 ÀÌ¸ç ´ÙÀ½°ú °°Àº ¼³Ä¡ÀÛ¾÷À» °ÅĨ´Ï´Ù. [root@mins /usr]# tar xvzf icecast-1.3.7.tar.gz [root@mins /usr]# cd icecast-1.3.7 [root@mins icecast-1.3.7]# ./configure [root@mins icecast-1.3.7]# make [root@mins icecast-1.3.7]# make install Á¤»óÀûÀ¸·Î ¼³Ä¡°¡ µÇ¾ú´Ù¸é /usr/local/icecast µð·ºÅ丮¸¦ º¸½Ç¼ö ÀÖ½À´Ï´Ù. * Âü°í : tcp_wrapper ¹æÈ­º® ±â´É°ú ¾Ïȣȭ Æнº¿öµå ±â´ÉÀ» ¿øÇÏ´Â °æ¿ì configure ¿É¼Ç¿¡ °¢°¢ --with-libwrap , --with-crypt À» Ãß°¡ ÇؾßÇϸç, readline support ¸¦ ¿øÄ¡ ¾Ê´Â °æ¿ì --without-readline À» Æ÷ÇÔÇÕ´Ï´Ù. (ÀÚ¼¼ÇÑ »çÇ×Àº INSTALLÆÄÀÏ ÂüÁ¶) 2-3 icecast ¼³Á¤ /usr/local/icecast/conf/icecast.conf.dist À» ÆÄÀÏÀ» icecast/bin/ ¿¡ º¹»çÈÄ icecast.conf ÆÄÀÏÀ» vi ³ª pico ¿Í °°Àº ÆíÁý±â·Î ¾Ë¸ÂÀº ȯ°æÀ¸·Î ¼öÁ¤ ÇÕ´Ï´Ù. [root@mins conf]# cp icecast.conf.dist ../bin/icecast.conf ±âº»ÀûÀ¸·Î server_name ¸¸ ¼öÁ¤ÇØÁ־ »ç¿ë¿¡´Â ÁöÀåÀÌ ¾øÀ¸¸ç ±âŸ ¸î°¡Áö Áß¿ä ¼³Á¤ ºÎºÐµéÀº ´ÙÀ½°ú °°½À´Ï´Ù. (## ºÎºÐÀº ÁÖ¼® ºÎºÐÀÔ´Ï´Ù) ######################### ### ÃÖ´ë Á¢¼ÓÀÚ ¼ö max_clients 900 ### °¢ ¼Ò½ºº° (ä³Î) ÃÖ´ë Á¢¼ÓÀÚ ¼ö max_clients_per_source 900 max_sources 10 ### µ¿½Ã Á¢¼Ó °¡´ÉÇÑ ÃÖ´ë ¾îµå¹Î ¼ö max_admins 5 ### ´ë¿ªÆø Á¦ÇÑ throttle 10.0 ######################### ### Æнº¿öµå ¼³Á¤ ºÎºÐÀÔ´Ï´Ù. ±âº» Æнº¿öµå´Â hackme ÀÔ´Ï´Ù. encoder_password hackme admin_password hackme oper_password hackme ############# ### ¼­¹ö ¼³Á¤ ºÎºÐÀÔ´Ï´Ù. #hostname 192.168.1.1 # ¹æ¼Û¿¡ »ç¿ëµÉ Æ÷Æ®¸¦ Àû¾î ÁÝ´Ï´Ù. port 8000 port 8001 # ¹æ¼Û ¼­¹öÀÇ µµ¸ÞÀÎ ³×ÀÓÀ̳ª IP ¸¦ Àû¾î ÁÝ´Ï´Ù. server_name your.server.name 2-4 icecast »ç¿ëÇϱâ ÀÌÁ¨ icecast ¸¦ »ç¿ëÇغ¼±î¿ä. [root@mins bin]# ./icecast ±âº»ÀûÀ¸·Î À§¿Í °°ÀÌ ½ÇÇàÀ» ÇÏ¿©µµ ¹«¹æÇϸç, ¿É¼Ç¿¡ ´ëÇØ Á»´õ ¾Ë°í ½ÍÀ¸¸é icecast -h ·Î ½ÇÇàÀ» ÇÕ´Ï´Ù. --- 3. shout 3-1 shout ¶õ? shout ´Â icecast ¿¡ ÀÎÄÚµù µÇ¾îÁø mp3 ¸¦ º¸³»ÁÖ´Â ÇÁ·Î±×·¥ÀÔ´Ï´Ù. ÀåÁ¡À¸·Î´Â ½Ç½Ã°£ÀÎ liveice ¿¡ ºñÇÏ¿© CPU, RAM »ç¿ë¾çÀÌ Àû´Ù´Â Á¡ÀÌ ÀÖÁö¸¸ ¹æ¼ÛÀü¿¡ ¹Ì¸® ÀÎÄÚµùÀ» ÇÏ´Â ½Ã°£À» °¡Áö¸ç ¿ÜºÎÀÔ·ÂÀÌ ºÒ°¡´ÉÇÏ¿© ½Ç½Ã°£ÀûÀÎ ¹æ¼ÛÀÌ Èûµé´Ù´Â ´ÜÁ¡ÀÌ ÀÖ´Ù. 3-2 shout ¼³Ä¡ http://www.icecast.org ¿¡¼­ shout ¸¦ ´Ù¿î ¹Þ¾Æ, ´ÙÀ½°ú °°ÀÌ ¼³Ä¡¸¦ ÇÕ´Ï´Ù. [root@mins /usr]# tar xvzf shout-0.8.0.tar.gz [root@mins shout-0.8.0]# make [root@mins shout-0.8.0]# make install ¼³Ä¡°¡ ¿Ï·á µÇ¸é icecast/bin µð·ºÅ丮¿¡ shout ½ÇÇà È­ÀÏÀÌ ÀÖ´Â°É È®ÀÎÇϽǼö ÀÖ½À´Ï´Ù. 3-3 shout ¼³Á¤ shout ÀÇ °æ¿ì µû·Î ¼³Á¤ ÆÄÀÏÀ» ÁöÁ¤ÇØ ÁÖÁö ¾Ê¾Æµµ, Ä¿¸Çµå ¶óÀλ󿡼­ ¿É¼ÇÀ» Á־ µÇ±â¿¡, ¿©±â¿¡¼­´Â °£´ÜÇÏ°Ô Áß¿äºÎºÐ¸¸ »ìÆì º¸±â·Î ÇÑ´Ù. shout.conf ÆÄÀÏÀº ±âº»ÀûÀ¸·Î icecast/etc/ ¿¡¼­ ãÀ»¼ö ÀÖÀ¸¸ç, ## ºÎºÐÀº ÁÖ¼®ÀÌ´Ù. [root@mins etc]# cp shout.conf.dist shout.conf [root@mins etc]# vi shout.conf ############### ## ¼­¹ö À̸§À» Àû¾îÁØ´Ù. icecast ¿Í °°Àº ¼­¹öÀÎ °æ¿ì localhost ¸¦ »ç¿ëÇÑ´Ù. server_name localhost ## Æ÷Æ® ¼³Á¤ port 8000 ## icecast ¿¡¼­ ¼³Á¤ ÇصР¾ÏÈ£¸¦ Àû´Â´Ù. (hackme ·Î º¯°æ) password hackme mount default ############### ## ¹æ¼Û±¹ À̸§ÀÔ´Ï´Ù. name Radio_AP desc The_best_monkey_music_monkeys_can_buy genre Monkey_Music url http://www.apan.com/ #°ø°³, ºñ°ø°³ ¹æ¼Û °áÁ¤ public yes ############### short_titles yes ## ³ë·¡ ÆÄÀÏÀ» Á¦¸ñÀ¸·Î º¸¿© ÁÝ´Ï´Ù. title_streaming yes id3 no autocorrect yes ############### ## MP3 ¿¬ÁÖ ¸®½ºÆ® ÆÄÀÏ ¼³Á¤ (º»ÀÎÀÇ °æ¿ì¿¡´Â playlist·Î ¼³Á¤) playlist playlist ## ÀüºÎ ¿¬ÁÖ°¡ µÇ¾úÀ»¶§ÀÇ ¹Ýº¹ ¼³Á¤ loop yes ## ¹«ÀÛÀ§ ¿¬ÁÖ ¼³Á¤ shuffle no 3-4 shout »ç¿ëÇϱ⠸ÕÀú ¹æ¼ÛÀ» Çϱâ À§ÇÑ ¹æ¼Û¿ë ¸®½ºÆ®¸¦ ÀÛ¼ºÇÑ´Ù. ¿©±â¿¡¼­´Â ¿¹Á¦·Î playlist ¶õ ÆÄÀÏ·Î ÀÛ¼ºÀ» Çغ¸¾Ò´Ù. [root@mins etc]# cat playlist /home/radio/DJDOC5/01 INTRO(¿Í½Å»ó´ã).mp3 /home/radio/DJDOC5/02 ºñ¾Ö(Acoustic).mp3 /home/radio/DJDOC5/03 L.I.E.mp3 /home/radio/DJDOC5/04 Nuclear_Lunch_the_Detect.mp3 /home/radio/DJDOC5/05 Boogi_Night.mp3 /home/radio/DJDOC5/05_Æ÷Á¶¸®.mp3 ¸®½ºÆ® ÆÄÀÏÀ» ½±°Ô ¸¸µé±â À§ÇÏ¿© º»ÀÎÀº ´ÙÀ½°ú °°Àº ¸í·É¾î¸¦ »ç¿ëÇÏ¿´À¸¸ç, [root@mins etc]# find /home/radio/ -name "*.mp3" > playlist xmms »ç¿ëÀÚÀÇ °æ¿ì¿¡´Â xmms ÀÇ ¸®½ºÆ® ÆÄÀÏÀ» ±×´ë·Î »ç¿ëÇÏ¿©µµ ¹«¹æÇÏ´Ù. ÀÌÁ¦ shout ¸¦ ½ÇÇàÀ» ÇÏ°Ô µÇ¸é, ¹æ¼ÛÀÌ ½ÃÀ۵ȴÙ. [root@mins bin]# ./shout ¾Õ¿¡¼­ ÀÌ¹Ì shout.conf ÆÄÀÏÀ» ¾Ë¸Â°Ô ¼öÁ¤ÇÏ¿´À¸¹Ç·Î º°´Ù¸¥ ¿É¼ÇÀ¸·Î ½ÇÇàÀÌ °¡´ÉÇÏ´Ù. shout ÀÇ ÀÚÁÖ ¾²ÀÌ´Â ÀϹÝÀûÀÎ ¿É¼ÇÀº ´ÙÀ½°ú °°´Ù. -C ¼³Á¤ ÆÄÀÏ ÁöÁ¤ -D ¸ðµç ³ë·¡ Àü¿¡ ÇöÀçÀÇ ³ë·¡¸¦ ¸ÕÀú ¿¬ÁÖ -P Æнº¿öµå ÁöÁ¤ -l ³ë·¡ ¿¬ÁÖ Á¾·áÈÄ ·çÇÁ -p Ç÷¹ÀÌ ¸®½ºÆ® ÁöÁ¤ -r ·£´ýÇÏ°Ô ¿¬ÁÖ -z ¹é±×¶ó¿îµå¿¡¼­ ½ÇÇà -h µµ¿ò¸» --- 4. liveice 4-1 liveice ¶õ? livceice ´Â shout ¿¡ ºñÇØ ½Ã½ºÅÛ ÀÚ¿øÀ» ¸¹ÀÌ Â÷Áö ÇÑ´Ù´Â ´ÜÁ¡À» °¡Áö°í ÀÖÁö¸¸liveice ´Â ½Ç½Ã°£À¸·Î MP3 ¸¦ ÀÎÄÚµù ÇÏ¿© icecast ¿¡ Àü¼ÛÀ» Çϸç, ¿ÜºÎ ÀÔ·ÂÀÌ °¡´ÉÇÏ´Ù´Â ÀåÁ¡ ¶§¹®¿¡, ³Î¸® ¾²ÀÌ°í ÀÖ´Â ÇÁ·Î±×·¥ÀÌ´Ù. 4-2 liveice ¼³Ä¡ liveice ´Â cvs ¶ó´Â À¯Æ¿¸®Æ¼¸¦ ÀÌ¿ëÇÏ¿© (´ëºÎºÐÀÇ ¹èÆ÷ÆÇ¿¡ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù)¼³Ä¡¸¦ ÇÕ´Ï´Ù. ´ÙÀ½°ú °°Àº ÀÛ¾÷À¸·Î ¼³Ä¡¸¦ ÇÒ¼ö ÀÖ½À´Ï´Ù. [root@mins /usr]# export CVSROOT=:pserver:anonymous@cvs.icecast.org:/cvsroot [root@mins /usr]# cvs login (Logging in to anonymous@cvs.icecast.org) CVS password: Æнº¿öµå´Â °ø¹éÀÌ´Ù. ÀÌ°÷¿¡¼­ ±×´ë·Î ¿£Å͸¦ ÃÄÁÖ¸é µÈ´Ù. ÇÁ·ÒÇÁÆ®°¡ ±×³É ¶³¾îÁöÁö¸¸, ¿¬°áÀÌ µÈ »óÅÂÀÌ´Ù. °è¼Ó ¼³Ä¡ ÀÛ¾÷À» ÇÏ°Ú´Ù. [root@mins /usr]# cvs checkout liveice ¸¸µé¾îÁø liveice µð·ºÅ丮·Î À̵¿À» ÇÏ¿©.. [root@mins liveice]# autoconf [root@mins liveice]# ./configure [root@mins liveice]# make ¾Æ·¡ÀÇ ÇÊ¿äÇÑ È­ÀϵéÀ» /icecast/bin ¿¡ º¹»çÇÏ´Â °ÍÀ¸·Î liveice ÀÇ ¼³Ä¡´Â ¸¶Ä¨´Ï´Ù. liveiceconfigure.tk liveice liveice.cfg frontend.tcl simple_frontend.tk * Âü°í : http://cvs.icecast.org/cvsweb.cgi/ ¿¡ °¡º¸¸é, liveice-xmms ¶ó´Â °ÍÀÌÀÖ´Ù. º»ÀÎÀº X ¸¦ ¾²Áö ¾Ê¾Æ ½áº¸Áú ¸øÇßÁö¸¸, ¾Æ¸¶µµ winamp ó·³ ÆíÇÏ°Ô ¹æ¼ÛÀ» ÇÒ¼ö ÀÖ´Â Ç÷¯±×ÀÎ ÀÎµí ½Í´Ù. º¸´Ù ¹æ¼ÛÀ» ÆíÇÏ°Ô ÇÏ°íÀÚ ÇÏ´Â ºÐµéÀº Çѹø ¼³Ä¡ÇØ º¸±æ ±ÇÇÑ´Ù. 4-3 notlame ¼³Ä¡ liveice ¸¦ »ç¿ëÇϱâ À§ÇØ notlame À̶õ ÀÎÄÚµù ÇÁ·Î±×·¥À» ¼³Ä¡ ÇÑ´Ù. ´ÙÀ½ÀÇ »çÀÌÆ®¿¡¼­ ´Ù¿îÀ» ¹ÞÀ»¼ö ÀÖÀ¸¸ç, ¼³Ä¡¹ýÀº ¾ÐÃàÀ» ǬÈÄ ¹ÙÀ̳ʸ®¸¦ /icecast/bin ¿¡ º¹»çÇÏ¸é µÇ±â¿¡ »ý·« ÇÏ°Ú´Ù. http://hive.me.gu.edu.au/not_lame/ 4-4 liveice ¼³Á¤ X À©µµ¿ì¸¦ »ç¿ëÇÏ´Â °æ¿ì liveiceconfigure.tk ¸¦ »ç¿ëÇϸç, liveice.cfg ¸¦ Á÷Á¢ÆíÁýÇÒ¼ö ÀÖ½À´Ï´Ù. ¿©±â¿¡¼± Á÷Á¢ ÆíÁýÀ» Çغ¸¸ç, ´ë·« ¼öÁ¤ÇØ¾ß µÉ ³»¿ëÀº ´ÙÀ½°ú °°½À´Ï´Ù. # basic options # ¼­¹ö, Æнº¿öµå¸¦ ÁöÁ¤ÇÕ´Ï´Ù. Æнº¿öµå´Â hackme SERVER localhost PORT 8000 PASSWORD hackme # ÀÌÀü¿¡ ´Ù¿î ¹ÞÀº not_lame °æ·Î¸¦ Àû¾î ÁÝ´Ï´Ù. USE_LAME3 ./notlame #»ç¿îµå Ä«µå¸¦ ¼³Á¤ ÇØÁÝ´Ï´Ù. SOUNDCARD # name# name -n # ¹æ¼Û ŸÀÌƲ NAME Szyzyg - Scott's Mp3 Collection and Other Wierd Stuff # password -P # hackme ·Î ¼öÁ¤ PASSWORD hackme # ¸®½ºÆ® È­ÀÏ ÁöÁ¤ PLAYLIST playlist 4-5 liveice »ç¿ëÇϱâ [root@mins bin]# ./icecast ½ÇÇàÀ» ÇÏ°Ô µÇ¸é, ¿©·¯°¡Áö âÀÌ ¶ß¸ç ´ÙÀ½ÀÇ Å°º¸µå Á¶ÀÛÀ¸·Î ¹æ¼ÛÀ» Á¶Á¤ÇÒ¼ö ÀÖ½À´Ï´Ù. Action Channel 1 Key Channel 2 Key ~~~~~~ ~~~~~~~~~~~~~ ~~~~~~~~~~~~~ ´ÙÀ½ Æ®·¢À¸·Î À̵¿ 1 a ÀÌÀü Æ®·¢À¸·Î À̵¿ q z ½ÃÀÛ/Á¤Áö 2 s ¸®¼Â ä³Î w x º¼·ý Áõ°¡ 3 d º¼·ý °¨¼Ò e c ¼Óµµ Áõ°¡ 4 f ¼Óµµ °¨¼Ò r v ¿¬¼Ó/·£´ý/¿¬ÁÖÈÄ Á¤Áö 5 g ÀÌÀü ä³Î t b ·£´ýÇÏ°Ô ¿¬ÁÖ u m ½ºÆäÀ̽º¹Ù¸¦ ´©¸£¸é ¸¶ÀÌÅ©°¡ È°¼ºÈ­°¡ µÇ¸ç, # ´Â ¸®½ºÆ®¸¦ ´Ù½Ã ÀнÀ´Ï´Ù. ÇϳªÀÇ Ã¤³ÎÀÌ ¿¬ÁÖ°¡ µÉ¶§, ´Ù¸¥ ÇϳªÀÇ Ã¤³Î·Î °îÀ» ã´Â ½ÄÀ¸·Î ¹æ¼ÛÀ» ÇÏ¸é µË´Ï´Ù. X À©µµ¿ì »óŶó¸é ´ÙÀ½ÀÇ ¸í·ÉÀ¸·Î GUI »óÅ¿¡¼­ °£´ÜÇÏ°Ô Á¶ÀÛÇÒ¼ö ÀÖ½À´Ï´Ù. [root@mins bin]# ./frontend.tcl | liveice --- 5. ¹æ¼Û µè±â ¿©·¯ MP3 Ç÷¹À̾ ÅëÇÏ¿© ¹æ¼ÛÀ» µéÀ» ¼ö°¡ ÀÖ´Ù. xmms ³ª winamp ÀÇ °æ¿ì Ctrl + L Å°¸¦ ´©¸£¸é URL ÁÖ¼ÒâÀÌ ¶ß´Âµ¥, ÀÌ°÷¿¡ http://¼­¹öÁÖ¼Ò:8000 À» ÀÔ·Â ÇÏ¸é ¾à°£ÀÇ ¹öÆÛ¸µ ½Ã°£ÀÌ Áö³­ÈÄ ¹æ¼ÛÀÌ ³ª¿Â´Ù. --- ÀÌ ¹®¼­¿¡ Ãß°¡ÇØ¾ßµÉ »çÇ×À̳ª À߸øµÈ Á¡Àº CHoims@hitel.net ·Î ¸ÞÀÏÁֽñ⠹ٶø´Ï´Ù.