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

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

 

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

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

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

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

1400
Pheoru @Pheoru
Fallback-mount, dumpfile.

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

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

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

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

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

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

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

32
alexrest @alexrest
формат и битрейд одинаковы, при переходе 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>

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

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

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

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

32
alexrest @alexrest
JamStyle пишет:

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

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

32
alexrest @alexrest
:(

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

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

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

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

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


<icecast>
<limits>
<clients>100</clients>
<sources>20</sources>
<threadpool>50</threadpool>
<queue-size>524288</queue-size>
<client-timeout>6000</client-timeout>
<header-timeout>15</header-timeout>
<source-timeout>10</source-timeout>
<!-- If enabled, this will provide a burst of data when a client
first connects, thereby significantly reducing the startup
time for listeners that do substantial buffering. However,
it also significantly increases latency between the source
client and listening client. For low-latency setups, you
might want to disable this. -->
<burst-on-connect>1</burst-on-connect>
<!-- same as burst-on-connect, but this allows for being more
specific on how much to burst. Most people won't need to
change from the default 64k. Applies to all mountpoints -->
<burst-size>65535</burst-size>
</limits>

<authentication>
<!-- Sources log in with username 'source' -->
<source-password>***</source-password>
<!-- Relays log in username 'relay' -->
<relay-password>***</relay-password>

<!-- Admin logs in with the username given below -->
<admin-user>***</admin-user>
<admin-password>***</admin-password>
</authentication>

<!-- Uncomment this if you want directory listings -->
<!--
<directory>
<yp-url-timeout>15</yp-url-timeout>
<yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
</directory>
<directory>
<yp-url-timeout>15</yp-url-timeout>
<yp-url>http://www.oddsock.org/cgi-bin/yp-cgi</yp-url>
</directory>
-->

<!-- This is the hostname other people will use to connect to your server.
It affects mainly the urls generated by Icecast for playlists and yp
listings. -->
<hostname>www.teleline.tv</hostname>

<!-- You can use these two if you only want a single listener -->
<port>15000</port>
<!--<bind-address>80.80.103.69</bind-address>-->

<!-- You may have multiple <listener> elements -->
<listen-socket>
<!-- <port>10000</port>-->
<!-- <bind-address>80.80.103.69</bind-address> -->
</listen-socket>
<!--
<listen-socket>
<port>18001</port>
</listen-socket>
-->

<!--<master-server>127.0.0.1</master-server>-->
<!--<master-server-port>8001</master-server-port>-->
<!--<master-update-interval>120</master-update-interval>-->
<!--<master-password>hackme</master-password>-->

<!-- setting this makes all relays on-demand unless overridden, this is
useful for master relays which do not have <relay> definitions here.
The default is 0 -->
<!--<relays-on-demand>1</relays-on-demand>-->


<relay>
<server>mp3.nashe.ru</server>
<port>80</port>
<mount>/nashe-128</mount>
<local-mount>/nashe</local-mount>
<on-demand>0</on-demand>
<relay-shoutcast-metadata>1</relay-shoutcast-metadata>
</relay>
<relay>
<server>92.48.107.38</server>
<port>8529</port>
<mount>/</mount>
<local-mount>/subfm</local-mount>
<on-demand>0</on-demand>
<relay-shoutcast-metadata>1</relay-shoutcast-metadata>
</relay>
<relay>
<server>88.191.78.249</server>
<port>8078</port>
<mount>/</mount>
<local-mount>/jazz</local-mount>
<on-demand>0</on-demand>
<relay-shoutcast-metadata>1</relay-shoutcast-metadata>
</relay>
<relay>
<server>rusradio.10gb.ru</server>
<port>8000</port>
<mount>/</mount>
<local-mount>/rusradio-berlin</local-mount>
<on-demand>0</on-demand>
<relay-shoutcast-metadata>1</relay-shoutcast-metadata>
</relay>
<relay>
<server>radio.spark-media.ru</server>
<port>8000</port>
<mount>/europaplus</mount>
<local-mount>/europa</local-mount>
<on-demand>0</on-demand>
<relay-shoutcast-metadata>1</relay-shoutcast-metadata>
</relay>
<relay>
<server>80.70.231.195</server>
<port>9045</port>
<mount>/</mount>
<local-mount>/dolgoff</local-mount>
<on-demand>0</on-demand>
<relay-shoutcast-metadata>1</relay-shoutcast-metadata>
</relay>
<relay>
<server>sunfm.ru</server>
<port>8000</port>
<mount>/</mount>
<local-mount>/sanfm</local-mount>
<on-demand>0</on-demand>
<relay-shoutcast-metadata>1</relay-shoutcast-metadata>
</relay>
<relay>
<server>83.222.4.42</server>
<port>8880</port>
<mount>/</mount>
<local-mount>/shanson</local-mount>
<on-demand>0</on-demand>
<relay-shoutcast-metadata>1</relay-shoutcast-metadata>
</relay>

<relay>
<server>radio.retro-retro.ru</server>
<port>8000</port>
<mount>/</mount>
<local-mount>/retro</local-mount>
<on-demand>0</on-demand>
<relay-shoutcast>1</relay-shoutcast>
</relay>
<relay>
<server>mixfm.com.ua</server>
<port>8128</port>
<mount>/</mount>
<local-mount>/mixfm</local-mount>
<on-demand>0</on-demand>
<relay-shoutcast>1</relay-shoutcast>
</relay>
<relay>
<server>radio.corbina.ru</server>
<port>8100</port>
<mount>/</mount>
<local-mount>/ultra</local-mount>
<on-demand>0</on-demand>
<relay-shoutcast>1</relay-shoutcast>
</relay>
<relay>
<server>16bit.fm</server>
<port>9500</port>
<mount>/</mount>
<local-mount>/16bit</local-mount>
<on-demand>0</on-demand>
<relay-shoutcast>1</relay-shoutcast>
</relay>
<relay>
<server>radio.silver.ru</server>
<port>8000</port>
<mount>/</mount>
<local-mount>/silver</local-mount>
<on-demand>0</on-demand>
<relay-shoutcast>1</relay-shoutcast>
</relay>
<relay>
<server>85.21.79.5</server>
<port>9054</port>
<mount>/</mount>
<local-mount>/bigbeat</local-mount>
<on-demand>0</on-demand>
<relay-shoutcast>1</relay-shoutcast>
</relay>
<relay>
<server>radio.globalz.ru</server>
<port>8080</port>
<mount>/nonstop</mount>
<local-mount>/global</local-mount>
<on-demand>0</on-demand>
<relay-shoutcast>1</relay-shoutcast>
</relay>
<relay>
<server>w02-sw01.akadostream.ru</server>
<port>8108</port>
<mount>/radiosport128.mp3</mount>
<local-mount>/sport</local-mount>
<on-demand>0</on-demand>
<relay-shoutcast>1</relay-shoutcast>
</relay>
<relay>
<server>radio.echo.msk.ru</server>
<port>8000</port>
<mount>/</mount>
<local-mount>/echo_msk</local-mount>
<on-demand>0</on-demand>
<relay-shoutcast>1</relay-shoutcast>
</relay>
<relay>
<server>85.21.79.5</server>
<port>8071</port>
<mount>/</mount>
<local-mount>/ragnarok</local-mount>
<on-demand>0</on-demand>
<relay-shoutcast>1</relay-shoutcast>
</relay>
<!-- Only define a <mount> section if you want to use advanced options,
like alternative usernames or passwords
<mount>
<mount-name>/example-complex.ogg</mount-name>

<username>othersource</username>
<password>hackmemore</password>

<max-listeners>1</max-listeners>
<dump-file>/tmp/dump-example1.ogg</dump-file>
<burst-size>65536</burst-size>
<fallback-mount>/example2.ogg</fallback-mount>
<fallback-override>1</fallback-override>
<fallback-when-full>1</fallback-when-full>
<intro>/example_intro.ogg</intro>
<hidden>1</hidden>
<no-yp>1</no-yp>
<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>

<mount>
<mount-name>/auth_example.ogg</mount-name>
<authentication type="url">
<option name="mount_add" value="http://myauthserver.net/notify_mount.php"/>
<option name="mount_remove" value="http://myauthserver.net/notify_mount.php"/>
<option name="listener_add" value="http://myauthserver.net/notify_listener.php"/>
<option name="listener_remove" value="http://myauthserver.net/notify_listener.php"/>
</authentication>
</mount>

-->

<fileserve>1</fileserve>

<!-- set the mountpoint for a shoutcast source to use, the default if not
specified is /stream but you can change it here if an alternative is
wanted or an extension is required
<shoutcast-mount>/live.nsv</shoutcast-mount>
-->

<paths>
<!-- basedir is only used if chroot is enabled -->
<basedir>/usr/local/share/icecast</basedir>

<!-- Note that if <chroot> is turned on below, these paths must both
be relative to the new root, not the original root -->
<logdir>/usr/local/var/log/icecast</logdir>
<webroot>/usr/local/share/icecast/web</webroot>
<adminroot>/usr/local/share/icecast/admin</adminroot>
<!-- <pidfile>/usr/local/share/icecast/icecast.pid</pidfile> -->

<!-- Aliases: treat requests for 'source' path as being for 'dest' path
May be made specific to a port or bound address using the "port"
and "bind-address" attributes.
-->
<!--
<alias source="/foo" dest="/bar"/>
-->
<!-- Aliases: can also be used for simple redirections as well,
this example will redirect all requests for ********** to
the status page
-->
<alias source="/" dest="/status.xsl"/>
</paths>

<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<!-- <playlistlog>playlist.log</playlistlog> -->
<loglevel>1</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
<logsize>10000</logsize> <!-- Max size of a logfile -->
<!-- If logarchive is enabled (1), then when logsize is reached
the logfile will be moved to [error|access|playlist].log.DATESTAMP,
otherwise it will be moved to [error|access|playlist].log.old.
Default is non-archive mode (i.e. overwrite)
-->
<logarchive>1</logarchive>
</logging>

<security>
<chroot>0</chroot>
<!--
<changeowner>
<user>nobody</user>
<group>nogroup</group>
</changeowner>
-->
</security>
</icecast>

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