internet radio setup -- basics, need to be scripted and crontab'ed

to create an .mp3 stream on http://cm-jam.stanford.edu:8000/blackcloud

make sure there's an icecast daemon running, then these commands to start jack, darkice, find darkice, connect looping file to darkice

  • /usr/bin/jackd -R -ddummy -r48000 -p256 &
  • ~/Download/darkice-0.18.1/src/darkice  -c /usr/local/etc/darkice.cfg &
  • jack_lsp
  • ecasound -i audioloop,eowin.wav -o jack_auto,darkice-23788

contents of darkice.cfg cat /usr/local/etc/darkice.cfg


# sample DarkIce configuration file, edit for your needs before using
# see the darkice.cfg man page for details

# this section describes general aspects of the live streaming session
[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

# this section describes the audio input that will be streamed
[input]
device          = jack_auto # OSS DSP soundcard device for the audio input
sampleRate      = 48000     # sample rate in Hz. try 11025, 22050 or 44100
bitsPerSample   = 16        # bits per sample. try 16
channel         = 2         # channels. 1 = mono, 2 = stereo

# this section describes a streaming connection to an IceCast2 server
# there may be up to 8 of these sections, named [icecast2-0] ... [icecast2-7]
# these can be mixed with [icecast-x] and [shoutcast-x] sections
[icecast2-0]
bitrateMode     = cbr       # constant bit rate
format          = mp3       # format of the stream: mp3
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        =   # source password to the IceCast2 server
mountPoint      = blackcloud # mount point of this stream on the IceCast2 server
name            = Black Cloud
                            # name of the stream
description     = Black Cloud Streaming
                            # description of the stream
url             = http://www.blackcloud.org
                            # URL related to the stream
genre           = Art       # genre of the stream
public          = no        # advertise this stream?

 

Syndicate content