Darkice/hardwareloop issues

Status
Not open for further replies.

zapman987

Member
Premium Subscriber
Joined
Jan 16, 2014
Messages
297
Location
nc, recently moved to jax, FL
New feed Im trying to setup with RTL-FM. Got it working out the speakers, figured out overall how its to feed to darkice. Cept its getting dropped somewhere between. I had an old darkice setup for OP25 with a loop, cleaned it out, but no fix. Darkice is connecting with broadcastify just fine, just no output there.

/etc/asound.conf
Code:
pcm.duplex {
    type asym
    playback.pcm "hw:1,0"
    capture.pcm "hw:0,0"
}
pcm.!default {
    type plug
    slave.pcm "duplex"
}
darkice conf
Code:
[input]
device          = plughw:1,1  # 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-1]
bitrateMode   = cbr
format        = mp3
bitrate       = 16
lowpass       = 5000
{broadcastify data removed}

aplay -l
Code:
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
  Subdevices: 6/7
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 IEC958/HDMI [bcm2835 IEC958/HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: ALSA [bcm2835 ALSA], device 2: bcm2835 IEC958/HDMI1 [bcm2835 IEC958/HDMI1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
  Subdevices: 2/2
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
card 1: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
  Subdevices: 2/2
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1

RTL-FM & SOX
Code:
rtl_fm -f 154.4M -M fm -s 16k -g 36 -l 85 | play -r 16k -t raw -e s -b 16 -c 1 -V1 -
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,410
Location
Talbot Co, MD
If you're going to use darkice you'll need aloop, otherwise you have no way to connect the audio output to darkice input.
Personally I've given up on aloop (and therefore also darkice) and now prefer Liquidsoap because it is more flexible and more reliable.
 

zapman987

Member
Premium Subscriber
Joined
Jan 16, 2014
Messages
297
Location
nc, recently moved to jax, FL
Boatbod, so I tried liquidsoap, its about like darkice, wont pick up the data from sox or rtl_fm natively. Im using the same setup as the op25 with input.external. Looked at input.alsa, but no idea what args to input for it.
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,410
Location
Talbot Co, MD
Boatbod, so I tried liquidsoap, its about like darkice, wont pick up the data from sox or rtl_fm natively. Im using the same setup as the op25 with input.external. Looked at input.alsa, but no idea what args to input for it.

You'd have to craft your input.external script to run rtl_fm with the appropriate options, much like the audio.py helper app that works with op25.
I also found this link if it's of any use to you:
 
Status
Not open for further replies.
Top