Re: Icecast2 + Darkice
Добавлено: 2009-02-04 6:48:25
красиво однако))) но думаю в командной строке он у меня так работать не будет....и еще есть ли вебморда для проги в которой составлять плейлисты?чтобы было удобно.
Не сбить нас с верного пути, нам по фигу куда идти
https://forum.lissyara.su/
как с помощью этой связки локальные mp3 вопроизводить?unkn0wn писал(а):Написал статью про связку Icecast2 + Darkice, заценить можно тут: http://www.lissyara.su/?id=1556. Оценивайте, спрашивайте, неясности/неточности поправлю.
Код: Выделить всё
<relay>
<server>ип_удаленного_сервера</server>
<port>порт_удаленного_сервера</port>
<mount>/aplus</mount>
<local-mount>/aplus</local-mount>
<password>пароль_к_серверу</password>
<on-demand>1</on-demand>
<relay-shoutcast-metadata>1</relay-shoutcast-metadata>
</relay>
а регистр mount и local mount совпадают?logles писал(а):вот у меня возникла проблема: нужно ретранслировать больше сотни потоков с запароленого сервера.
пишу много блоков вида:но почему-то возвращается таймаут. подскажите, что не так?Код: Выделить всё
<relay> <server>ип_удаленного_сервера</server> <port>порт_удаленного_сервера</port> <mount>/aplus</mount> <local-mount>/aplus</local-mount> <password>пароль_к_серверу</password> <on-demand>1</on-demand> <relay-shoutcast-metadata>1</relay-shoutcast-metadata> </relay>
Код: Выделить всё
# pkg_info | grep ice
darkice-1.1_1 An IceCast, IceCast2 and ShoutCast live audio streamer
icecast2-2.3.2_8,1 A streaming mp3/ogg-vorbis audio server
Код: Выделить всё
<icecast>
<limits>
<clients>50</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>12345</source-password>
<relay-password>12345</relay-password>
<admin-user>admin</admin-user>
<admin-password>12345</admin-password>
</authentication>
<hostname>localhost</hostname>
<listen-socket>
<port>8000</port>
</listen-socket>
<mount>
<mount-name>/radio</mount-name>
<max-listeners>50</max-listeners>
<burst-size>65536</burst-size>
</mount>
<fileserve>1</fileserve>
<paths>
<basedir>/var/icecast</basedir>
<logdir>/log</logdir>
<webroot>/web</webroot>
<adminroot>/admin</adminroot>
<pidfile>/run/icecast.pid</pidfile>
<alias source="/" dest="/status.xsl"/>
</paths>
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<playlistlog>playlist.log</playlistlog>
<loglevel>2</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
<logsize>10000</logsize> <!-- Max size of a logfile -->
<logarchive>1</logarchive>
</logging>
<security>
<chroot>1</chroot>
<changeowner>
<user>icecast</user>
<group>icecast</group>
</changeowner>
</security>
</icecast>
Код: Выделить всё
[general]
duration = 0 # duration of encoding, in seconds. 0 means forever
bufferSecs = 5 # size of internal slip buffer, in seconds
reconnect = yes # reconnect to the server(s) if disconnected
realtime = no # run the encoder with POSIX realtime priority
rtprio = 3 # scheduling priority for the realtime threads
[input]
device = /dev/dsp # OSS DSP soundcard device for the audio input
sampleRate = 44100 # sample rate in Hz. try 11025, 22050 or 44100
bitsPerSample = 16 # bits per sample. try 16
channel = 2 # channels. 1 = mono, 2 = stereo
[icecast2-0]
bitrateMode = cbr # average bit rate
format = mp3 # format of the stream: ogg vorbis
bitrate = 64 # bitrate of the stream sent to the server
server = 192.168.0.1 # host name of the server
port = 8000 # port of the IceCast2 server, usually 8000
password = 12345 # source password to the IceCast2 server
mountPoint = radio # mount point of this stream on the IceCast2 server
name = MyRadio # name of the stream
description = Pirate station # description of the stream
url = http://192.168.0.1 # URL related to the stream
genre = music # genre of the stream
public = no # advertise this stream?
#localDumpFile = dump.ogg # local dump file
Код: Выделить всё
# mpg123 /home/admin/track1.mp3