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

пару вопросов, icecast

 

32
alexrest @alexrest
забыл что есть форум для вопросов=)))

Не могли бы вы мне помоч разобраться с моей проблемой, искал на форуме, ничиго не нашёл....

"айс каст когда нет ди джея сбрасывает слушаетелей и типа переходит в режим ожидания как бы, возможно ли сделать что бы он ещё таки сек 10-20 держал слушаетелей, просто при пересменке ди джеев слушателям приходицца переподключаццо"

Возможно ли такое?
Я ещё слышал что в icecast если нет потока можно поставить вопроизсведение определённого трека...

0
1400
Pheoru @Pheoru
Fallback-mount, dumpfile.

0
32
alexrest @alexrest
простите, можете пояснить какой "тег" что делает?
просто как я понял, функции у них немного отличаются..

0
1400
Pheoru @Pheoru
Fallback-mount - при отключении стримера автоматически берется сигнал с маунта, указанного в этом параметре.
Dump-file - буфферизационный файл, берет последние n-секунд и крутит их по циклу до появления стримера.

0
32
alexrest @alexrest
большое спасибо вам и вашему форуму

0
32
alexrest @alexrest
=) появился вопрос, как это всё грамотно засунуть в уонфиг серва?
просто у нас <mount> и всё что в нём закодировано - <!-- -->
???

0
32
alexrest @alexrest
ещё вопрос, в каком формате нужен трек, если мы вещаем в mp3 (normal)?

0
32
alexrest @alexrest
неужели никто такого не делал и с таким не сталкивался?

0
1400
Pheoru @Pheoru
Вопрос наиглупейший, именно поэтому Вы и не получили ответа.
Формат и битрейт должен быть тот же, если нет перекодировщика (streamtranscoder, докачивается и устанавливается отдельно и самостоятельно)

0
32
alexrest @alexrest
формат и битрейд одинаковы, при переходе 0 результат

0
32
alexrest @alexrest
может кто поможет?
в конфиге у меня всё оформлено вот так
<mount>
<mount-name>/IceRadio</mount-name>
<username>***</username>
<password>***</password>
<max-listeners>128</max-listeners>
<!-- <dump-file>/tmp/dump-example1.ogg</dump-file> -->
<burst-size>65536</burst-size>
<fallback-mount>/example2.mp3</fallback-mount>
<fallback-override>1</fallback-override>
<fallback-when-full>1</fallback-when-full>
<!-- <intro>/path/to/stream-intro.ogg</intro>
<hidden>1</hidden>
<authentication type="htpasswd">
<option name="filename" value="myauth"/>
<option name="allow_duplicate_users" value="0"/>
</authentication>
<on-connect>/home/icecast/bin/stream-start</on-connect>
<on-disconnect>/home/icecast/bin/stream-stop</on-disconnect> -->
</mount>

0
1400
Pheoru @Pheoru
Путь неправильный.
./example2.mp3 либо /путь/до/файла/example2.mp3

0
32
alexrest @alexrest
=( всё равно ничиго нету ='(

0
32
alexrest @alexrest
нужно как то решить эту проблему, мот есть какая инструкция для блондинки? типа что куда засунуть, что где подправить?

0
332
Игорь @JamStyle
Было и у меня такое...оказалось нужен одинаковый KHz и одинаковый формат:стерео или моно (в зависимости от основного вещателя)!

0
32
alexrest @alexrest
JamStyle пишет:

Было и у меня такое...оказалось нужен одинаковый KHz и одинаковый формат:стерео или моно (в зависимости от основного вещателя)!

ПРивет )) Мне кажеццо что я что-то на сервере не правельно делаю, потому что трек как я проверил соответствует параметрам вещания всех дид жев =(

0
32
alexrest @alexrest
:(

0
8
shaman @shaman
Ребят. такой вопросик.
Делается ретрансляция около 20 радиостанций в локалку.
Во время запуска часть станций неактивно(не круглосуточное вещание у них) и соответственно они не монтируються
когда же станция появляется в онлайне, она всё так же не монтируется. приходиться перезапускать icecast. Но при перезапуске не монтируються другие станции ушедшие в оффлайн.

Теперь собственно сам вопрос.
Как органзиовать монтирование всех станций. вне зависимости от того. в онлайне ли они или нет?

0
2605
Александр @AlexIT
Dump-file это совсем не то, кстати.
Это я о первых постах в данной теме.

shaman странный у вас глюк, каким образом ретрансляция настроена, выкладывайте конфиги.

0
8
shaman @shaman
хмм, конфиг вполне стандартный


  1. <icecast>
  2. <limits>
  3. <clients>100</clients>
  4. <sources>20</sources>
  5. <threadpool>50</threadpool>
  6. <queue-size>524288</queue-size>
  7. <client-timeout>6000</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>***</source-password>
  25. <!-- Relays log in username 'relay' -->
  26. <relay-password>***</relay-password>
  27. <!-- Admin logs in with the username given below -->
  28. <admin-user>***</admin-user>
  29. <admin-password>***</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>www.teleline.tv</hostname>
  46. <!-- You can use these two if you only want a single listener -->
  47. <port>15000</port>
  48. <!--<bind-address>80.80.103.69</bind-address>-->
  49. <!-- You may have multiple <listener> elements -->
  50. <listen-socket>
  51. <!-- <port>10000</port>-->
  52. <!-- <bind-address>80.80.103.69</bind-address> -->
  53. </listen-socket>
  54. <!--
  55. <listen-socket>
  56. <port>18001</port>
  57. </listen-socket>
  58. -->
  59. <!--<master-server>127.0.0.1</master-server>-->
  60. <!--<master-server-port>8001</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. <relay>
  68. <server>mp3.nashe.ru</server>
  69. <port>80</port>
  70. <mount>/nashe-128</mount>
  71. <local-mount>/nashe</local-mount>
  72. <on-demand>0</on-demand>
  73. <relay-shoutcast-metadata>1</relay-shoutcast-metadata>
  74. </relay>
  75. <relay>
  76. <server>92.48.107.38</server>
  77. <port>8529</port>
  78. <mount>/</mount>
  79. <local-mount>/subfm</local-mount>
  80. <on-demand>0</on-demand>
  81. <relay-shoutcast-metadata>1</relay-shoutcast-metadata>
  82. </relay>
  83. <relay>
  84. <server>88.191.78.249</server>
  85. <port>8078</port>
  86. <mount>/</mount>
  87. <local-mount>/jazz</local-mount>
  88. <on-demand>0</on-demand>
  89. <relay-shoutcast-metadata>1</relay-shoutcast-metadata>
  90. </relay>
  91. <relay>
  92. <server>rusradio.10gb.ru</server>
  93. <port>8000</port>
  94. <mount>/</mount>
  95. <local-mount>/rusradio-berlin</local-mount>
  96. <on-demand>0</on-demand>
  97. <relay-shoutcast-metadata>1</relay-shoutcast-metadata>
  98. </relay>
  99. <relay>
  100. <server>radio.spark-media.ru</server>
  101. <port>8000</port>
  102. <mount>/europaplus</mount>
  103. <local-mount>/europa</local-mount>
  104. <on-demand>0</on-demand>
  105. <relay-shoutcast-metadata>1</relay-shoutcast-metadata>
  106. </relay>
  107. <relay>
  108. <server>80.70.231.195</server>
  109. <port>9045</port>
  110. <mount>/</mount>
  111. <local-mount>/dolgoff</local-mount>
  112. <on-demand>0</on-demand>
  113. <relay-shoutcast-metadata>1</relay-shoutcast-metadata>
  114. </relay>
  115. <relay>
  116. <server>sunfm.ru</server>
  117. <port>8000</port>
  118. <mount>/</mount>
  119. <local-mount>/sanfm</local-mount>
  120. <on-demand>0</on-demand>
  121. <relay-shoutcast-metadata>1</relay-shoutcast-metadata>
  122. </relay>
  123. <relay>
  124. <server>83.222.4.42</server>
  125. <port>8880</port>
  126. <mount>/</mount>
  127. <local-mount>/shanson</local-mount>
  128. <on-demand>0</on-demand>
  129. <relay-shoutcast-metadata>1</relay-shoutcast-metadata>
  130. </relay>
  131. <relay>
  132. <server>radio.retro-retro.ru</server>
  133. <port>8000</port>
  134. <mount>/</mount>
  135. <local-mount>/retro</local-mount>
  136. <on-demand>0</on-demand>
  137. <relay-shoutcast>1</relay-shoutcast>
  138. </relay>
  139. <relay>
  140. <server>mixfm.com.ua</server>
  141. <port>8128</port>
  142. <mount>/</mount>
  143. <local-mount>/mixfm</local-mount>
  144. <on-demand>0</on-demand>
  145. <relay-shoutcast>1</relay-shoutcast>
  146. </relay>
  147. <relay>
  148. <server>radio.corbina.ru</server>
  149. <port>8100</port>
  150. <mount>/</mount>
  151. <local-mount>/ultra</local-mount>
  152. <on-demand>0</on-demand>
  153. <relay-shoutcast>1</relay-shoutcast>
  154. </relay>
  155. <relay>
  156. <server>16bit.fm</server>
  157. <port>9500</port>
  158. <mount>/</mount>
  159. <local-mount>/16bit</local-mount>
  160. <on-demand>0</on-demand>
  161. <relay-shoutcast>1</relay-shoutcast>
  162. </relay>
  163. <relay>
  164. <server>radio.silver.ru</server>
  165. <port>8000</port>
  166. <mount>/</mount>
  167. <local-mount>/silver</local-mount>
  168. <on-demand>0</on-demand>
  169. <relay-shoutcast>1</relay-shoutcast>
  170. </relay>
  171. <relay>
  172. <server>85.21.79.5</server>
  173. <port>9054</port>
  174. <mount>/</mount>
  175. <local-mount>/bigbeat</local-mount>
  176. <on-demand>0</on-demand>
  177. <relay-shoutcast>1</relay-shoutcast>
  178. </relay>
  179. <relay>
  180. <server>radio.globalz.ru</server>
  181. <port>8080</port>
  182. <mount>/nonstop</mount>
  183. <local-mount>/global</local-mount>
  184. <on-demand>0</on-demand>
  185. <relay-shoutcast>1</relay-shoutcast>
  186. </relay>
  187. <relay>
  188. <server>w02-sw01.akadostream.ru</server>
  189. <port>8108</port>
  190. <mount>/radiosport128.mp3</mount>
  191. <local-mount>/sport</local-mount>
  192. <on-demand>0</on-demand>
  193. <relay-shoutcast>1</relay-shoutcast>
  194. </relay>
  195. <relay>
  196. <server>radio.echo.msk.ru</server>
  197. <port>8000</port>
  198. <mount>/</mount>
  199. <local-mount>/echo_msk</local-mount>
  200. <on-demand>0</on-demand>
  201. <relay-shoutcast>1</relay-shoutcast>
  202. </relay>
  203. <relay>
  204. <server>85.21.79.5</server>
  205. <port>8071</port>
  206. <mount>/</mount>
  207. <local-mount>/ragnarok</local-mount>
  208. <on-demand>0</on-demand>
  209. <relay-shoutcast>1</relay-shoutcast>
  210. </relay>
  211. <!-- Only define a <mount> section if you want to use advanced options,
  212. like alternative usernames or passwords
  213. <mount>
  214. <mount-name>/example-complex.ogg</mount-name>
  215. <username>othersource</username>
  216. <password>hackmemore</password>
  217. <max-listeners>1</max-listeners>
  218. <dump-file>/tmp/dump-example1.ogg</dump-file>
  219. <burst-size>65536</burst-size>
  220. <fallback-mount>/example2.ogg</fallback-mount>
  221. <fallback-override>1</fallback-override>
  222. <fallback-when-full>1</fallback-when-full>
  223. <intro>/example_intro.ogg</intro>
  224. <hidden>1</hidden>
  225. <no-yp>1</no-yp>
  226. <authentication type="htpasswd">
  227. <option name="filename" value="myauth"/>
  228. <option name="allow_duplicate_users" value="0"/>
  229. </authentication>
  230. <on-connect>/home/icecast/bin/stream-start</on-connect>
  231. <on-disconnect>/home/icecast/bin/stream-stop</on-disconnect>
  232. </mount>
  233. <mount>
  234. <mount-name>/auth_example.ogg</mount-name>
  235. <authentication type="url">
  236. <option name="mount_add" value="http://myauthserver.net/notify_mount.php"/>
  237. <option name="mount_remove" value="http://myauthserver.net/notify_mount.php"/>
  238. <option name="listener_add" value="http://myauthserver.net/notify_listener.php"/>
  239. <option name="listener_remove" value="http://myauthserver.net/notify_listener.php"/>
  240. </authentication>
  241. </mount>
  242. -->
  243. <fileserve>1</fileserve>
  244. <!-- set the mountpoint for a shoutcast source to use, the default if not
  245. specified is /stream but you can change it here if an alternative is
  246. wanted or an extension is required
  247. <shoutcast-mount>/live.nsv</shoutcast-mount>
  248. -->
  249. <paths>
  250. <!-- basedir is only used if chroot is enabled -->
  251. <basedir>/usr/local/share/icecast</basedir>
  252. <!-- Note that if <chroot> is turned on below, these paths must both
  253. be relative to the new root, not the original root -->
  254. <logdir>/usr/local/var/log/icecast</logdir>
  255. <webroot>/usr/local/share/icecast/web</webroot>
  256. <adminroot>/usr/local/share/icecast/admin</adminroot>
  257. <!-- <pidfile>/usr/local/share/icecast/icecast.pid</pidfile> -->
  258. <!-- Aliases: treat requests for 'source' path as being for 'dest' path
  259. May be made specific to a port or bound address using the "port"
  260. and "bind-address" attributes.
  261. -->
  262. <!--
  263. <alias source="/foo" dest="/bar"/>
  264. -->
  265. <!-- Aliases: can also be used for simple redirections as well,
  266. this example will redirect all requests for ********** to
  267. the status page
  268. -->
  269. <alias source="/" dest="/status.xsl"/>
  270. </paths>
  271. <logging>
  272. <accesslog>access.log</accesslog>
  273. <errorlog>error.log</errorlog>
  274. <!-- <playlistlog>playlist.log</playlistlog> -->
  275. <loglevel>1</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
  276. <logsize>10000</logsize> <!-- Max size of a logfile -->
  277. <!-- If logarchive is enabled (1), then when logsize is reached
  278. the logfile will be moved to [error|access|playlist].log.DATESTAMP,
  279. otherwise it will be moved to [error|access|playlist].log.old.
  280. Default is non-archive mode (i.e. overwrite)
  281. -->
  282. <logarchive>1</logarchive>
  283. </logging>
  284. <security>
  285. <chroot>0</chroot>
  286. <!--
  287. <changeowner>
  288. <user>nobody</user>
  289. <group>nogroup</group>
  290. </changeowner>
  291. -->
  292. </security>
  293. </icecast>

если делать on-demand то тогда монтируються все и все можно слушать.
Сегодня попробую с использованием fallback-mount может тогда покатит...

0





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

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