Skip to content

Instantly share code, notes, and snippets.

@zenom
Last active December 30, 2015 18:40
Show Gist options
  • Save zenom/b7753f8f6041a6b3f311 to your computer and use it in GitHub Desktop.
Save zenom/b7753f8f6041a6b3f311 to your computer and use it in GitHub Desktop.
# darkice configuration file
[general]
duration = 0 # 0 means forever
bufferSecs = 10 # Internal buffer, 10 is good
reconnect = yes # reconnect if stream broken? default: yes
[input]
# this device requires config in /etc/asound.conf or ~/.asoundrc
# for a RasPi with USB sound card:
device = default
# this can be used if darkice is the sole user of audio capture device:
#device = plughw:1,0 # Assuming USB is 2ed sound device
sampleRate = 22050 # 11025, 22050, or 44100
bitsPerSample = 16 # 8 or 16
channel = 1 # 1 for mono, 2 for stereo
# Next 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 broadcastify 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]
bitrateMode = cbr # do not use vbr with broadcastify
format = mp3 # broadcastify wants mp3
bitrate = 16 # 16 for mono, 32 for stereo
quality = 0.1 # between >0 & <=1 1.0 being the highest quality
# .1-.2 is good for scanner feed and takes less
# bandwidth than higher settings
channel = 1 # mixes input down to a mono output for the feed.
lowpass = 5000 # lowpass cuts off freqs above the specified value
# such as hiss. Might inhibit paging tones also.
sampleRate = 22050 # 22050 for all broadcastify feeds
############# From your "Feed Technical Details":
server = audioX.radioreference.com # use the server you are assigned
port = 80 # Usually 80
password = passwrd # ENTER your password
mountPoint = 123456789 # ENTER your mountpoint without leading "/"
#############
name = Anytown FD Dispatch # ENTER name of your feed
#### use "man darkice.cfg" for more information about this file.
#!/usr/bin/make -f
%:
dh $@
.PHONY: override_dh_auto_configure
override_dh_auto_configure:
ln -s /usr/share/misc/config.guess .
ln -s /usr/share/misc/config.sub .
dh_auto_configure -- --prefix=/usr --sysconfdir=/usr/share/doc/darkice/examples --with-vorbis-prefix=/usr/lib/arm-linux-gnueabihf/ --with-jack-prefix=/usr/lib/arm-linux-gnueabihf/ --with-alsa-prefix=/usr/lib/arm-linux-gnueabihf/ --with-faac-prefix=/usr/lib/arm-linux-gnueabihf/ --with-aacplus-prefix=/usr/lib/arm-linux-gnueabihf/ --with-samplerate-prefix=/usr/lib/arm-linux-gnueabihf/ --with-lame-prefix=/usr/lib/arm-linux-gnueabihf/ CFLAGS='-march=armv6 -mfpu=vfp -mfloat-abi=hard'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment