Followed the thread to setup OP25 to stream to broadcastify. I followed the config and am getting an error when launching darkice with the config. I am posting all of the config files. I am assuming that there is an issue with the sound card input/output on the Pi, just need verification from someone who has done it in the past.
The actual OP25 works fine and starts with both command and service with the following lines:
When running
directly in console I am getting the following:
Any insight would be appreciated.
The actual OP25 works fine and starts with both command and service with the following lines:
Code:
#! /bin/sh
cd /home/pi/op25/op25/gr-op25_repeater/apps
./rx.py -l http:127.0.0.1:8080 --args 'rtl' -N 'LNA:47' -O loop0 -S 960000 -f 773.84375e6 -x 25 -o 25000 -T trunk.tsv -V -2 -U 2> stderr-cspd.2
Code:
[b]/etc/modprobe.d/bcm2835.conf[/b]
softdep snd-bcm2835 post: snd-aloop
options snd-aloop enable=1 index=1 pcm_substreams=2
Code:
[b]/etc/asound.conf[/b]
# 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"
}
}
}
Code:
[b]/etc/darkice-stream0.cfg[/b]
# sample DarkIce configuration file, edit for your needs before using
# see the darkice.cfg man page for details
# 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 = 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
# 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
# If you want to send to your own icecast server, you basically copy
# this whole section and put in the values to point the feed to your own
# server instead of the RR information below
# Don't forget, the name [icecast2-0] needs to change to [icecast2-1]
# and 2 and 3 as you add more feed destinations.
[icecast2-0]
# The audio format to encode to, we're using mp3 here
format = mp3
# The bit rate mode to use, the commented out lines are for a fixed bit
# rate "constant bit rate" at 16 bits. I prefer the variable bit rate
# for the sound quality it has and the throughput is very similar on avg
#bitrateMode = cbr (do not use vbr)
#bitrate = 16 or 32 (16 for mono feeds, 32 for stereo feeds)
sampleRate = 22050 # sample rate in Hz. 22050 is the RR Standard
bitrateMode = cbr
bitrate = 16
# Quality at .1, max is 1.0, but as you increase, so does the bandwidth
# used. For mono scanner audio .1 is totally fine.
quality = 0.1
# Takes the input and mixes it down to a mono output for the feed.
channel = 1
# Cuts frequency response over 5kHz. For scanner feed this mostly
# eliminates hiss and harshness on paging tones. Saves a bunch of
# bandwidth as well.
lowpass = 5000
# Server shown on your RR feed owner page that hosts your feed
# You need to log in to RR, go to Account -> My Live Audio Feeds ->
# click the feed owner page icon at the far right of your feed listing.
# Then you will see all this information.
# From Feed Technical Details, the "Server"
server = SERVER.broadcastify.com
# From Feed Technical Details, the "Port"
port = 80 # port of the IceCast server, usually 8000
# From Feed Technical Details, the Password exactly as shown
password = PASSWORD
# From Feed Technical Details, the mount...remove the leading "/", it's
# not needed in this file. So if it is /999999 make it just 999999
mountPoint = MOUNTPOINT
# name of the stream
# On My Live Audio Feeds, it's the first part ending in a colon ":"
name = Short name
# On My Live Audio Feeds, it's the part in parentheses in the Feed name
description = Description
# I don't think this is really needed because RR takes care of links
url = http://api.radioreference.com/js/?key=XXXXXXX&feedId=XXXX
genre = Scanner
public = yes
When running
Code:
/usr/bin/darkice -c /etc/darkice-stream0.cfg
Code:
DarkIce 1.3 live audio streamer, http://code.google.com/p/darkice/
Copyright (c) 2000-2007, Tyrell Hungary, http://tyrell.hu/
Copyright (c) 2008-2013, 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-stream0.cfg
Using ALSA DSP input device: loop0
Using POSIX real-time scheduling, priority 4
ALSA lib pcm_direct.c:1605:(_snd_pcm_direct_get_slave_ipc_offset) Invalid value for card
DarkIce: DarkIce.cpp:1273: can't open connector [0]
Any insight would be appreciated.