[darkice] Reconnection bug on FreeBSD

  • From: Andrew <andrew@xxxxxxxxxxxxxxxxxxxxxxx>
  • To: darkice@xxxxxxxxxxxxx
  • Date: Sun, 10 Apr 2011 20:18:02 -0600

Hi,

I am experimenting with Darkice and believe that I have found a bug.

I have configuration file with 3 different mountpoints -- aac+, mp3 and vorbis 
streams. After about 12 hours of running, I noticed that the vorbis stream had 
disconnected from the server and was outputting this to the log every few 
seconds:

07-Apr-2011 07:34:10 MultiThreadedConnector :: sinkThread reconnecting  1
07-Apr-2011 07:34:12 MultiThreadedConnector :: sinkThread reconnecting  1
07-Apr-2011 07:34:14 MultiThreadedConnector :: sinkThread reconnecting  1
07-Apr-2011 07:34:15 MultiThreadedConnector :: sinkThread reconnecting  1
07-Apr-2011 07:34:17 MultiThreadedConnector :: sinkThread reconnecting  1
07-Apr-2011 07:34:19 MultiThreadedConnector :: sinkThread reconnecting  1
07-Apr-2011 07:34:20 MultiThreadedConnector :: sinkThread reconnecting  1

The AAC+ and MP3 streams remaining connected, however there were glitches in 
the audio. A restart of Darkice caused all of the streams to reconnect to 
Icecast successfully, but this makes me very nervous about using Darkice in 
production.

Perhaps this is a threading bug?

I am running FreeBSD 7.1 i386 with the following darkice config:

[general]
duration        = 0        # duration of encoding, in seconds. 0 means forever
bufferSecs      = 10         # size of internal slip buffer, in seconds
reconnect       = yes       # reconnect to the server(s) if disconnected
realtime        = yes       # run the encoder with POSIX realtime priority

# 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         = 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       # average bit rate
format          = aacp    # format of the stream: ogg vorbis
bitrate         = 24        # bitrate of the stream sent to the server
server          = remotehosthere
                           # host name of the server
port            = 8000      # port of the IceCast2 server, usually 8000
password        = password    # source password to the IceCast2 server
mountPoint      = mountpoint-24k.aac  # mount point of this stream on the 
IceCast2 server
public          = yes       # advertise this stream?

[icecast2-1]
bitrateMode     = vbr       # average bit rate
format          = vorbis    # format of the stream: ogg vorbis
quality         = -0.1         # bitrate of the stream sent to the server
server          = remotehosthere
                           # host name of the server
port            = 8000      # port of the IceCast2 server, usually 8000
password        = password    # source password to the IceCast2 server
mountPoint      = mountpoint-32k.ogg  # mount point of this stream on the 
IceCast2 server
public          = yes       # advertise this stream?

[icecast2-2]
bitrateMode     = cbr       # average bit rate
format          = mp3    # format of the stream: ogg vorbis
bitrate         = 64       # bitrate of the stream sent to the server
server          = remotehosthere
                           # host name of the server
sampleRate      = 22050
channel         = 1
port            = 1500      # port of the IceCast2 server, usually 8000
password        = password    # source password to the IceCast2 server
mountPoint      = mountpoint-64k-m.mp3  # mount point of this stream on the 
IceCast2 server
public          = yes       # advertise this stream?


Any help would be greatly appreciated.

Thanks!
Andrew


Other related posts:

  • » [darkice] Reconnection bug on FreeBSD - Andrew