Darkice on Pi Multiple Streams

Status
Not open for further replies.
Joined
Dec 18, 2012
Messages
40
Location
Portage County, Ohio
With the help of the forums, I was able to successfully get one stream up and running, I have it called darkice1.cfg From my understanding, the only thing I need to do to start another stream was to create a second file called darkice2.cfg, change the password and mount point to the second stream, and then start. I have double and triple checked my cfg file and I'm still getting the error:

$ sudo darkice -c /etc/darkice2.cfg
DarkIce 1.0 live audio streamer, http://code.google.com/p/darkice/
Copyright (c) 2000-2007, Tyrell Hungary, http://tyrell.hu/
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/darkice2.cfg
Using ALSA DSP input device: plughw:1,0
Using POSIX real-time scheduling, priority 98
DarkIce: LameLibEncoder.cpp:75: lame lib opening underlying sink error [0]

I feel like I'm missing something very simple.

Running RasberryPi3 Jessy, and again the first stream is working perfectly fine, even on reboots. I don't know what I'm missing.
 

DC31

Member
Premium Subscriber
Joined
Feb 19, 2011
Messages
1,171
Location
Massachusetts
With the help of the forums, I was able to successfully get one stream up and running, I have it called darkice1.cfg From my understanding, the only thing I need to do to start another stream was to create a second file called darkice2.cfg, change the password and mount point to the second stream, and then start. I have double and triple checked my cfg file and I'm still getting the error:

$ sudo darkice -c /etc/darkice2.cfg
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/darkice2.cfg
Using ALSA DSP input device: plughw:1,0
Using POSIX real-time scheduling, priority 98
DarkIce: LameLibEncoder.cpp:75: lame lib opening underlying sink error [0]

I feel like I'm missing something very simple.

Running RasberryPi3 Jessy, and again the first stream is working perfectly fine, even on reboots. I don't know what I'm missing.
Running a second stream implies that it should be from a second audio source. Is plughw:1,0 the audio source used in both instances? At the command line $ arecord -l will list your audio sources.
 
Joined
Dec 18, 2012
Messages
40
Location
Portage County, Ohio
Running a second stream implies that it should be from a second audio source. Is plughw:1,0 the audio source used in both instances? At the command line $ arecord -l will list your audio sources.
I have currently two usb sound cards plugged in. When I run the command to list audio sources I get this:

**** List of CAPTURE Hardware Devices ****
card 1: Device [C-Media USB Audio Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: system [iMic USB audio system], device 0: USB Audio [USB Audio]
Subdevices: 0/1
Subdevice #0: subdevice #0



Device 1: For secondary stream, device 2 is for the primary stream. To make it eaiser on everyone, Card 2 serves the PD stream, card 1 serves FD stream. Again, the PD streams just fine.



darkice1.cfg for the PD:

device = plughw:2,0 # hw:0,0 then hw:1,0 then hw:2,0 etc
sampleRate = 22050
bitsPerSample = 16
channel = 2 # 1 for mono, 2 for stereo


darkice2.cfg for the FD:

device = plughw:1,0 # hw:0,0 then hw:1,0 then hw:2,0 etc
sampleRate = 22050
bitsPerSample = 16
channel = 2 # 1 for mono, 2 for stereo

I'm assuming that these would be the correct settings. Unless card 1 is required to be inside the darkice1.cfg file...
 

DC31

Member
Premium Subscriber
Joined
Feb 19, 2011
Messages
1,171
Location
Massachusetts
I have currently two usb sound cards plugged in. When I run the command to list audio sources I get this:

**** List of CAPTURE Hardware Devices ****
card 1: Device [C-Media USB Audio Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: system [iMic USB audio system], device 0: USB Audio [USB Audio]
Subdevices: 0/1
Subdevice #0: subdevice #0



Device 1: For secondary stream, device 2 is for the primary stream. To make it eaiser on everyone, Card 2 serves the PD stream, card 1 serves FD stream. Again, the PD streams just fine.



darkice1.cfg for the PD:

device = plughw:2,0 # hw:0,0 then hw:1,0 then hw:2,0 etc
sampleRate = 22050
bitsPerSample = 16
channel = 2 # 1 for mono, 2 for stereo


darkice2.cfg for the FD:

device = plughw:1,0 # hw:0,0 then hw:1,0 then hw:2,0 etc
sampleRate = 22050
bitsPerSample = 16
channel = 2 # 1 for mono, 2 for stereo

I'm assuming that these would be the correct settings. Unless card 1 is required to be inside the darkice1.cfg file...

Try shutting down the PD feed and run just the FD feed. Do you still get the same error?
 
Joined
Dec 18, 2012
Messages
40
Location
Portage County, Ohio
Try shutting down the PD feed and run just the FD feed. Do you still get the same error?
I wasn't sure how to stop feed one so I just made a copy of my .cfg file, named it copy, then deleted the original. Did a reboot, then ran the command line:

sudo darkice -c /etc/darkice2.cfg

Returned:

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/darkice2.cfg
Using ALSA DSP input device: plughw:1,0
Using POSIX real-time scheduling, priority 98

I then ran to start darkice1.cfg and it ran successfully. But.....

After reboot, darkice1.cfg started successfully, I got the lame error again on darkice2.cfg
 
Last edited:
Status
Not open for further replies.
Top