DarkIce Error

Status
Not open for further replies.

box23

Member
Joined
Aug 16, 2007
Messages
492
Location
State of Superior
I've tried searching through the forum but haven't found anything on this topic,

I've installed DarkIce in Ubuntu 9.10e with reference to the HowTo in the wiki. I modified the configuration file in the wiki as needed for my setup. However I am slightly confused as to the information needed. For the "name" field, would this be the "Primary Description" field on my Manage Feed page? Then would the "description" field be the "Secondary Description" for my feed? I don't know if this really affects anything, but I thought I should ask.

As for my real problem, when I run darkice using the -c argument to point to my modified config file, the following error pops up:
Code:
DarkIce: LameLibEncoder.cpp:75: lame lib opening underlying sink error [0]
I have tried internet searches of the error, but haven't been able to come up with much information, only that the error cryptically says darkice cannot connect to the icecast server.

My computer is behind a router and I have port 80 forwarded to a different computer running a web server. Thinking this may be the problem I tried disabling that forward, and even forwarded it to my stream computer to no avail.

At the moment I can't think of anything else that I have tried, but if I remember I will post. I can also post my config file if needed.

Has anyone else seen this error before, or know how to handle it?
Thank you for any help
 

j2brown

Member
Feed Provider
Joined
Dec 18, 2003
Messages
147
Here's my working darkice.cfg. See if that helps.

Code:
[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

[input]
device          = /dev/dsp  # OSS DSP soundcard device for the audio input
sampleRate      = 22050     # 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]
bitrateMode     = cbr       # constant bit rate
format          = mp3
bitrate         = 16        # bitrate of the mp3 stream sent to the server
quality         = 0.8       # encoding quality
server          = YOURASSIGNEDSERVER.radioreference.com
                            # host name of the server
port            = 80        # port of the IceCast server, usually 8000
password        = YOURPASSWORD  # source password to the IceCast server
mountPoint      = YOURMOUNTPOINT  # mount point of this stream on the IceCast server
name            = MWAA Public Safety
                            # name of the stream
description     = MWAA Fire, Rescue, and Police
                            # description of the stream
url             = http://www.radioreference.com/apps/audio/?feedId=YOURFEED
                            # URL related to the stream
genre           = Live Dispatch    # genre of the stream
public          = no       # advertise this stream?

It may not be perfect, but it is working. Because is pushes to the server your routing/forwarding probably isn't the problem in this case.

jeff
sdg
 

andw1

Member
Joined
Jan 12, 2010
Messages
14
Location
Wakefield, MI
It's not a config problem, it has to do with the LAME encoder running as sudo. I had to change the permissions on the LAME encoder and start it as root and not doing a sudo root.
 

box23

Member
Joined
Aug 16, 2007
Messages
492
Location
State of Superior
It's not a config problem, it has to do with the LAME encoder running as sudo. I had to change the permissions on the LAME encoder and start it as root and not doing a sudo root.

Well that worked. I su-ed into root and ran it and it worked. What did you change the permissions to? I don't really like the idea of having an open terminal window running with root access.

But in the mean time I got it to work, thank you very much.
 

andw1

Member
Joined
Jan 12, 2010
Messages
14
Location
Wakefield, MI
It's actually a user check in the LAME script, In my latest install I just set up a init script to start it on boot as a system proccess, but on my old one I changed the LAME to allow it. I will see if I can find my notes when I get home tonight.
 

barnball

Member
Joined
Feb 12, 2007
Messages
18
Location
Madison County NY
any help at all? I have tried running as root as suggested and it continues to give me the same error, what needs to be done to resolve this issue? thanks in advance
 

andw1

Member
Joined
Jan 12, 2010
Messages
14
Location
Wakefield, MI
You could try and re-install LAME. The error has to do with LAME accessing your sound device, which by default only root can do. You will also get this error if LAME can't get input from your sound device for any reason. What device are you telling it to use in your darkice.cfg?
 

barnball

Member
Joined
Feb 12, 2007
Messages
18
Location
Madison County NY
hw:0,0 although I have also tried /dev/dsp.

Code:
# 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

# this section describes the audio input that will be streamed
[input]
device          = hw:0,0  # OSS DSP soundcard device for the audio input
sampleRate      = 22050     # 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 IceCast server
# there may be up to 8 of these sections, named [icecast-0] ... [icecast-7]
# these can be mixed with [icecast2-x] and [shoutcast-x] sections
 
# If you want to send to your own icecast server, you basically copy
# this whole section and put in the values to point the feed to your own
# server instead of the RR information below
 
# Don't forget, the name [icecast2-0] needs to change to [icecast2-1]
# and 2 and 3 as you add more feed destinations.
 
[icecast2-0]
# The audio format to encode to, we're using mp3 here
format          = mp3

# The bit rate mode to use, the commented out lines are for a fixed bit
# rate "constant bit rate" at 16 bits.  I prefer the variable bit rate
# for the sound quality it has and the throughput is very similar on avg

#bitrateMode    = cbr
#bitrate        = 16

bitrateMode     = vbr

# Quality at .1, max is 1.0, but as you increase, so does the bandwidth
# used.  For mono scanner audio .1 is totally fine.
quality         = 0.1

# Takes the input and mixes it down to a mono output for the feed.
channel         = 1

# Cuts frequency response over 5kHz.  For scanner feed this mostly
# eliminates hiss and harshness on paging tones.  Saves a bunch of
# bandwidth as well.
lowpass         = 5000

# Server shown on your RR feed owner page that hosts your feed
# You need to log in to RR, go to Account -> My Live Audio Feeds ->
# click the feed owner page icon at the far right of your feed listing.
# Then you will see all this information.

# From Feed Technical Details, the "Server"
server          = audio3.radioreference.com 

# From Feed Technical Details, the "Port"
port            = 80      # port of the IceCast server, usually 8000

# From Feed Technical Details, the Password exactly as shown
password        = xxxxxxxxxx

# From Feed Technical Details, the mount...remove the leading "/", it's
# not needed in this file.  So if it is /999999 make it just 999999
mountPoint      = /xxxxxxxxx

# name of the strea
# On My Live Audio Feeds, it's the first part ending in a colon ":"
name            = Madison and Oneida Counties Sheriff, Police, Fire, and EMS 

# On My Live Audio Feeds, it's the part in parentheses in the Feed name
description     = Includes Madison and Oneida Counties Sheriff, Law, Fire and EMS Dispatch and Car to Car, NYS Police Troop D, COCVAC Dispatch, Edwards, Kunkel, and Vineall Ambulance Dispatch, and Oriskany Falls Home Alert 

# I don't think this is really needed because RR takes care of links
url             = http://api.radioreference.com/js/?key=XXXXXXX&feedId=XXXX
genre           = Scanner
public          = yes
 
Last edited:

andw1

Member
Joined
Jan 12, 2010
Messages
14
Location
Wakefield, MI
Try this .cfg, just add your password and mountpoint:
Code:
# 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

# this section describes the audio input that will be streamed
[input]
device          = default  # OSS DSP soundcard device for the audio input
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     = abr       # average bit rate
format          = mp3    # format of the stream: ogg vorbis
#quality         = 0.8       # encoding quality
bitrate         = 16        # bitrate of the stream sent to the server
server          = audio3.radioreference.com  # host name of the server
port            = 80      # port of the IceCast2 server, usually 8000
password        = xxxxxxx  # source password to the IceCast2 server
mountPoint      = xxxxxxxxx  # mount point of this stream on the IceCast2 server
name            = RadioReference.com           # name of the stream
#description     =                             # description of the stream
url             = http://www.radioreference.com                            # URL related to the stream
genre           = scanner     # genre of the stream
public          = yes        # advertise this stream?
 

barnball

Member
Joined
Feb 12, 2007
Messages
18
Location
Madison County NY
tried the above config, got the same exact error, tried it as normal user, sudo, and as root....I'm fairly confident between this and other things I've tried that my darkice.cfg is not the issue...any other ideas?
 

djems

Newbie
Joined
Jun 9, 2010
Messages
1
DarkIce: LameLibEncoder.cpp:75: lame lib opening underlying sink error [0]

I'm sick of people giving BS answers when they know they just don't the answer. It's like when we lost and refuse to ask for direction.


The answer is simply this: the Error "DarkIce: LameLibEncoder.cpp:75: lame lib opening underlying sink error [0]" happens when darkcice can't connect to the stream server. such as shoutcast or icecast and so on. The problem is that if you confiure for instance Shoutcast to start on port 8000, it's expecting the transcoder on port 8001. So darkcice.conf port must be one number up the streamer.

get it? Stream: 8080 , darkice 8081
 

andw1

Member
Joined
Jan 12, 2010
Messages
14
Location
Wakefield, MI
I'm sick of people giving BS answers when they know they just don't the answer. It's like when we lost and refuse to ask for direction.


The answer is simply this: the Error "DarkIce: LameLibEncoder.cpp:75: lame lib opening underlying sink error [0]" happens when darkcice can't connect to the stream server. such as shoutcast or icecast and so on. The problem is that if you confiure for instance Shoutcast to start on port 8000, it's expecting the transcoder on port 8001. So darkcice.conf port must be one number up the streamer.

get it? Stream: 8080 , darkice 8081

As someone that has had this error and fixed it, you sir are an idiot.
 
Joined
Mar 21, 2010
Messages
237
Location
Bellingham Washington
Can you give us this answer here? because I am now having the same issue with darkice

I had the same problem getting Darkice running and found this to be the right answer

The answer is simply this: the Error "DarkIce: LameLibEncoder.cpp:75: lame lib opening underlying sink error [0]" happens when darkcice can't connect to the stream server.

Double and triple check your Darkice config.
 

Blindman

Member
Premium Subscriber
Joined
Feb 15, 2008
Messages
52
Location
plattsburgh ny
I had the same problem getting Darkice running and found this to be the right answer



Double and triple check your Darkice config.
I did eventually get it going and it isn't as simple as just reading the config till yer eyes hurt, it seems the config that ships isn't entirely accurate.
 

snipes420

Member
Joined
Jul 9, 2011
Messages
5
I had three darkice streams sent to my icecast2 server on the localhost.
The icecast2.xml was set to allow three streams in the "<streams>3</streams>".
When I tried adding a fourth it gave the error "lame lib opening underlying sink error".
I increased the configuration to four and restarted the icecast server then it worked.

Looks like this error is indeed because the darkice process cannot connect to it's stream server (icecast)
Thanks for the hints!
 

hiya

Member
Feed Provider
Joined
Feb 8, 2011
Messages
23
error

I had this same error and had a backup image of a known good working darkice server. Restored and still had the same issue. My issue was someone started scannercast on my desktop for the same feed. Closed scannercast, sudo reboot and away it went.
 

hazard78

Member
Feed Provider
Joined
Apr 1, 2003
Messages
49
Location
St Clair, mi
how do I fix this error

DarkIce: LameLibEncoder.cpp:75: lame lib opening underlying sink error [0]

thanks
 
Status
Not open for further replies.
Top