Перейти к собственно контенту

Архив

Метка: Icecast

Ставим Icecast:
opkg install icecast

Мне icecast нужен был для ретрансляции своего же радио в локальную сеть провайдера, поэтому конфиг у меня выглядит вот так:

<icecast>
<limits>
<clients>100</clients>
<sources>2</sources>
<threadpool>5</threadpool>
<queue-size>524288</queue-size>
<client-timeout>30</client-timeout>
<header-timeout>15</header-timeout>
<source-timeout>10</source-timeout>
<burst-on-connect>1</burst-on-connect>
<burst-size>65535</burst-size>
</limits>

<authentication>
<source-password>PASSWORD</source-password>
<relay-password>PASSWORD</relay-password>
<admin-user>admin</admin-user>
<admin-password>PASSWORD</admin-password>
</authentication>

<hostname>home.deathstar.name</hostname>
<listen-socket>
<port>8000</port>
</listen-socket>
<fileserve>1</fileserve>

<relay>
<server>46.38.63.5</server>
<port>8000</port>
<mount>/play</mount>
<local-mount>/play</local-mount>
<on-demand>1</on-demand>
<relay-shoutcast-metadata>1</relay-shoutcast-metadata>
</relay>

<paths>
<logdir>/opt/var/log/icecast/</logdir>
<webroot>/opt/share/icecast/web</webroot>
<adminroot>/opt/share/icecast/admin</adminroot>
<pidfile>/var/run/icecast.pid</pidfile>
</paths>

<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<loglevel>3</loglevel>
<logsize>10000</logsize>
</logging>

<security>
<chroot>0</chroot>
<changeowner>
<user>nobody</user>
<group>nobody</group>
</changeowner>
</security>
</icecast><

Даем (далее…)

Решил ретранслировать инет-радиостанцию http://stream10.jungletrain.net:8000 в домашнюю локальную сеть,ну и в сеть провайдера.
В портах FreeBSD есть все необходимое для создания своего собственного интернет радио.
Устанавливаем Icecast2

cd /usr/ports/audio/icecast2/
make install clean

Установка проходит без дополнительной конфигурации. Конфигурационный файл icecast2 у меня имеет такой вид и лежит в /usr/local/etc/icecast.xml

<icecast>
<limits>
<clients>100</clients>
<sources>2</sources>
<threadpool>5</threadpool>
<queue-size>524288</queue-size>
<client-timeout>30</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>hackme</source-password>
<!-- Relays log in username 'relay' -->
<relay-password>hackme</relay-password>

<!-- Admin logs in with the username given below -->
<admin-user>admin</admin-user>
<admin-password>hackme</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>
-->

<!-- (далее…)