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

IceCast windows

 

10
Roma90 @Roma90
Ребят, я уже весь интернет облазил и голову сломал, как сделать чтобы при подключении сэмом к моему серверу любых других DJ - слушатели слышали их, а если DJ отключил свой сэм, то продолжает играть мой сэм (нон стоп). Весь софт установлен на windows.

Есть комп, там запущен сервер айса, На нем сейчас 2 канала висит - 32 и 128 от моего сэма, нужно чтобы когда DJ подключается к моему айсу со своего компьютера сэмом скажем на канал /live его слышали.

И если можно пришлите правильный код IceCast conf файла

Отредактировано Roma90 - 03.12.2012
0
313
0
10
Roma90 @Roma90
Krueger пишет:

**********

Спасибо, но как то правильно реализовать в коде конфинга?

0
6245
0
10
Roma90 @Roma90
tarasian666 пишет:

**********

Делаю всё как написано, удаляя не нужные строчки, и не получается..

Вот кусок кода из конфинга:
  1. <mount>
  2. <mount-name>/live</mount-name>
  3. <username>othersource</username>
  4. <password>hackmemore</password>
  5. <max-listeners>100</max-listeners>
  6. <max-listener-duration>3600</max-listener-duration>
  7. <fallback-mount>/128</fallback-mount>
  8. <fallback-override>1</fallback-override>
  9. <fallback-when-full>1</fallback-when-full>
  10. <charset>ISO8859-1</charset>
  11. <public>1</public>
  12. <subtype>vorbis</subtype>
  13. <hidden>1</hidden>
  14. <burst-size>65536</burst-size>
  15. <mp3-metadata-interval>4096</mp3-metadata-interval>
  16. <authentication type="htpasswd">
  17. <option name="filename" value="myauth"/>
  18. <option name="allow_duplicate_users" value="0"/>
  19. </authentication>
  20. <on-connect>/home/icecast/bin/source-start</on-connect>
  21. <on-disconnect>/home/icecast/bin/source-end</on-disconnect>
  22. </mount>


/128 - это основной поток
/live - куда нужно подключаться DJ

При подключении потока /live ничего не происходит, так и играет /128 (нон стоп)

0
6245
Тарас @tarasian666
не путайте основной и нонстоп маунт, нонстоп это НЕ ОСНОВНОЙ
и не надо всех этих лишних строчек, вы что вообще не читаете документацию? -не странно что не работает

0
10
Roma90 @Roma90
Сделал код:
  1. <mount>
  2. <mount-name>/live</mount-name>
  3. <password>123</password>
  4. <fallback-mount>/nonstop</fallback-mount>
  5. <fallback-override>1</fallback-override>
  6. </mount>
  7. <mount>
  8. <mount-name>/nonstop</mount-name>
  9. <password>123</password>
  10. </mount>


Получаю:
Пытаясь подключиться к /live как слушатель пишет что "The file you requested could not be found"
следовательно перенаправление почему то не работает всё равно, /nonstop работает..

Полный код моего конфа:
  1. <icecast>
  2. <limits>
  3. <clients>100</clients>
  4. <sources>4</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>123</source-password>
  25. <!-- Relays log in username 'relay' -->
  26. <relay-password>321</relay-password>
  27. <!-- Admin logs in with the username given below -->
  28. <admin-user>admin</admin-user>
  29. <admin-password>444</admin-password>
  30. </authentication>
  31. <!-- Uncomment this if you want directory listings -->
  32. <!--
  33. <directory>
  34. <yp-url-timeout>15</yp-url-timeout>
  35. <yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
  36. </directory>
  37. <directory>
  38. <yp-url-timeout>15</yp-url-timeout>
  39. <yp-url>http://www.oddsock.org/cgi-bin/yp-cgi</yp-url>
  40. </directory>
  41. -->
  42. <!-- This is the hostname other people will use to connect to your server.
  43. It affects mainly the urls generated by Icecast for playlists and yp
  44. listings. -->
  45. <hostname>localhost</hostname>
  46. <!-- You can use these two if you only want a single listener -->
  47. <!--<port>8000</port> -->
  48. <!--<bind-address>127.0.0.1</bind-address>-->
  49. <!-- You may have multiple <listener> elements -->
  50. <listen-socket>
  51. <port>8000</port>
  52. <!-- <bind-address>127.0.0.1</bind-address> -->
  53. </listen-socket>
  54. <!--
  55. <listen-socket>
  56. <port>8000</port>
  57. </listen-socket>
  58. -->
  59. <!--<master-server>127.0.0.1</master-server>-->
  60. <!--<master-server-port>8000</master-server-port>-->
  61. <!--<master-update-interval>120</master-update-interval>-->
  62. <!--<master-password>hackme</master-password>-->
  63. <!-- setting this makes all relays on-demand unless overridden, this is
  64. useful for master relays which do not have <relay> definitions here.
  65. The default is 0 -->
  66. <!--<relays-on-demand>1</relays-on-demand>-->
  67. <!--
  68. <relay>
  69. <server>127.0.0.1</server>
  70. <port>8001</port>
  71. <mount>/example.ogg</mount>
  72. <local-mount>/different.ogg</local-mount>
  73. <on-demand>0</on-demand>
  74. <relay-shoutcast-metadata>0</relay-shoutcast-metadata>
  75. </relay>
  76. -->
  77. <!-- Only define a <mount> section if you want to use advanced options,
  78. like alternative usernames or passwords
  79. <mount>
  80. <mount-name>/live</mount-name>
  81. <password>123</password>
  82. <charset>UTF8</charset>
  83. <public>1</public>
  84. <fallback-mount>/nonstop</fallback-mount>
  85. <fallback-override>1</fallback-override>
  86. </mount>
  87. <mount>
  88. <mount-name>/nonstop</mount-name>
  89. <password>123</password>
  90. </mount>
  91. -->
  92. <fileserve>1</fileserve>
  93. <!-- set the mountpoint for a shoutcast source to use, the default if not
  94. specified is /stream but you can change it here if an alternative is
  95. wanted or an extension is required
  96. <shoutcast-mount>/live.m3u</shoutcast-mount>
  97. -->
  98. <paths>
  99. <!-- basedir is only used if chroot is enabled -->
  100. <basedir>./</basedir>
  101. <!-- Note that if <chroot> is turned on below, these paths must both
  102. be relative to the new root, not the original root -->
  103. <logdir>./logs</logdir>
  104. <webroot>./web</webroot>
  105. <adminroot>./admin</adminroot>
  106. <!-- <pidfile>./icecast.pid</pidfile> -->
  107. <!-- Aliases: treat requests for 'source' path as being for 'dest' path
  108. May be made specific to a port or bound address using the "port"
  109. and "bind-address" attributes.
  110. -->
  111. <!--
  112. <alias source="/foo" dest="/bar"/>
  113. -->
  114. <!-- Aliases: can also be used for simple redirections as well,
  115. this example will redirect all requests for ********** to
  116. the status page
  117. -->
  118. <alias source="/" dest="/status.xsl"/>
  119. </paths>
  120. <logging>
  121. <accesslog>access.log</accesslog>
  122. <errorlog>error.log</errorlog>
  123. <!-- <playlistlog>playlist.log</playlistlog> -->
  124. <loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
  125. <logsize>10000</logsize> <!-- Max size of a logfile -->
  126. <!-- If logarchive is enabled (1), then when logsize is reached
  127. the logfile will be moved to [error|access|playlist].log.DATESTAMP,
  128. otherwise it will be moved to [error|access|playlist].log.old.
  129. Default is non-archive mode (i.e. overwrite)
  130. -->
  131. <!-- <logarchive>1</logarchive> -->
  132. </logging>
  133. <security>
  134. <chroot>0</chroot>
  135. <!--
  136. <changeowner>
  137. <user>nobody</user>
  138. <group>nogroup</group>
  139. </changeowner>
  140. -->
  141. </security>
  142. </icecast>

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

0
10
Roma90 @Roma90
О понял в чем дело и правда потому что был закоментирован, спасибо теперь всё работает тему можно клоуз)

0





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

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