[Dsctl-devel] SF.net SVN: dsctl:[144] utils
Status: Alpha
Brought to you by:
roger-linux
|
From: <rog...@us...> - 2008-09-28 23:09:22
|
Revision: 144
http://dsctl.svn.sourceforge.net/dsctl/?rev=144&view=rev
Author: roger-linux
Date: 2008-09-28 23:09:15 +0000 (Sun, 28 Sep 2008)
Log Message:
-----------
Adding ices /etc/conf.d/* files with the needed customizations to make Ices work with DSctl (for documentation reasons).
Added Paths:
-----------
utils/ices
utils/ices-alsa.xml
Added: utils/ices
===================================================================
--- utils/ices (rev 0)
+++ utils/ices 2008-09-28 23:09:15 UTC (rev 144)
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need icecast net
+ use dns
+}
+
+start() {
+ ebegin "Starting ices"
+ start-stop-daemon --start --quiet --chuid roger --exec /usr/bin/ices \
+ -- /etc/ices2/ices-alsa.xml
+ eend $?
+}
+
+stop () {
+ ebegin "Stopping ices"
+ start-stop-daemon --stop --retry 5 --quiet --exec /usr/bin/ices
+ eend $?
+}
Property changes on: utils/ices
___________________________________________________________________
Added: svn:executable
+ *
Added: utils/ices-alsa.xml
===================================================================
--- utils/ices-alsa.xml (rev 0)
+++ utils/ices-alsa.xml 2008-09-28 23:09:15 UTC (rev 144)
@@ -0,0 +1,97 @@
+<?xml version="1.0"?>
+<ices>
+
+ <!-- run in background -->
+ <background>1</background>
+ <!-- where logs go. -->
+ <logpath>/var/log/ices</logpath>
+ <logfile>ices.log</logfile>
+ <!-- size in kilobytes -->
+ <logsize>2048</logsize>
+ <!-- 1=error, 2=warn, 3=infoa ,4=debug -->
+ <loglevel>2</loglevel>
+ <!-- logfile is ignored if this is set to 1 -->
+ <consolelog>0</consolelog>
+
+ <!-- optional filename to write process id to -->
+ <!-- <pidfile>/home/ices/ices.pid</pidfile> -->
+
+ <stream>
+ <!-- metadata used for stream listing -->
+ <metadata>
+ <name>BCD996T</name>
+ <genre>Scanner</genre>
+ <description>Eugene, Oregon: Police, Fire, EMS </description>
+ <url> http://67.171.224.16:8000/</url>
+ </metadata>
+
+ <!-- Input module.
+
+ This example uses the 'oss' module. It takes input from the
+ OSS audio device (e.g. line-in), and processes it for live
+ encoding. -->
+ <input>
+ <module>alsa</module>
+ <param name="rate">44100</param>
+ <param name="channels">2</param>
+ <param name="device">hw:0,0</param>
+ <!-- Read metadata (from stdin by default, or -->
+ <!-- filename defined below (if the latter, only on SIGUSR1) -->
+ <param name="metadata">1</param>
+ <param name="metadatafilename">/home/roger/.dsctl/metadata</param>
+ </input>
+
+ <!-- Stream instance.
+
+ You may have one or more instances here. This allows you to
+ send the same input data to one or more servers (or to different
+ mountpoints on the same server). Each of them can have different
+ parameters. This is primarily useful for a) relaying to multiple
+ independent servers, and b) encoding/reencoding to multiple
+ bitrates.
+
+ If one instance fails (for example, the associated server goes
+ down, etc), the others will continue to function correctly.
+ This example defines a single instance doing live encoding at
+ low bitrate. -->
+
+ <instance>
+ <!-- Server details.
+
+ You define hostname and port for the server here, along
+ with the source password and mountpoint. -->
+
+ <hostname>localhost</hostname>
+ <port>8000</port>
+ <password>rogerroger</password>
+ <mount>/bcd996t.ogg</mount>
+ <yp>1</yp> <!-- allow stream to be advertised on YP, default 0 -->
+
+ <!-- Live encoding/reencoding:
+
+ channels and samplerate currently MUST match the channels
+ and samplerate given in the parameters to the oss input
+ module above or the remsaple/downmix section below. -->
+
+ <encode>
+ <quality>0</quality>
+ <samplerate>22050</samplerate>
+ <!-- <samplerate>44100</samplerate> -->
+ <channels>1</channels>
+ </encode>
+
+ <!-- stereo->mono downmixing, enabled by setting this to 1 -->
+ <downmix>1</downmix>
+
+ <!-- resampling.
+
+ Set to the frequency (in Hz) you wish to resample to, -->
+
+ <resample>
+ <in-rate>44100</in-rate>
+ <out-rate>22050</out-rate>
+ </resample>
+ </instance>
+
+ </stream>
+</ices>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|