ОсновноеRadiotalkПользовательское
Общие вопросы по интернет радио вещанию
7   •   Посмотреть все темы

Автоматическое радио с помощью Icecast2 и liquidsoap

 

39
dkova @dkova
Добрый день. Хочу сделать автоматический радиопоток на сервере 1,2 гГЦ с ОС Debian. Требуется, чтобы радио само брало музыку из подпапок. Установил Icecast2 и liquidsoap, всё делал по этой инструкции: **********
Но, к сожалению, при подключении winamp пишет: [Ошибка синхронизации с потоком]. Прошу помочь с бедой. Выкладываю файлы:
Конфиг Icecast (etc/icecast2/icecast.xml):
  1. <icecast>
  2. <limits>
  3. <clients>100</clients>
  4. <sources>2</sources>
  5. <threadpool>5</threadpool>
  6. <queue-size>524288</queue-size>
  7. <client-timeout>30</client-timeout>
  8. <header-timeout>15</header-timeout>
  9. <source-timeout>10</source-timeout>
  10. <!-- If enabled, this will provide a burst of data when a client
  11. first connects, thereby significantly reducing the startup
  12. time for listeners that do substantial buffering. However,
  13. it also significantly increases latency between the source
  14. client and listening client. For low-latency setups, you
  15. might want to disable this. -->
  16. <burst-on-connect>1</burst-on-connect>
  17. <!-- same as burst-on-connect, but this allows for being more
  18. specific on how much to burst. Most people won't need to
  19. change from the default 64k. Applies to all mountpoints -->
  20. <burst-size>65535</burst-size>
  21. </limits>
  22. <authentication>
  23. <!-- Sources log in with username 'source' -->
  24. <source-password>hackme</source-password>
  25. <!-- Relays log in username 'relay' -->
  26. <relay-password>hackme</relay-password>
  27. <!-- Admin logs in with the username given below -->
  28. <admin-user>admin</admin-user>
  29. <admin-password>hackme</admin-password>
  30. </authentication>
  31. <!-- set the mountpoint for a shoutcast source to use, the default if not
  32. specified is /stream but you can change it here if an alternative is
  33. wanted or an extension is required
  34. <shoutcast-mount>/live.nsv</shoutcast-mount>
  35. -->
  36. <!-- Uncomment this if you want directory listings -->
  37. <!--
  38. <directory>
  39. <yp-url-timeout>15</yp-url-timeout>
  40. <yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
  41. </directory>
  42. -->
  43. <!-- This is the hostname other people will use to connect to your server.
  44. It affects mainly the urls generated by Icecast for playlists and yp
  45. listings. -->
  46. <hostname>localhost</hostname>
  47. <!-- You may have multiple <listener> elements -->
  48. <listen-socket>
  49. <port>8000</port>
  50. <!-- <bind-address>91.234.33.38</bind-address> -->
  51. <!-- <shoutcast-mount>/stream</shoutcast-mount> -->
  52. </listen-socket>
  53. <!--
  54. <listen-socket>
  55. <port>8001</port>
  56. </listen-socket>
  57. -->
  58. <!--<master-server>91.234.33.38</master-server>-->
  59. <!--<master-server-port>8001</master-server-port>-->
  60. <!--<master-update-interval>120</master-update-interval>-->
  61. <!--<master-password>hackme</master-password>-->
  62. <!-- setting this makes all relays on-demand unless overridden, this is
  63. useful for master relays which do not have <relay> definitions here.
  64. The default is 0 -->
  65. <!--<relays-on-demand>1</relays-on-demand>-->
  66. <!--
  67. <relay>
  68. <server>91.234.33.38</server>
  69. <port>8001</port>
  70. <mount>/example.ogg</mount>
  71. <local-mount>/different.ogg</local-mount>
  72. <on-demand>0</on-demand>
  73. <relay-shoutcast-metadata>0</relay-shoutcast-metadata>
  74. </relay>
  75. -->
  76. <!-- Only define a <mount> section if you want to use advanced options,
  77. like alternative usernames or passwords
  78. <mount>
  79. <mount-name>/example-complex.ogg</mount-name>
  80. <username>othersource</username>
  81. <password>hackmemore</password>
  82. <max-listeners>1</max-listeners>
  83. <dump-file>/tmp/dump-example1.ogg</dump-file>
  84. <burst-size>65536</burst-size>
  85. <fallback-mount>/example2.ogg</fallback-mount>
  86. <fallback-override>1</fallback-override>
  87. <fallback-when-full>1</fallback-when-full>
  88. <intro>/example_intro.ogg</intro>
  89. <hidden>1</hidden>
  90. <no-yp>1</no-yp>
  91. <authentication type="htpasswd">
  92. <option name="filename" value="myauth"/>
  93. <option name="allow_duplicate_users" value="0"/>
  94. </authentication>
  95. <on-connect>/home/icecast/bin/stream-start</on-connect>
  96. <on-disconnect>/home/icecast/bin/stream-stop</on-disconnect>
  97. </mount>
  98. <mount>
  99. <mount-name>/auth_example.ogg</mount-name>
  100. <authentication type="url">
  101. <option name="mount_add" value="http://myauthserver.net/notify_mount.php"/>
  102. <option name="mount_remove" value="http://myauthserver.net/notify_mount.php"/>
  103. <option name="listener_add" value="http://myauthserver.net/notify_listener.php"/>
  104. <option name="listener_remove" value="http://myauthserver.net/notify_listener.php"/>
  105. </authentication>
  106. </mount>
  107. -->
  108. <fileserve>1</fileserve>
  109. <paths>
  110. <!-- basedir is only used if chroot is enabled -->
  111. <basedir>/usr/share/icecast2</basedir>
  112. <!-- Note that if <chroot> is turned on below, these paths must both
  113. be relative to the new root, not the original root -->
  114. <logdir>/var/log/icecast2</logdir>
  115. <webroot>/usr/share/icecast2/web</webroot>
  116. <adminroot>/usr/share/icecast2/admin</adminroot>
  117. <!-- <pidfile>/usr/share/icecast2/icecast.pid</pidfile> -->
  118. <!-- Aliases: treat requests for 'source' path as being for 'dest' path
  119. May be made specific to a port or bound address using the "port"
  120. and "bind-address" attributes.
  121. -->
  122. <!--
  123. <alias source="/foo" dest="/bar"/>
  124. -->
  125. <!-- Aliases: can also be used for simple redirections as well,
  126. this example will redirect all requests for ********** to
  127. the status page
  128. -->
  129. <alias source="/" dest="/status.xsl"/>
  130. </paths>
  131. <logging>
  132. <accesslog>access.log</accesslog>
  133. <errorlog>error.log</errorlog>
  134. <!-- <playlistlog>playlist.log</playlistlog> -->
  135. <loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
  136. <logsize>10000</logsize> <!-- Max size of a logfile -->
  137. <!-- If logarchive is enabled (1), then when logsize is reached
  138. the logfile will be moved to [error|access|playlist].log.DATESTAMP,
  139. otherwise it will be moved to [error|access|playlist].log.old.
  140. Default is non-archive mode (i.e. overwrite)
  141. -->
  142. <!-- <logarchive>1</logarchive> -->
  143. </logging>
  144. <security>
  145. <chroot>0</chroot>
  146. <!--
  147. <changeowner>
  148. <user>nobody</user>
  149. <group>nogroup</group>
  150. </changeowner>
  151. -->
  152. </security>
  153. </icecast>


Конфиг liquidsoap (/etc/liquidsoap/radio.liq):
  1. #!/usr/bin/liquidsoap
  2. # Set the files and playlists,
  3. default = single("/var/www/dkova/data/www/fanclubber.org.ua/file/music/2012/09/0e151d2e9413e72c04bf55e7e4e190b1.mp3")
  4. jingles = playlist("/var/www/dkova/data/www/fanclubber.org.ua/file/music")
  5. tech = playlist.safe("/var/www/dkova/data/www/fanclubber.org.ua/file/music")
  6. minimal = playlist("/var/www/dkova/data/www/fanclubber.org.ua/file/music")
  7. prog_trance = playlist("/var/www/dkova/data/www/fanclubber.org.ua/file/music")
  8. tech_trance = playlist("/var/www/dkova/data/www/fanclubber.org.ua/file/music")
  9. electro_house = playlist("/var/www/dkova/data/www/fanclubber.org.ua/file/music")
  10. prog_house = playlist("/var/www/dkova/data/www/fanclubber.org.ua/file/music")
  11. psy = playlist("/var/www/dkova/data/www/fanclubber.org.ua/file/music")
  12. chillout = playlist("/var/www/dkova/data/www/fanclubber.org.ua/file/music")
  13. sets = playlist("/var/www/dkova/data/www/fanclubber.org.ua/file/music")
  14. liveset = mksafe(input.http("http://66.7.216.22:8968"))
  15. liveset = rewrite_metadata([("artist", "Santiago Saa"),("title", "120 minutest Live")], liveset)
  16. # Play files and playlists according to the radio program,
  17. # and the default file if anything goes wrong.
  18. radio = fallback(
  19. [ switch( track_sensitive=false,
  20. [
  21. ({ (1w or 2w or 3w) and 5h-8h }, prog_house),
  22. ({ (4w or 5w) and 5h05-8h }, prog_house),
  23. ({ (1w or 2w or 3w or 4w or 5w) and 8h-11h }, prog_trance),
  24. ({ (1w or 2w or 3w or 4w or 5w) and 11h-13h }, electro_house),
  25. ({ (1w or 2w or 3w or 4w or 5w) and 13h-15h }, prog_house),
  26. ({ (1w or 2w or 3w or 4w or 5w) and 15h-17h }, tech),
  27. ({ (1w or 2w or 3w or 4w or 5w) and 17h-20h }, sets),
  28. ({ (1w or 2w or 3w or 4w or 5w) and 20h-22h }, tech),
  29. ({ (1w or 2w or 3w or 4w or 5w) and 22h-0h }, prog_house),
  30. ({ 2w and 0h-5h }, psy),
  31. ({ 3w and 0h-5h }, psy),
  32. ({ 4w and 0h-3h }, psy),
  33. ({ 4w and 3h-5h05 }, liveset),
  34. ({ 5w and 0h-3h }, psy),
  35. ({ 5w and 3h-5h05 }, liveset),
  36. ({ 6w and 0h-3h }, psy),
  37. ({ 6w and 3h-5h05 }, liveset),
  38. ({ 6w and 5h05-8h }, psy),
  39. ({ 6w and 8h-11h }, tech_trance),
  40. ({ 6w and 11h-18h }, prog_trance),
  41. ({ 6w and 18h-21h }, tech_trance),
  42. ({ 6w and 21h-0h }, psy),
  43. ({ 7w and 0h-2h }, tech_trance),
  44. ({ 7w and 2h-3h }, psy),
  45. ({ 7w and 3h-5h }, psy),
  46. ({ 7w and 5h-7h }, tech),
  47. ({ 7w and 7h-23h59 }, minimal),
  48. ({ 1w and 0h-5h }, minimal),
  49. ({ true }, tech),
  50. ]),
  51. tech])
  52. # Add the normal jingles
  53. radio = random(weights=[1,5],[ jingles, radio ])
  54. # Output the full stream in OGG and MP3
  55. output.icecast.mp3(
  56. host="localhost",port=80, userradio”,password="hackmeradio",
  57. genre="Electronica",url="http://localhost",
  58. description="Radio",mount="radio",
  59. name="(((( Evolution Bass Radio ))))", bitrate=128,radio)


IP сервера: 91.234.33.38
Путь к папке с музыкой(в ней подпапки): /var/www/dkova/data/www/fanclubber.org.ua/file/music

Очень прошу помощи.

0
6245
Тарас @tarasian666
кога ж народ научится выкладывать лог...

хотя тут и так очевидно
<port>8000</port>
port=80,

0
39
dkova @dkova
tarasian666 пишет:

кога ж народ научится выкладывать лог...

хотя тут и так очевидно
<port>8000</port>
port=80,

access.log
  1. 93.75.62.118 - - [21/Oct/2012:19:42:20 +0300] "GET / HTTP/1.0" 200 1141 "-" "WinampMPEG/5.62, Ultravox/2.1" 1
  2. 93.75.62.118 - - [21/Oct/2012:19:53:29 +0300] "GET / HTTP/1.0" 200 1141 "-" "WinampMPEG/5.62, Ultravox/2.1" 1
  3. 93.75.62.118 - - [21/Oct/2012:19:54:45 +0300] "GET / HTTP/1.1" 200 1141 "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4" 0
  4. 93.75.62.118 - - [21/Oct/2012:19:54:45 +0300] "GET /style.css HTTP/1.1" 200 5059 "http://91.234.33.38:8000/" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4" 0
  5. 93.75.62.118 - - [21/Oct/2012:19:54:45 +0300] "GET /corner_topleft.jpg HTTP/1.1" 200 8238 "http://91.234.33.38:8000/" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4" 0
  6. 93.75.62.118 - - [21/Oct/2012:19:54:45 +0300] "GET /corner_bottomleft.jpg HTTP/1.1" 200 8253 "http://91.234.33.38:8000/" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4" 0
  7. 93.75.62.118 - - [21/Oct/2012:19:54:46 +0300] "GET /icecast.png HTTP/1.1" 200 5161 "http://91.234.33.38:8000/" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4" 1
  8. 93.75.62.118 - - [21/Oct/2012:19:54:46 +0300] "GET /corner_topright.jpg HTTP/1.1" 200 8240 "http://91.234.33.38:8000/" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4" 1
  9. 93.75.62.118 - - [21/Oct/2012:19:54:46 +0300] "GET /corner_bottomright.jpg HTTP/1.1" 200 8244 "http://91.234.33.38:8000/" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4" 1
  10. 93.75.62.118 - - [21/Oct/2012:19:54:58 +0300] "GET /stream/ HTTP/1.1" 404 106 "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4" 0
  11. 93.75.62.118 - - [21/Oct/2012:19:57:51 +0300] "GET / HTTP/1.0" 200 1141 "-" "WinampMPEG/5.62, Ultravox/2.1" 0
  12. 91.124.136.95 - - [21/Oct/2012:20:58:17 +0300] "GET / HTTP/1.1" 200 1141 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1" 0
  13. 91.124.136.95 - - [21/Oct/2012:20:58:17 +0300] "GET /style.css HTTP/1.1" 200 5059 "http://91.234.33.38:8000/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1" 0
  14. 91.124.136.95 - - [21/Oct/2012:20:58:17 +0300] "GET /corner_topleft.jpg HTTP/1.1" 200 8238 "http://91.234.33.38:8000/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1" 0
  15. 91.124.136.95 - - [21/Oct/2012:20:58:18 +0300] "GET /corner_bottomleft.jpg HTTP/1.1" 200 8253 "http://91.234.33.38:8000/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1" 1
  16. 91.124.136.95 - - [21/Oct/2012:20:58:18 +0300] "GET /icecast.png HTTP/1.1" 200 5161 "http://91.234.33.38:8000/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1" 0
  17. 91.124.136.95 - - [21/Oct/2012:20:58:18 +0300] "GET /corner_topright.jpg HTTP/1.1" 200 8240 "http://91.234.33.38:8000/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1" 0
  18. 91.124.136.95 - - [21/Oct/2012:20:58:18 +0300] "GET /corner_bottomright.jpg HTTP/1.1" 200 8244 "http://91.234.33.38:8000/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1" 0
  19. 91.124.136.95 - - [21/Oct/2012:20:58:18 +0300] "GET /favicon.ico HTTP/1.1" 404 106 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1" 0
  20. 93.75.62.118 - - [22/Oct/2012:06:31:07 +0300] "GET / HTTP/1.0" 200 1141 "-" "WinampMPEG/5.62, Ultravox/2.1" 0
  21. 93.75.62.118 - - [22/Oct/2012:06:31:53 +0300] "GET / HTTP/1.1" 200 1141 "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4" 0
  22. 93.75.62.118 - - [22/Oct/2012:06:31:54 +0300] "GET /style.css HTTP/1.1" 200 5059 "http://fanclubber.org.ua:8000/" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4" 1
  23. 93.75.62.118 - - [22/Oct/2012:06:31:54 +0300] "GET /corner_bottomleft.jpg HTTP/1.1" 200 8253 "http://fanclubber.org.ua:8000/" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4" 1
  24. 93.75.62.118 - - [22/Oct/2012:06:31:54 +0300] "GET /corner_topleft.jpg HTTP/1.1" 200 8238 "http://fanclubber.org.ua:8000/" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4" 1
  25. 93.75.62.118 - - [22/Oct/2012:06:31:54 +0300] "GET /corner_topright.jpg HTTP/1.1" 200 8240 "http://fanclubber.org.ua:8000/" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4" 1
  26. 93.75.62.118 - - [22/Oct/2012:06:31:54 +0300] "GET /icecast.png HTTP/1.1" 200 5161 "http://fanclubber.org.ua:8000/" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4" 1
  27. 93.75.62.118 - - [22/Oct/2012:06:31:54 +0300] "GET /corner_bottomright.jpg HTTP/1.1" 200 8244 "http://fanclubber.org.ua:8000/" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4" 0
  28. 93.75.62.118 - - [22/Oct/2012:06:31:55 +0300] "GET /favicon.ico HTTP/1.1" 404 106 "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4" 1
  29. 93.75.62.118 - - [22/Oct/2012:06:31:57 +0300] "GET /admin/ HTTP/1.1" 401 115 "http://fanclubber.org.ua:8000/" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4" 0
  30. 93.75.62.118 - - [22/Oct/2012:06:32:12 +0300] "GET /admin/ HTTP/1.1" 200 2861 "http://fanclubber.org.ua:8000/" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4" 0
  31. 93.75.62.118 - - [22/Oct/2012:06:32:12 +0300] "GET /style.css HTTP/1.1" 200 5059 "http://fanclubber.org.ua:8000/admin/" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4" 0
  32. 93.75.62.118 - - [22/Oct/2012:06:32:12 +0300] "GET /corner_topleft.jpg HTTP/1.1" 200 8238 "http://fanclubber.org.ua:8000/admin/" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4" 0
  33. 93.75.62.118 - - [22/Oct/2012:06:32:12 +0300] "GET /icecast.png HTTP/1.1" 200 5161 "http://fanclubber.org.ua:8000/admin/" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4" 0
  34. 93.75.62.118 - - [22/Oct/2012:06:32:12 +0300] "GET /corner_bottomleft.jpg HTTP/1.1" 200 8253 "http://fanclubber.org.ua:8000/admin/" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4" 0
  35. 93.75.62.118 - - [22/Oct/2012:06:32:12 +0300] "GET /corner_topright.jpg HTTP/1.1" 200 8240 "http://fanclubber.org.ua:8000/admin/" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4" 0
  36. 93.75.62.118 - - [22/Oct/2012:06:32:13 +0300] "GET /corner_bottomright.jpg HTTP/1.1" 200 8244 "http://fanclubber.org.ua:8000/admin/" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4" 1
  37. 93.75.62.118 - - [22/Oct/2012:06:32:13 +0300] "GET /favicon.ico HTTP/1.1" 404 106 "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4" 0
  38. 93.75.62.118 - - [22/Oct/2012:06:34:35 +0300] "GET / HTTP/1.0" 200 1141 "-" "WinampMPEG/5.62, Ultravox/2.1" 0
  39. 93.75.62.118 - - [22/Oct/2012:06:34:37 +0300] "GET / HTTP/1.0" 200 1141 "-" "WinampMPEG/5.62, Ultravox/2.1" 1
  40. 93.75.62.118 - - [22/Oct/2012:06:34:37 +0300] "GET / HTTP/1.0" 200 1141 "-" "WinampMPEG/5.62, Ultravox/2.1" 0
  41. 93.75.62.118 - - [22/Oct/2012:06:34:38 +0300] "GET / HTTP/1.0" 200 1141 "-" "WinampMPEG/5.62, Ultravox/2.1" 0
  42. 93.75.62.118 - - [22/Oct/2012:06:34:41 +0300] "GET / HTTP/1.0" 200 1141 "-" "WinampMPEG/5.62, Ultravox/2.1" 0
  43. 93.75.62.118 - - [22/Oct/2012:06:34:42 +0300] "GET / HTTP/1.0" 200 1141 "-" "WinampMPEG/5.62, Ultravox/2.1" 0
  44. 93.75.62.118 - - [22/Oct/2012:06:34:43 +0300] "GET / HTTP/1.0" 200 1141 "-" "WinampMPEG/5.62, Ultravox/2.1" 1
  45. 93.75.62.118 - - [22/Oct/2012:06:34:43 +0300] "GET / HTTP/1.0" 200 1141 "-" "WinampMPEG/5.62, Ultravox/2.1" 0
  46. 93.75.62.118 - - [22/Oct/2012:06:34:44 +0300] "GET / HTTP/1.0" 200 1141 "-" "WinampMPEG/5.62, Ultravox/2.1" 0
  47. 93.75.62.118 - - [22/Oct/2012:06:34:46 +0300] "GET / HTTP/1.0" 200 1141 "-" "WinampMPEG/5.62, Ultravox/2.1" 1
  48. 93.75.62.118 - - [22/Oct/2012:06:34:46 +0300] "GET / HTTP/1.0" 200 1141 "-" "WinampMPEG/5.62, Ultravox/2.1" 0
  49. 93.75.62.118 - - [22/Oct/2012:06:34:47 +0300] "GET / HTTP/1.0" 200 1141 "-" "WinampMPEG/5.62, Ultravox/2.1" 0
  50. 93.75.62.118 - - [22/Oct/2012:06:34:50 +0300] "GET / HTTP/1.0" 200 1141 "-" "WinampMPEG/5.62, Ultravox/2.1" 0


error.log:
  1. [2012-10-22 06:29:53] INFO yp/yp_shutdown YP thread down
  2. [2012-10-22 06:29:54] INFO stats/stats_shutdown stats thread finished
  3. [2012-10-22 06:30:07] INFO main/main Icecast 2.3.2 server started
  4. [2012-10-22 06:30:07] INFO connection/get_ssl_certificate No SSL capability
  5. [2012-10-22 06:30:07] INFO stats/_stats_thread stats thread started
  6. [2012-10-22 06:30:07] INFO fserve/fserv_thread_function file serving thread started
  7. [2012-10-22 06:30:07] INFO yp/yp_update_thread YP update thread started
  8. [2012-10-22 06:30:30] INFO sighandler/_sig_die Caught signal 15, shutting down...
  9. [2012-10-22 06:30:30] INFO main/main Shutting down
  10. [2012-10-22 06:30:30] INFO fserve/fserve_shutdown file serving thread stopped
  11. [2012-10-22 06:30:31] INFO slave/_slave_thread shutting down current relays
  12. [2012-10-22 06:30:31] INFO slave/_slave_thread Slave thread shutdown complete
  13. [2012-10-22 06:30:31] INFO auth/auth_shutdown Auth shutdown
  14. [2012-10-22 06:30:31] INFO yp/yp_shutdown YP thread down
  15. [2012-10-22 06:30:31] INFO stats/stats_shutdown stats thread finished
  16. [2012-10-22 06:30:41] INFO main/main Icecast 2.3.2 server started
  17. [2012-10-22 06:30:41] INFO connection/get_ssl_certificate No SSL capability
  18. [2012-10-22 06:30:41] INFO stats/_stats_thread stats thread started
  19. [2012-10-22 06:30:41] INFO fserve/fserv_thread_function file serving thread started
  20. [2012-10-22 06:30:41] INFO yp/yp_update_thread YP update thread started
  21. [2012-10-22 06:31:53] INFO fserve/fserve_client_create checking for file /style.css (/usr/share/icecast2/web/style.css)
  22. [2012-10-22 06:31:53] INFO fserve/fserve_client_create checking for file /corner_bottomleft.jpg (/usr/share/icecast2/web/corner_bottomleft.jpg)
  23. [2012-10-22 06:31:53] INFO fserve/fserve_client_create checking for file /corner_topleft.jpg (/usr/share/icecast2/web/corner_topleft.jpg)
  24. [2012-10-22 06:31:54] INFO fserve/fserve_client_create checking for file /corner_topright.jpg (/usr/share/icecast2/web/corner_topright.jpg)
  25. [2012-10-22 06:31:54] INFO fserve/fserve_client_create checking for file /icecast.png (/usr/share/icecast2/web/icecast.png)
  26. [2012-10-22 06:31:54] INFO fserve/fserve_client_create checking for file /corner_bottomright.jpg (/usr/share/icecast2/web/corner_bottomright.jpg)
  27. [2012-10-22 06:31:54] INFO fserve/fserve_client_create checking for file /favicon.ico (/usr/share/icecast2/web/favicon.ico)
  28. [2012-10-22 06:31:54] WARN fserve/fserve_client_create req for file "/usr/share/icecast2/web/favicon.ico" No such file or directory
  29. [2012-10-22 06:31:57] INFO admin/admin_handle_request Bad or missing password on admin command request (command: )
  30. [2012-10-22 06:32:12] INFO fserve/fserve_client_create checking for file /style.css (/usr/share/icecast2/web/style.css)
  31. [2012-10-22 06:32:12] INFO fserve/fserve_client_create checking for file /corner_topleft.jpg (/usr/share/icecast2/web/corner_topleft.jpg)
  32. [2012-10-22 06:32:12] INFO fserve/fserve_client_create checking for file /corner_bottomleft.jpg (/usr/share/icecast2/web/corner_bottomleft.jpg)
  33. [2012-10-22 06:32:12] INFO fserve/fserve_client_create checking for file /corner_topright.jpg (/usr/share/icecast2/web/corner_topright.jpg)
  34. [2012-10-22 06:32:12] INFO fserve/fserve_client_create checking for file /icecast.png (/usr/share/icecast2/web/icecast.png)
  35. [2012-10-22 06:32:12] INFO fserve/fserve_client_create checking for file /corner_bottomright.jpg (/usr/share/icecast2/web/corner_bottomright.jpg)
  36. [2012-10-22 06:32:13] INFO fserve/fserve_client_create checking for file /favicon.ico (/usr/share/icecast2/web/favicon.ico)
  37. [2012-10-22 06:32:13] WARN fserve/fserve_client_create req for file "/usr/share/icecast2/web/favicon.ico" No such file or directory
  38. [2012-10-22 06:33:11] INFO sighandler/_sig_die Caught signal 15, shutting down...
  39. [2012-10-22 06:33:11] INFO main/main Shutting down
  40. [2012-10-22 06:33:11] INFO fserve/fserve_shutdown file serving thread stopped
  41. [2012-10-22 06:33:12] INFO slave/_slave_thread shutting down current relays
  42. [2012-10-22 06:33:12] INFO slave/_slave_thread Slave thread shutdown complete
  43. [2012-10-22 06:33:12] INFO auth/auth_shutdown Auth shutdown
  44. [2012-10-22 06:33:12] INFO yp/yp_shutdown YP thread down
  45. [2012-10-22 06:33:12] INFO stats/stats_shutdown stats thread finished
  46. [2012-10-22 06:33:22] INFO main/main Icecast 2.3.2 server started
  47. [2012-10-22 06:33:22] INFO connection/get_ssl_certificate No SSL capability
  48. [2012-10-22 06:33:22] INFO stats/_stats_thread stats thread started
  49. [2012-10-22 06:33:22] INFO fserve/fserv_thread_function file serving thread started
  50. [2012-10-22 06:33:22] INFO yp/yp_update_thread YP update thread started


Обновлённый radio.liq:
  1. #!/usr/bin/liquidsoap
  2. # Set the files and playlists,
  3. default = single("/var/www/dkova/data/www/fanclubber.org.ua/file/music/2012/09/0e151d2e9413e72c04bf55e7e4e190b1.mp3")
  4. jingles = playlist("/var/www/dkova/data/www/fanclubber.org.ua/file/music")
  5. tech = playlist.safe("/var/www/dkova/data/www/fanclubber.org.ua/file/music")
  6. minimal = playlist("/var/www/dkova/data/www/fanclubber.org.ua/file/music")
  7. prog_trance = playlist("/var/www/dkova/data/www/fanclubber.org.ua/file/music")
  8. tech_trance = playlist("/var/www/dkova/data/www/fanclubber.org.ua/file/music")
  9. electro_house = playlist("/var/www/dkova/data/www/fanclubber.org.ua/file/music")
  10. prog_house = playlist("/var/www/dkova/data/www/fanclubber.org.ua/file/music")
  11. psy = playlist("/var/www/dkova/data/www/fanclubber.org.ua/file/music")
  12. chillout = playlist("/var/www/dkova/data/www/fanclubber.org.ua/file/music")
  13. sets = playlist("/var/www/dkova/data/www/fanclubber.org.ua/file/music")
  14. liveset = mksafe(input.http("http://66.7.216.22:8968"))
  15. liveset = rewrite_metadata([("artist", "Santiago Saa"),("title", "120 minutest Live")], liveset)
  16. # Play files and playlists according to the radio program,
  17. # and the default file if anything goes wrong.
  18. radio = fallback(
  19. [ switch( track_sensitive=false,
  20. [
  21. ({ (1w or 2w or 3w) and 5h-8h }, prog_house),
  22. ({ (4w or 5w) and 5h05-8h }, prog_house),
  23. ({ (1w or 2w or 3w or 4w or 5w) and 8h-11h }, prog_trance),
  24. ({ (1w or 2w or 3w or 4w or 5w) and 11h-13h }, electro_house),
  25. ({ (1w or 2w or 3w or 4w or 5w) and 13h-15h }, prog_house),
  26. ({ (1w or 2w or 3w or 4w or 5w) and 15h-17h }, tech),
  27. ({ (1w or 2w or 3w or 4w or 5w) and 17h-20h }, sets),
  28. ({ (1w or 2w or 3w or 4w or 5w) and 20h-22h }, tech),
  29. ({ (1w or 2w or 3w or 4w or 5w) and 22h-0h }, prog_house),
  30. ({ 2w and 0h-5h }, psy),
  31. ({ 3w and 0h-5h }, psy),
  32. ({ 4w and 0h-3h }, psy),
  33. ({ 4w and 3h-5h05 }, liveset),
  34. ({ 5w and 0h-3h }, psy),
  35. ({ 5w and 3h-5h05 }, liveset),
  36. ({ 6w and 0h-3h }, psy),
  37. ({ 6w and 3h-5h05 }, liveset),
  38. ({ 6w and 5h05-8h }, psy),
  39. ({ 6w and 8h-11h }, tech_trance),
  40. ({ 6w and 11h-18h }, prog_trance),
  41. ({ 6w and 18h-21h }, tech_trance),
  42. ({ 6w and 21h-0h }, psy),
  43. ({ 7w and 0h-2h }, tech_trance),
  44. ({ 7w and 2h-3h }, psy),
  45. ({ 7w and 3h-5h }, psy),
  46. ({ 7w and 5h-7h }, tech),
  47. ({ 7w and 7h-23h59 }, minimal),
  48. ({ 1w and 0h-5h }, minimal),
  49. ({ true }, tech),
  50. ]),
  51. tech])
  52. # Add the normal jingles
  53. radio = random(weights=[1,5],[ jingles, radio ])
  54. # Output the full stream in OGG and MP3
  55. output.icecast.mp3(
  56. host="localhost",port=8000, user=”admin”,password="hackme",
  57. genre="Electronica",url="http://localhost",
  58. description="Radio",mount="radio",
  59. name="(((( Evolution Bass Radio ))))", bitrate=128,radio)


Такая же ошибка... Помогите пожалуйста

0
6245
Тарас @tarasian666
А где лог liquidsoap? Icecast и так видно что работает

0
39
dkova @dkova
tarasian666 пишет:

А где лог liquidsoap? Icecast и так видно что работает

В папке логов /var/log/liquidsoap нет ничего

0
6245
Тарас @tarasian666
адрес к логу задается в конфиге liquidsoap

я вообще начинаю подозревать что liquidsoap даже не запускали

0
39
dkova @dkova
tarasian666 пишет:

адрес к логу задается в конфиге liquidsoap

я вообще начинаю подозревать что liquidsoap даже не запускали

Я заметил что при запуске liquidsoap пишет типа "radio.liq: empty token"

0
6245
Тарас @tarasian666
ну что вам сказать, мало того что мануал по которому сделано не полный и устарел так вы еще не в точности сделали то что там ниписано

0
39
dkova @dkova
tarasian666 пишет:

ну что вам сказать, мало того что мануал по которому сделано не полный и устарел так вы еще не в точности сделали то что там ниписано

Прошу указать на ошибку

0
39
dkova @dkova
Вот точный ответ ssh:
  1. Starting channels: radio.liq Line 56, char 37: Empty token
  2. OK

0
95
Rodos @Rodos
Подскажите как добавить свое радио в каталог **********? Что-то я не вижу кнопки Регистрация и вообще инструкции. У кого есть опыт, поделитесь плиз.

0
419
gyurgin_ @gyurgin_
  1. <directory>
  2. <yp-url-timeout>15</yp-url-timeout>
  3. <yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
  4. </directory>

Добавить в конфиг icecast, ну и рекомендую правильно заполнить поля location и admin.

0