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

помогите с настройкой Icecast2

 

1
alekcandr @alekcandr
Вобщем такая проблема уже пол дня долбаюсь с настройкой Icecast

  1. <icecast>
  2. <limits>
  3. <clients>60</clients>
  4. <sources>1</sources>
  5. <threadpool>5</threadpool>
  6. <queue-size>102400</queue-size>
  7. <client-timeout>30</client-timeout>
  8. <header-timeout>15</header-timeout>
  9. <source-timeout>10</source-timeout>
  10. <burst-on-connect>1</burst-on-connect>
  11. <burst-size>65535</burst-size>
  12. </limits>
  13. <authentication>
  14. <source-password>*****</source-password>
  15. <relay-user>alekcandr</relay-user>
  16. <relay-password>*****</relay-password>
  17. <admin-user>alekcandr</admin-user>
  18. <admin-password>*****</admin-password>
  19. </authentication>
  20. <directory>
  21. <yp-url-timeout>15</yp-url-timeout>
  22. <yp-url>http://www.oddsock.org/cgi-bin/yp-cgi</yp-url>
  23. </directory>
  24. <hostname>10.1.101.63</hostname>
  25. <port>8000</port>
  26. <bind-address>10.1.1****</bind-address>
  27. <listener>
  28. <listen-socket>
  29. <port>8000</port>
  30. <bind-address>10.1.1****</bind-address>
  31. </listen-socket>
  32. <listen-socket>
  33. <port>8000</port>
  34. </listen-socket>
  35. <master-server>10.1.1****</master-server>
  36. <master-server-port>8001</master-server-port>
  37. <<master-update-interval>120</master-update-interval
  38. <master-password>hackme</master-password>
  39. <relays-on-demand>1</relays-on-demand>
  40. <relay>
  41. <server>10.1.1****</server>
  42. <port>8000</port>
  43. <mount>/example.ogg</mount>
  44. <local-mount>/different.ogg</local-mount>
  45. <on-demand>0</on-demand>
  46. <relay-shoutcast-metadata>0</relay-shoutcast-metadata>
  47. </relay>
  48. <mount>
  49. <mount-name>/example-complex.ogg</mount-name>
  50. <username>alekcandr</username>
  51. <password>******</password>
  52. <max-listeners>1</max-listeners>
  53. <dump-file>/tmp/dump-example1.ogg</dump-file>
  54. <burst-size>65536</burst-size>
  55. <fallback-mount>/example2.ogg</fallback-mount>
  56. <fallback-override>1</fallback-override>
  57. <fallback-when-full>1</fallback-when-full>
  58. <intro>/example_intro.ogg</intro>
  59. <hidden>1</hidden>
  60. <no-yp>1</no-yp>
  61. <authentication type="htpasswd">
  62. <option name="filename" value="myauth"/>
  63. <option name="allow_duplicate_users" value="0"/>
  64. </authentication>
  65. <on-connect>/home/icecast/bin/stream-start</on-connect>
  66. <on-disconnect>/home/icecast/bin/stream-stop</on-disconnect>
  67. </mount>
  68. <mount>
  69. <mount-name>/auth_example.ogg</mount-name>
  70. <authentication type="url">
  71. <option name="mount_add" value="http://myauthserver.net/notify_mount.php"/>
  72. <option name="mount_remove" value="http://myauthserver.net/notify_mount.php"/>
  73. <option name="listener_add" value="http://myauthserver.net/notify_listener.php"/>
  74. <option name="listener_remove" value="http://myauthserver.net/notify_listener.php"/>
  75. </authentication>
  76. </mount>
  77. -->
  78. <fileserve>1</fileserve>
  79. <!-- set the mountpoint for a shoutcast source to use, the default if not
  80. specified is /stream but you can change it here if an alternative is
  81. wanted or an extension is required
  82. <shoutcast-mount>/live.nsv</shoutcast-mount>
  83. -->
  84. <paths>
  85. <!-- basedir is only used if chroot is enabled -->
  86. <basedir>./</basedir>
  87. <!-- Note that if <chroot> is turned on below, these paths must both
  88. be relative to the new root, not the original root -->
  89. <logdir>./logs</logdir>
  90. <webroot>./web</webroot>
  91. <adminroot>./admin</adminroot>
  92. <!-- <pidfile>./icecast.pid</pidfile> -->
  93. <!-- Aliases: treat requests for 'source' path as being for 'dest' path
  94. May be made specific to a port or bound address using the "port"
  95. and "bind-address" attributes.
  96. -->
  97. <!--
  98. <alias source="/foo" dest="/bar"/>
  99. -->
  100. <!-- Aliases: can also be used for simple redirections as well,
  101. this example will redirect all requests for ********** to
  102. the status page
  103. -->
  104. <alias source="/" dest="/status.xsl"/>
  105. </paths>
  106. <logging>
  107. <accesslog>access.log</accesslog>
  108. <errorlog>error.log</errorlog>
  109. <!-- <playlistlog>playlist.log</playlistlog> -->
  110. <loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
  111. <logsize>10000</logsize> <!-- Max size of a logfile -->
  112. <!-- If logarchive is enabled (1), then when logsize is reached
  113. the logfile will be moved to [error|access|playlist].log.DATESTAMP,
  114. otherwise it will be moved to [error|access|playlist].log.old.
  115. Default is non-archive mode (i.e. overwrite)
  116. -->
  117. <!-- <logarchive>1</logarchive> -->
  118. </logging>
  119. <security>
  120. <chroot>0</chroot>
  121. <!--
  122. <changeowner>
  123. <user>nobody</user>
  124. <group>nogroup</group>
  125. </changeowner>
  126. -->
  127. </security>
  128. </icecast>

помогите его правельно сконфегурировать пожалуйста

0
1400
Pheoru @Pheoru
Что конкретно не работает - это раз.
Все это уже в любом случае проходило, воспользуйтесь поиском - это два.

0