Hi All,
I have been working on getting my stream online but having worked my way through many issues already, I have been stuck on the final stage for 2 days. I am running an RTL-SDR with a Raspberry Pi 4 with raspbian (the latest - Buster I think). OP25 is decoding my trunked local radio frequencies brilliantly out of my speakers but when I transition to piping the audio through loop0 to darkice I get the following message:
Using config file: /etc/darkice-stream0.cfg
Using ALSA DSP input device: loop0
Using POSIX real-time scheduling, priority 98
ALSA lib pcm_direct.c:1824
_snd_pcm_direct_get_slave_ipc_offset) Invalid value for card
DarkIce: DarkIce.cpp:1187: can't open connector [0]
Here is my /etc/darkice-stream0.cfg file:
[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
[input]
device = loop0 # OSS DSP soundcard device for the audio input
sampleRate = 22050 # sample rate in Hz. 22050 is the RR Standard
bitsPerSample = 16 # bits per sample. 16 for mono feeds, 32 for stereo feeds
channel = 1 # channels. 1 = mono, 2 = stereo
[icecast2-0]
format = mp3
sampleRate = 22050 # sample rate in Hz. 22050 is the RR Standard
bitrateMode = cbr
bitrate = 16
quality = 0.1
channel = 1
lowpass = 4000
server =audio1.broadcastify.com
port =80 # port of the IceCast server, usually 8000
password =(Password removed for security)
mountPoint = (Mountpoint here with forward slash removed)
name = NSW RFS Macarthur Zone eG032 GRN
My /etc/modprobe.d/bcm2835.conf file:
softdep snd-bcm2835 post: snd-aloop
options snd-aloop enable=1 index=1 pcm_substreams=2
My /etc/asound.conf file:
# output device
pcm.loopout0 {
type plug
slave.pcm "hw:Loopback,0,0"
}
# input device
pcm.loopin0 {
type dsnoop
ipc_key 686592
slave.pcm "hw:Loopback,1,0"
}
# duplex plug device
pcm.loop0 {
type plug
slave {
pcm {
type asym
playback.pcm "loopout0"
capture.pcm "loopin0"
}
}
}
# output device
pcm.loopout1 {
type plug
slave.pcm "hw:Loopback,0,1"
}
# input device
pcm.loopin1 {
type dsnoop
ipc_key 686593
slave.pcm "hw:Loopback,1,1"
}
# duplex plug device
pcm.loop1 {
type plug
slave {
pcm {
type asym
playback.pcm "loopout1"
capture.pcm "loopin1"
}
}
}
My op25.sh file:
./rx.py --nocrypt --args 'rtl' --gains 'lna:36' -S 250000 -q 0 -v 1 -O loop0 -T trunk.tsv -V -2 -U 2> stderr-stream0.2
Alsamixer is set to put audio out the built in headphone jack. When I run the op25.sh file with '-O loop0' removed I get audio out of my speakers fine. I need to get darkice running to get my stream up and I'd also like the audio to be coming out of my speakers concurrently.
Thank you for your help and please let me know if there is any other information I can provide to help!!
I have been working on getting my stream online but having worked my way through many issues already, I have been stuck on the final stage for 2 days. I am running an RTL-SDR with a Raspberry Pi 4 with raspbian (the latest - Buster I think). OP25 is decoding my trunked local radio frequencies brilliantly out of my speakers but when I transition to piping the audio through loop0 to darkice I get the following message:
Using config file: /etc/darkice-stream0.cfg
Using ALSA DSP input device: loop0
Using POSIX real-time scheduling, priority 98
ALSA lib pcm_direct.c:1824
DarkIce: DarkIce.cpp:1187: can't open connector [0]
Here is my /etc/darkice-stream0.cfg file:
[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
[input]
device = loop0 # OSS DSP soundcard device for the audio input
sampleRate = 22050 # sample rate in Hz. 22050 is the RR Standard
bitsPerSample = 16 # bits per sample. 16 for mono feeds, 32 for stereo feeds
channel = 1 # channels. 1 = mono, 2 = stereo
[icecast2-0]
format = mp3
sampleRate = 22050 # sample rate in Hz. 22050 is the RR Standard
bitrateMode = cbr
bitrate = 16
quality = 0.1
channel = 1
lowpass = 4000
server =audio1.broadcastify.com
port =80 # port of the IceCast server, usually 8000
password =(Password removed for security)
mountPoint = (Mountpoint here with forward slash removed)
name = NSW RFS Macarthur Zone eG032 GRN
My /etc/modprobe.d/bcm2835.conf file:
softdep snd-bcm2835 post: snd-aloop
options snd-aloop enable=1 index=1 pcm_substreams=2
My /etc/asound.conf file:
# output device
pcm.loopout0 {
type plug
slave.pcm "hw:Loopback,0,0"
}
# input device
pcm.loopin0 {
type dsnoop
ipc_key 686592
slave.pcm "hw:Loopback,1,0"
}
# duplex plug device
pcm.loop0 {
type plug
slave {
pcm {
type asym
playback.pcm "loopout0"
capture.pcm "loopin0"
}
}
}
# output device
pcm.loopout1 {
type plug
slave.pcm "hw:Loopback,0,1"
}
# input device
pcm.loopin1 {
type dsnoop
ipc_key 686593
slave.pcm "hw:Loopback,1,1"
}
# duplex plug device
pcm.loop1 {
type plug
slave {
pcm {
type asym
playback.pcm "loopout1"
capture.pcm "loopin1"
}
}
}
My op25.sh file:
./rx.py --nocrypt --args 'rtl' --gains 'lna:36' -S 250000 -q 0 -v 1 -O loop0 -T trunk.tsv -V -2 -U 2> stderr-stream0.2
Alsamixer is set to put audio out the built in headphone jack. When I run the op25.sh file with '-O loop0' removed I get audio out of my speakers fine. I need to get darkice running to get my stream up and I'd also like the audio to be coming out of my speakers concurrently.
Thank you for your help and please let me know if there is any other information I can provide to help!!