# cd /usr/ports/audio/darkice && make install clean
Выбираем параметры установки нас интересует mp3.
Настройка Darkice
Правим darkice.cfg:
[general]
duration = 0 # duration of encoding, in seconds. 0 means forever
bufferSecs = 2 # size of internal slip buffer, in seconds
reconnect = yes # reconnect to the server(s) if disconnected
[input]
device = /dev/dsp0.0 # 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 = abr # average bit rate
format = mp3 # format of the stream: ogg vorbis
bitrate = 128 # bitrate of the stream sent to the server
server = localhost
# (Имя сервера)host name of the server
port = 8000 # (Порт)port of the IceCast2 server, usually 8000
password = mypass # source password to the IceCast2 server
mountPoint = sample128 # mount point of this stream on the IceCast2 server
name = DarkIce Trial 128
# name of the stream
description = This is only a trial
# description of the stream
url = http://www.yourserver.com
# URL related to the stream
genre = my own # genre of the stream
public = yes # advertise this str
Запускаем darkice.
Все теперь пользователи могут подключатся к нашему серверу по адресу
http://r-info.net:8000/ и выбрать нужный поток (имя сайта выдуманное).