Trying to Supply a New Feed using Linux/DarkIce, but having trouble

Status
Not open for further replies.

scaredpoet

Member
Joined
Dec 12, 2010
Messages
17
Location
NJ
Hi Everyone,

I applied for an was approved for providing a new scanner feed. Great! However, it seems that the box running ubuntu, which I'm trying to use for sending out the audio, can't seem to connect to the server, and I'm at wit's end.

There's a twist to this though: I can successfully send and broadcast the exact same audio to a *different* server. So I'm pretty much 100% positive that the software and hardware are capable of successfully broadcasting... there just seems to be something that the radioreference server doesn't like about what I'm sending it, it would seem.

Do any linux/Ubuntu feed providers have some insight on what might be causing this?

Here's my darkice.cfg:

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

# 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
[icecast-0]
bitrateMode     = vbr       # constant bit rate
format          = mp3
bitrate         = 16        # bitrate of the mp3 stream sent to the server
quality         = 0.1       # encoding quality
server          = audio1.radioreference.com                            # host name of the server
port            = 80     # port of the IceCast server, usually 8000
password        = {supplied]}
mountPoint      = {supplied}


Run I run darkice though (as root), here's what I get:

Code:
Copyright (c) 2000-2007, Tyrell Hungary, http://tyrell.hu/

Using config file: /etc/darkice.cfg
11-Jan-2011 07:32:46 Using ALSA DSP input device: default
11-Jan-2011 07:32:46 encoding
11-Jan-2011 07:32:46 scheduler high priority 99
11-Jan-2011 07:32:46 Using POSIX real-time scheduling, priority 98
11-Jan-2011 07:32:46 BufferedSink, new peak: 7
11-Jan-2011 07:32:46 BufferedSink, remaining: 2041
11-Jan-2011 07:32:46 BufferedSink, new peak: 8
11-Jan-2011 07:32:46 BufferedSink, remaining: 2040
11-Jan-2011 07:32:46 BufferedSink, new peak: 9
11-Jan-2011 07:32:46 BufferedSink, remaining: 2039
11-Jan-2011 07:32:46 BufferedSink, new peak: 22
11-Jan-2011 07:32:46 BufferedSink, remaining: 2026
DarkIce: LameLibEncoder.cpp:75: lame lib opening underlying sink error [0]

I've Googled "lame lib opening underlying sink error [0]" and it seems like all these threads end up dead ends with no one posting a solution. Seems like that error can pretty much mean anything.

But again, here's the rub: if I change ONLY the servername, password and mountpoint to another streaming server (IceCast) that's running, the audio broadcasts, I can connect and hear the scanner, and everything is fine.

Is there something else I need to change in the config file? If anyone can offer some insight, I'd greatly appreciate it. Thanks!
 

kpitscanner

Member
Joined
Mar 12, 2010
Messages
5
Location
Upper st. Clair, PA
Code:
DarkIce: LameLibEncoder.cpp:75: lame lib opening underlying sink error [0]

I've Googled "lame lib opening underlying sink error [0]" and it seems like all these threads end up dead ends with no one posting a solution. Seems like that error can pretty much mean anything.

Basically the error means can not connect to the server.

Either:

user OR password are incorrect
host IP / domain incorrect
host server port incorrect
mountpoint name incorrect ie: you used /mount instead of just mount

ie:
mountPoint = /mount - WRONG!
mountPoint = mount - CORRECT!



encoding settings for the sever are not acceptable ie:
type MP3 or ogg, bitrates, or CBR v. VBR

ie: 24 bit VBR is not supported 24 bit CBR is etc..

client blocking by type if using the KH branch of IceCast
 

talkpair

Member
Joined
Apr 27, 2009
Messages
976
Location
Clinton County, MO
I'm not sure if this may apply to darkice or not.......but after 3 weeks of pulling my hair out with liveice, I finally learned that the password entry in the config file cannot contain ANY white space beyond the last character.

This most likely occurred because I usually make a copy of the distribution configuration file and just edit it, instead of creating a config file from scratch.

I would look at the config file with a text editor and remove everything beyond the password.....white space and comments
 

scaredpoet

Member
Joined
Dec 12, 2010
Messages
17
Location
NJ
Thanks kpitscanner and talkpair. After a lot of fiddling, I got things working.

I briefly tried LiveIce, but that was a no go. So I went back to DarkIce, followed both your advice and did the following in darkice.cfg:

- Put hard carriage returns at the end of the server, port, password and mountpoint entries so there was no empty space at the end of each line.

- Commented out the bitrate line.

- I also changed [Icecast-0] to read [Icecast2-0] as shown in the wiki article

At least one of these changes made it work, and the feed is now up. Not sure *which*, but it works so I really don't care. :)

Thanks again!
 

rdwilson

Member
Feed Provider
Joined
Oct 25, 2002
Messages
26
Location
McKinney, Texas
Boy do I feel stupid...

I had the same error message. I was looking at permissions on the Lame encoder, config file errors, etc.

As it turned out, the problem was the Windows client connected to the server so that user account was in use. Once I killed the Windows software it worked like a champ.

Just posting so that someone that may stumble on this thread will have an easier time of it.
 
Status
Not open for further replies.
Top