[darkice] Re: Error Compiling under openSuse 11.2

  • From: Phil <w2lie@xxxxxxxxx>
  • To: darkice@xxxxxxxxxxxxx
  • Date: Sun, 19 Dec 2010 09:56:31 -0600


Thanks all who replied with some suggestions.
I was able to get darkice installed from RPM, but not a source install.  The 
source was still unable to find my ALSA, which worries me.

I'm trying to start Darkice now, but I'm getting the following error:
DarkIce: OssDspSource.cpp:202: can't set format [16]

The numerical in the error changes when I set the bit in config.  I can encode 
in LAME on this PC, as I use to to archive my Iceast streams and re-encode in 
MP3.

Here is my darkice config, which I am calling with ./darkice -c <custom config> 
-v 10
and, I try and always encode my streams at 16kbs / 16000Hz.

# 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      = 1         # 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/snd  # OSS DSP soundcard device for the audio input (was 
/dev/dsp)
sampleRate      = 11025     # sample rate in Hz. try 11025, 22050 or 44100
bitsPerSample   = 16        # bits per sample. try 16
channel         = 1         # 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          = mp3       # format of the stream: mp3 (was vorbis)
bitrate         = 16        # bitrate of the stream sent to the server
server          = my.server.tld
# host name of the server
port            = 8005      # port of the IceCast2 server, usually 8000
password        = hackme   # source password to the IceCast2 server
mountPoint      = test123  # mount point of this stream on the IceCast2 server
name            = test
# name of the stream
description     = test
# description of the stream
url             = http://www.server.tld
# URL related to the stream
genre           = Test    # genre of the stream
public          = no       # advertise this stream?
#localDumpFile    = dump.ogg  # local dump file

Thanks again for the help

73
Phil / w2lie

Help Support the Terry Farrell Firefighters Fund this holiday season.
Visit www.w2lie.net/charity to purchase a raffle ticket or place a donation 
today! 

Other related posts: