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

Помощь в настройке конфигов

 

1
Nurofen @Nurofen
Бьюсь уже несколько дней, ребят помогите :) Делал все по мануалу, а все равно не конектится с компа
**********

0
6245
Тарас @tarasian666
  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 'zloy' -->
  24. <source-password>zloy</source-password>
  25. <!-- Relays log in username 'good' -->
  26. <relay-password>good</relay-password>
  27. <!-- Admin logs in with the username given below -->
  28. <admin-user>nurofen</admin-user>
  29. <admin-password>qwwq</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>127.0.0.1</hostname>
  47. <!-- You may have multiple <listener> elements -->
  48. <listen-socket>
  49. <port>8000</port>
  50. <!-- <bind-address>127.0.0.1</bind-address> -->
  51. <!-- <shoutcast-mount>/radio</shoutcast-mount> -->
  52. </listen-socket>
  53. <!--
  54. <listen-socket>
  55. <port>8001</port>
  56. </listen-socket>
  57. -->
  58. <!--<master-server>127.0.0.1</master-server>-->
  59. <!--<master-server-port>8001</master-server-port>-->
  60. <!--<master-update-interval>120</master-update-interval>-->
  61. <!--<master-password>redd</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>127.0.0.1</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>

  1. <?xml version="1.0"?>
  2. <ices:Configuration xmlns:ices="http://www.icecast.org/projects/ices">
  3. <Playlist>
  4. <!-- This is the filename used as a playlist when using the builtin
  5. playlist handler. -->
  6. <File>/var/www/vhosts/gosha.me/radio/playlist.txt</File>
  7. <!-- Set this to 0 if you don't want to randomize your playlist, and to
  8. 1 if you do. -->
  9. <Randomize>1</Randomize>
  10. <!-- One of builtin, perl, or python. -->
  11. <Type>builtin</Type>
  12. <!-- Module name to pass to the playlist handler if using perl or python.
  13. If you use the builtin playlist handler then this is ignored -->
  14. <Module>ices</Module>
  15. <!-- Set this to the number of seconds to crossfade between tracks.
  16. Leave out or set to zero to disable crossfading (the default).
  17. <Crossfade>5</Crossfade>
  18. -->
  19. </Playlist>
  20. <Execution>
  21. <!-- Set this to 1 if you want ices to launch in the background as a
  22. daemon -->
  23. <Background>0</Background>
  24. <!-- Set this to 1 if you want to see more verbose output from ices -->
  25. <Verbose>0</Verbose>
  26. <!-- This directory specifies where ices should put the logfile, cue file
  27. and pid file (if daemonizing). Don't use /tmp if you have l33t h4x0rz
  28. on your server. -->
  29. <BaseDirectory>/tmp</BaseDirectory>
  30. </Execution>
  31. <Stream>
  32. <Server>
  33. <!-- Hostname or ip of the icecast server you want to connect to -->
  34. <Hostname>87.118.84.69</Hostname>
  35. <!-- Port of the same -->
  36. <Port>8000</Port>
  37. <!-- Encoder password on the icecast server -->
  38. <Password>zloy</Password>
  39. <!-- Header protocol to use when communicating with the server.
  40. Shoutcast servers need "icy", icecast 1.x needs "xaudiocast", and
  41. icecast 2.x needs "http". -->
  42. <Protocol>http</Protocol>
  43. </Server>
  44. <!-- The name of the mountpoint on the icecast server -->
  45. <Mountpoint>/radio</Mountpoint>
  46. <!-- The name of the dumpfile on the server for your stream. DO NOT set
  47. this unless you know what you're doing.
  48. <Dumpfile>ices.dump</Dumpfile>
  49. -->
  50. <!-- The name of you stream, not the name of the song! -->
  51. <Name>Shanson</Name>
  52. <!-- Genre of your stream, be it rock or pop or whatever -->
  53. <Genre>Default genre</Genre>
  54. <!-- Longer description of your stream -->
  55. <Description>Default description</Description>
  56. <!-- URL to a page describing your stream -->
  57. <URL>http://gosha.me:8000/radio</URL>
  58. <!-- 0 if you don't want the icecast server to publish your stream on
  59. the yp server, 1 if you do -->
  60. <Public>0</Public>
  61. <!-- Stream bitrate, used to specify bitrate if reencoding, otherwise
  62. just used for display on YP and on the server. Try to keep it
  63. accurate -->
  64. <Bitrate>32</Bitrate>
  65. <!-- If this is set to 1, and ices is compiled with liblame support,
  66. ices will reencode the stream on the fly to the stream bitrate. -->
  67. <Reencode>0</Reencode>
  68. <!-- Number of channels to reencode to, 1 for mono or 2 for stereo -->
  69. <!-- Sampe rate to reencode to in Hz. Leave out for LAME's best choice
  70. <Samplerate>22100</Samplerate>
  71. -->
  72. <Channels>2</Channels>
  73. </Stream>
  74. </ices:Configuration>

чтоб народ не мучался, но здесь все гуд, причина в чем то другом. О ней может рассказать лог

Отредактировано tarasian666 - 14.04.2010
0





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

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