Darkice on the Two Tone Detect RPi Image

Status
Not open for further replies.

K5DVT

Member
Feed Provider
Joined
Jun 1, 2014
Messages
45
Location
Woo Pig Sooieville
Hey all,

I'm getting an error message after many times of trying to set up Darkice on the Raspberry Pi TTD image. I also do intend to use TTD along side Darkice for my stream. I had it up and going over the summer, but I took it down for some reason or another. There error message I was getting was-

DarkIce.cpp:1187: can't open connector [0]

Now, solutions to this problem have been posted all over the internet, like making my sound card Default, Pulse, pulsehw:1,0 , hw:1,0...etc.

I've done it all and I can't seem to get it to work. Any help would be appreciated. And in addition, I can change other settings and really get a mess going of the error messages.
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,547
Location
Massachusetts
Hey all,

I'm getting an error message after many times of trying to set up Darkice on the Raspberry Pi TTD image. I also do intend to use TTD along side Darkice for my stream. I had it up and going over the summer, but I took it down for some reason or another. There error message I was getting was-

DarkIce.cpp:1187: can't open connector [0]

Now, solutions to this problem have been posted all over the internet, like making my sound card Default, Pulse, pulsehw:1,0 , hw:1,0...etc.

I've done it all and I can't seem to get it to work. Any help would be appreciated. And in addition, I can change other settings and really get a mess going of the error messages.

Not sure if this will help, but here is my darkice.cfg file from a pi running both TTD and darkice:

#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 = pulse # 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 = cbr # constant bit rate
bitrate = 16
format = mp3 # format of the stream: mp3
quality = .1 # quality of the stream sent to the server
lowpass = 2000 # low pass filter to save bandwidth
server = audio1.broadcastify.com # host name of the server
port = 80 # 8000 port of the IceCast2 server, usually 8000
password = 987654321 # source password to the IceCast2 server
mountPoint = 12345678 # mount point of this stream on the IceCast2 server
name = Fire # name of the stream
description = Fire Dispatch # description of the stream
url = RadioReference.com - Scanner Frequencies and Radio Frequency Reference # URL related to the stream
genre = Public Safety # genre of the stream
public = yes # advertise

A common mistake is to include the / preceding the mount point.

Since TTD requires pulseaudio, I think that you will need to use pulse as your device. Without TTD you can use hw: or plughw:
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,547
Location
Massachusetts
Try device = pulse with the lower-case p.

I tried mine with Pulse and get the can't open connector error.
 

K5DVT

Member
Feed Provider
Joined
Jun 1, 2014
Messages
45
Location
Woo Pig Sooieville
Here's the error I get ( now that I got some time to work on it this weekend). I set everything up as according to the details from Broadcastify.

DarkIce 1.0 live audio streamer, Google Code Archive - Long-term storage for Google Code Project Hosting.
Copyright (c) 2000-2007, Tyrell Hungary, Tyrell Hungary Corporation
Copyright (c) 2008-2010, Akos Maroy and Rafael Diniz
This is free software, and you are welcome to redistribute it
under the terms of The GNU General Public License version 3 or
any later version.

Using config file: /etc/darkice.cfg
Using ALSA DSP input device: pulse
Using POSIX real-time scheduling, priority 98
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection re fused

DarkIce: DarkIce.cpp:1187: can't open connector [0]
pi@twotonedetectv67 ~ $


I am getting TTD to work just fine, audio tone detection and everything. You can see i'm using the pulse device.
 

K5DVT

Member
Feed Provider
Joined
Jun 1, 2014
Messages
45
Location
Woo Pig Sooieville
I've reburned the OS on a SD card, set up TTD ( which is working just fine) but I still get the error. In a attached screen shot, I tried running it from inside VNC instead of SSHing into the pi, and got a different message, which maybe will reveal something.
 

Attachments

  • TTD Error.PNG
    TTD Error.PNG
    16.1 KB · Views: 135

K5DVT

Member
Feed Provider
Joined
Jun 1, 2014
Messages
45
Location
Woo Pig Sooieville
Well, last night at 3:01am I received an email saying that the feed went back online. It rebooted at 2:58 or so, I think perhaps the issue here was Darkice was set up to start on startup. I'm confused to why it didn't just start up after I updated the config file :/
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,547
Location
Massachusetts
I would say that apparently you have one of the pi images containing TTD/darkice that is set up to automatically reboot the pi at 3 am. Both are likely running in detached screens. Type screen -list at the command line prompt and you will probably see that both are running.

So, is it now running the way that you want?
 

aaknitt

Member
Feed Provider
Joined
Aug 27, 2005
Messages
1,300
It's been quite awhile since I've messed with it, but I seem to remember needing to start TTD first, then darkice. It took me some trial and error to get everything to start up correctly automatically upon reboot. As DC31 mentioned, make sure you don't have multiple instances starting without realizing it.

Andy
 
Status
Not open for further replies.
Top