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

Переход с Icecast kh29 на kh30

 

410
Евгений @Drakkar
Всем привет. Обновил версию айскаста.... перед этим сохранил конфиг старой из файла Icecast.xml .... но в новой перестали отображаться треки ..даже англоязычные :( помогите плиз. Вот конфиг
  1. <icecast>
  2. <limits>
  3. <sources>800</sources>
  4. </limits>
  5. <authentication>
  6. <source-password>pass</source-password>
  7. <admin-user>Drakkar</admin-user>
  8. <admin-password>pass</admin-password>
  9. </authentication>
  10. <!--
  11. <directory>
  12. <yp-url-timeout>15</yp-url-timeout>
  13. <yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
  14. </directory>
  15. -->
  16. <hostname>localhost</hostname>
  17. <listen-socket>
  18. <port>8000</port>
  19. </listen-socket>
  20. <mount>
  21. <mount-name>/kamchatka_live</mount-name>
  22. <username>source</username>
  23. <password>pass</password>
  24. <charset>cp1251</charset>
  25. <fallback-mount>/nonstop</fallback-mount>
  26. <fallback-override>1</fallback-override>
  27. <fallback-when-full>1</fallback-when-full>
  28. </mount>
  29. <mount>
  30. <mount-name>/nonstop</mount-name>
  31. <username>source</username>
  32. <password>pass</password>
  33. <charset>cp1251</charset>
  34. <fallback-mount>/kamchatka_live</fallback-mount>
  35. <fallback-override>1</fallback-override>
  36. <fallback-when-full>1</fallback-when-full>
  37. </mount>
  38. <fileserve>1</fileserve>
  39. <paths>
  40. <logdir>./logs</logdir>
  41. <webroot>./web</webroot>
  42. <adminroot>./admin</adminroot>
  43. <alias source="/" dest="/index.html"/>
  44. </paths>
  45. <logging>
  46. <accesslog>access.log</accesslog>
  47. <errorlog>error.log</errorlog>
  48. <loglevel>1</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
  49. </logging>
  50. <security>
  51. <chroot>0</chroot>
  52. </security>
  53. </icecast>

0
112
Юрий @FortNoxBY
<mount>
<mount-name>/kamchatka_live</mount-name>
<username>source</username>
<password>pass</password>
<charset>cp1251</charset>
<fallback-mount>/nonstop</fallback-mount>
<fallback-override>1</fallback-override>
<fallback-when-full>1</fallback-when-full>
</mount>

<mount>
<mount-name>/nonstop</mount-name>
<username>source</username>
<password>pass</password>
<charset>cp1251</charset>
<fallback-mount>/kamchatka_live</fallback-mount>
<fallback-override>1</fallback-override>
<fallback-when-full>1</fallback-when-full>
</mount>

немного не втему но зачем ты прописал именно так?

0
6245
Тарас @tarasian666
FortNoxBY верно говорит, сначала убери лишние фолбеки, а там видно будет

0
410
Евгений @Drakkar
FortNoxBY
Как это зачем? это у меня серверный конфиг, на нём заведён nonstop ... и когда удалённый диджей по маунту /kamchatka_live подключается, то перебивает nonstop своим потоком.
tarasian666 - Вот.
P.S. - Кстати проблема отображения треков на странице айскаста kh30 Самоустранилась. Уж извините за билиберду )))

Отредактировано Drakkar - 13.01.2012
0
112
Юрий @FortNoxBY
у меня дебиан с Icecast 2.3.2-kh29.....как мне обновится до новой версии?....просто скачать архив и распоковать в одноименную папку на сервере?...а то с русскими песнями трабла...не отображаются....только на латинице

0
6245
Тарас @tarasian666
нет, не просто.
не факт что в новой версии будет показывать

0
410
Евгений @Drakkar
FortNoxBY пишет:

у меня дебиан с Icecast 2.3.2-kh29.....как мне обновится до новой версии?....просто скачать архив и распоковать в одноименную папку на сервере?...а то с русскими песнями трабла...не отображаются....только на латинице

Не помогает. В новой версии 30 не показывает русские буквы, хотя СР1251 стоит. Вышла kh31 ... но народ в ней не разобрался, а мне ссыкотно пока её ставить))

0
1572
KyPIIaToB @KyPIIaToB
Там вроде как уже kh31 лежит, уже кто обновился ?.

Отредактировано KyPIIaToB - 20.01.2012
0
6245
Тарас @tarasian666
юзаю trunk и не имею проблем, kh версии как я понял по описанию это промежуточные версии перед обновлением trunk
хотя последнее обновление транка интересное было, без указаний кодировки кирилицу писал крякозябрами, но в плеере норм и перекодировать на сайт не проблема, но когда указывал 1251 то на статистике писало html символами кирилицу

0
86
Dakar @Dakar
KyPIIaToB пишет:

Там вроде как уже kh31 лежит, уже кто обновился ?.


Ставил я 31ю жесть ребятки память кушает ((( за 2 дня потребление в 2 раза подскачила... много приятностей конечно но... потребляет пямять логи чистые единственно теперь поддержка curl запросов появилась но не обязательно с этой опцией компилить

0
112
Юрий @FortNoxBY
ищу рабочий файл Icecast.xml для Icecast 2.3.2-kh29 который настроен под вас, параметры поставлю свои, пытался поудалять все лишнее но окозалось что то, не далеко лишнее...
Вот мое содержимое....что здесь вообще ненужно...текста много галаза разбегаются
  1. <icecast>
  2. <limits>
  3. <clients>100</clients>
  4. <sources>2</sources>
  5. <queue-size>524288</queue-size>
  6. <client-timeout>30</client-timeout>
  7. <header-timeout>15</header-timeout>
  8. <source-timeout>10</source-timeout>
  9. <!-- same as burst-on-connect, but this allows for being more
  10. specific on how much to burst. Most people won't need to
  11. change from the default 64k. Applies to all mountpoints -->
  12. <burst-size>65535</burst-size>
  13. <!--
  14. <max-bandwidth>100M</max-bandwidth>
  15. -->
  16. </limits>
  17. <authentication>
  18. <!-- Sources log in with username 'source' -->
  19. <source-password>hackme</source-password>
  20. <!-- Relays log in username 'relay' -->
  21. <relay-password>hackme</relay-password>
  22. <!-- Admin logs in with the username given below -->
  23. <admin-user>admin</admin-user>
  24. <admin-password>hackme</admin-password>
  25. </authentication>
  26. <!-- Uncomment this if you want directory listings -->
  27. <!--
  28. <directory>
  29. <yp-url-timeout>15</yp-url-timeout>
  30. <yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
  31. </directory>
  32. -->
  33. <!-- This is the hostname other people will use to connect to your server.
  34. It affects mainly the urls generated by Icecast for playlists and yp
  35. listings. -->
  36. <hostname>localhost</hostname>
  37. <!-- port to use when talking to YP etc -->
  38. <!--<port>8000</port> -->
  39. <!-- You may have multiple <listener> elements -->
  40. <listen-socket>
  41. <port>8000</port>
  42. <!-- <bind-address>127.0.0.1</bind-address> -->
  43. <!-- use <shoutcast-mount> in here to implicitly define port n+1 -->
  44. </listen-socket>
  45. <!--
  46. <listen-socket>
  47. <port>8001</port>
  48. <ssl>1</ssl>
  49. </listen-socket>
  50. -->
  51. <!--<master-server>127.0.0.1</master-server>-->
  52. <!--<master-server-port>8001</master-server-port>-->
  53. <!--<master-update-interval>120</master-update-interval>-->
  54. <!--<master-username>hackme</master-username>-->
  55. <!--<master-password>hackme</master-password>-->
  56. <!-- issue above authentication for relays in slave setup -->
  57. <!--<master-relay-auth>1</master-relay-auth>-->
  58. <!-- setting this makes all relays on-demand unless overridden, this is
  59. useful for master relays which do not have <relay> definitions here.
  60. The default is 0 -->
  61. <!--<relays-on-demand>1</relays-on-demand>-->
  62. <!-- Request the master server to redirect new listeners to this slave
  63. the details passed are based on <hostname> and <port> -->
  64. <!--<master-redirect>1</master-redirect>-->
  65. <!-- The maximum nuber of slaves that can register for new listener redirection. -->
  66. <!--<max-redirect-slaves>10</max-redirect-slaves>-->
  67. <!-- Relays. State connection information, and by default
  68. request inline metadata for mp3 streams if available.
  69. An on-demand relay will only retrieve the stream if
  70. there are listeners connected -->
  71. <!--
  72. <relay>
  73. <server>127.0.0.1</server>
  74. <port>8001</port>
  75. <mount>/example.ogg</mount>
  76. <local-mount>/different.ogg</local-mount>
  77. <on-demand>1</on-demand>
  78. <retry-delay>30</retry-delay>
  79. <relay-shoutcast-metadata>0</relay-shoutcast-metadata>
  80. </relay>
  81. -->
  82. <!-- Allow multiple master servers to be specified, tries each one in turn.
  83. <relay>
  84. <local-mount>/stream.mp3</local-mount>
  85. <server>a.b.c.d</server>
  86. <timeout>6</timeout>
  87. <master>
  88. <port>8000</port>
  89. <mount>/a</mount>
  90. </master>
  91. <master>
  92. <port>80</port>
  93. <mount>/</mount>
  94. </master>
  95. </relay>
  96. -->
  97. <!-- Only define a <mount> section if you want to use advanced options,
  98. like alternative usernames or passwords
  99. With a master/slave setup you need to define a mount in the master
  100. or else the server will assume that the stream is not to be made
  101. available to the slave.
  102. <mount>
  103. <mount-name>/*.ogg</mount-name>
  104. <username>othersource</username>
  105. <password>hackmemore</password>
  106. <max-listeners>1</max-listeners>
  107. <max-bandwidth>1000k</max-bandwidth>
  108. <file-seekable>0</file-seekable>
  109. <dump-file>/backup/live-%d-%b.ogg</dump-file>
  110. <burst-size>65536</burst-size>
  111. <fallback-mount>/example2.ogg</fallback-mount>
  112. <fallback-override>1</fallback-override>
  113. <fallback-when-full>1</fallback-when-full>
  114. <intro>/path/to/stream-intro.ogg</intro>
  115. <max-listener-duration>3600</max-listener-duration>
  116. <hidden>1</hidden>
  117. <authentication type="htpasswd">
  118. <option name="filename" value="myauth"/>
  119. <option name="allow_duplicate_users" value="0"/>
  120. </authentication>
  121. <on-connect>/home/icecast/bin/stream-start</on-connect>
  122. <on-disconnect>/home/icecast/bin/stream-stop</on-disconnect>
  123. <file-seekable>0</file-seekable>
  124. </mount>
  125. -->
  126. <!-- other auth possibilities include running a command
  127. to do the auth, mount, user and pass are passed via
  128. stdin to the program
  129. <mount>
  130. ....
  131. <authentication type="command">
  132. <option name="listener_add" value="auth_verify"/>
  133. </authentication>
  134. or
  135. for url auth, the add url needs to return a "icecast-auth-user:" http
  136. header for a user to authenicate. URLs are sent params via POST.
  137. <authentication type="url">
  138. <option name="username" value="admin"/>
  139. <option name="password" value="hackme"/>
  140. <option name="handlers" value="3" />
  141. <option name="stream_auth" value="http://myauthserver.com/scripts/auth_mount.php"/>
  142. <option name="mount_add" value="http://myauthserver.com/scripts/add_mount.php"/>
  143. <option name="mount_remove" value="http://myauthserver.com/scripts/del_mount.php"/>
  144. <option name="listener_add" value="http://myauthserver.com/scripts/add_listener.php"/>
  145. <option name="listener_remove" value="http://myauthserver.com/scripts/del_listener.php"/>
  146. </authentication>
  147. </mount -->
  148. <fileserve>1</fileserve>
  149. <!-- set the mountpoint for a shoutcast source to use, the default if not
  150. specified is /stream but you can change it here if an alternative is
  151. wanted or an extension is required
  152. <shoutcast-mount>/live.nsv</shoutcast-mount>
  153. -->
  154. <paths>
  155. <!-- basedir is only used if chroot is enabled -->
  156. <basedir>/usr/share/icecast2</basedir>
  157. <!-- Note that if <chroot> is turned on below, these paths must both
  158. be relative to the new root, not the original root -->
  159. <logdir>/var/log/icecast2</logdir>
  160. <webroot>/usr/share/icecast2/web</webroot>
  161. <adminroot>/usr/share/icecast2/admin</adminroot>
  162. <!-- <pidfile>/usr/share/icecast2/icecast.pid</pidfile> -->
  163. <!-- <ssl-certificate>/usr/share/icecast2/icecast.pem</ssl-certificate> -->
  164. <!-- <deny-ip>/path/to/file-with-IPs</deny-ip> -->
  165. <!-- <allow-ip>/path/to/file-with-IPs</allow-ip> -->
  166. <!-- <deny-agents>/path/to/file-with-useragents</deny-agents> -->
  167. <!-- location of mime types files used for file serving -->
  168. <!-- <mime-types>/etc/mime.types</mime-types> -->
  169. <!-- Aliases: treat requests for 'source' path as being for 'dest' path
  170. May be made specific to a port or bound address using the "port"
  171. and "bind-address" attributes.
  172. -->
  173. <!--
  174. <alias source="/foo" dest="/bar"/>
  175. -->
  176. <!-- Aliases: can also be used for simple redirections as well,
  177. this example will redirect all requests for ********** to
  178. the status page
  179. -->
  180. <alias source="/" dest="/index.html"/>
  181. </paths>
  182. <logging>
  183. <accesslog>access.log</accesslog>
  184. <errorlog>error.log</errorlog>
  185. <!-- <accesslog_ip>0<accesslog_ip> -->
  186. <!-- <playlistlog>playlist.log</playlistlog> -->
  187. <loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
  188. <logsize>10000</logsize> <!-- Max size of a logfile -->
  189. <!-- If logarchive is enabled (1), then when logsize is reached
  190. the logfile will be moved to [error|access|playlist].log.DATESTAMP,
  191. otherwise it will be moved to [error|access|playlist].log.old.
  192. Default is non-archive mode (i.e. overwrite)
  193. -->
  194. <!-- <logarchive>1</logarchive> -->
  195. </logging>
  196. <security>
  197. <chroot>0</chroot>
  198. <!--
  199. <changeowner>
  200. <user>nobody</user>
  201. <group>nogroup</group>
  202. </changeowner>
  203. -->
  204. </security>
  205. </icecast>

0
410
Евгений @Drakkar
Да пожалуйста. На мой!
  1. <icecast>
  2. <limits>
  3. <sources>800</sources>
  4. </limits>
  5. <authentication>
  6. <source-password>pass</source-password>
  7. <admin-user>Drakkar</admin-user>
  8. <admin-password>pass</admin-password>
  9. </authentication>
  10. <!--
  11. <directory>
  12. <yp-url-timeout>15</yp-url-timeout>
  13. <yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
  14. </directory>
  15. -->
  16. <hostname>localhost</hostname>
  17. <listen-socket>
  18. <port>8000</port>
  19. </listen-socket>
  20. <mount>
  21. <mount-name>/kamchatka_live</mount-name>
  22. <username>source</username>
  23. <password>pass</password>
  24. <charset>cp1251</charset>
  25. <fallback-mount>/nonstop</fallback-mount>
  26. <fallback-override>1</fallback-override>
  27. <fallback-when-full>1</fallback-when-full>
  28. </mount>
  29. <mount>
  30. <mount-name>/nonstop</mount-name>
  31. <username>source</username>
  32. <password>pass</password>
  33. <charset>cp1251</charset>
  34. <fallback-mount>/kamchatka_live</fallback-mount>
  35. <fallback-override>1</fallback-override>
  36. <fallback-when-full>1</fallback-when-full>
  37. </mount>
  38. <fileserve>1</fileserve>
  39. <paths>
  40. <logdir>./logs</logdir>
  41. <webroot>./web</webroot>
  42. <adminroot>./admin</adminroot>
  43. <alias source="/" dest="/index.html"/>
  44. </paths>
  45. <logging>
  46. <accesslog>access.log</accesslog>
  47. <errorlog>error.log</errorlog>
  48. <loglevel>1</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
  49. </logging>
  50. <security>
  51. <chroot>0</chroot>
  52. </security>
  53. </icecast>

Настроен на нонстоп.
Диджеи врезаются маунтом /kamchatka_live
Люди слушают маунт /kamchatka_live

0
112
Юрий @FortNoxBY
твой нехочет работать )

0
410
Евгений @Drakkar
Чудеса. А у меня почему работает? хех. Ты службу айскаста перезапустил? Всё подстроил под себя?

0
112
Юрий @FortNoxBY
да

0
410
Евгений @Drakkar
Тогда тебя спасёт бубен шамана :)

0
6245
Тарас @tarasian666
помоему у Drakkarа виндузятный конфиг, вот и не работает

все что находиться между <!-- и --> можно удалять

0
410
Евгений @Drakkar
Да. Виндузядный :( а човаще....
  1. <!--
  2. <directory>
  3. <yp-url-timeout>15</yp-url-timeout>
  4. <yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
  5. </directory>
  6. -->

Удалил

0
6245
Тарас @tarasian666
Удалил
а я эту секцию наоборот раскоментировал ) чтоб станции отображались на dir.xiph.org

0
410
Евгений @Drakkar
12 тыщ слушателей он лайн на первом месте на сайте ********** - ахренеть ! Голубая Мечта
На первом месте Германское интернет-радио. На втором месте Португальское, на 3-м опять Немцы...

Отредактировано Drakkar - 23.01.2012
0





Согласие на обработку данных на нашем сайте

Продолжая просматривать страницу, вы соглашаетесь с использованием файлов «Cookie» и с Политикой конфиденциальности «Privacy».
Наверху или внизу страницы вы можете изменить валюту и язык по умолчанию. Английская версия сайта ещё находится в доработке и доступна не полностью.