Darkice setup

Darkice handles the nitty gritty of reading audio from the sound card and feeding it to Icecast. You can create multiple streams with different bit rate from a single input. The configuration detailed here creates two streams, one high bandwidth users and one for low bandwidth users.

Here's my config file from /usr/local/etc/darkice.cfg:

[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

# this section describes the audio input that will be streamed
[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         = 1         # channels. 1 = mono, 2 = stereo

[icecast2-0]
format          = mp3
bitrateMode     = cbr
bitrate         = 128
quality         = 0.8
server          = localhost
mountPoint      = high
port            = 8000
password        = itsasecret
name            = KPSU High-bandwith Stream
description     = Live stream of the KPSU broadcast.
url             = http://kpsu.org
genre           = College Radio
public          = yes

[icecast2-1]
format          = mp3
sampleRate      = 22050
bitrateMode     = cbr
bitrate         = 32
quality         = 0.8
server          = localhost
mountPoint      = low
port            = 8000
password        = itsasecret
name            = KPSU Low-bandwith Stream
description     = Live stream of the KPSU broadcast.
url             = http://kpsu.org
genre           = College Radio
public          = yes

You'll need a init script to run Darkice as a daemon. I hacked together the following for /usr/local/etc/rc.d/darkice.sh:

#!/bin/sh

# PROVIDE: darkice
# REQUIRE: DAEMON
# BEFORE:  login
# KEYWORD: shutdown

# Add the following line to /etc/rc.conf to enable `darkice'. This requires
# a working configuration in /usr/local/etc/darkice.cfg.
#
#darkice_enable="YES"
#

. "/etc/rc.subr"

name="darkice"
rcvar=`set_rcvar`

command="/usr/local/bin/darkice"
command_args="1>/dev/null"
required_files="/usr/local/etc/$name.cfg"

# read configuration and set defaults
load_rc_config "$name"
: ${darkice_enable="NO"}
: ${darkice_flags="-v 0 -c ${required_files} &"}

run_rc_command "$1"

Why is this page blank?

Hi, either you've not actually written this page yet, or something is missing... I can't see any content on this page at all!

buggy codefilter.module

i had a buggy copy of the codefilter module that was screwing it up. it should be corrected now.

for you, a photo

DSC01211

ads

User login