Let's also include aclocal.m4
[asterisk-bristuff.git] / contrib / asterisk-ices.xml
blobabc028c7529b74d4ca612bb0111bdfcbaa8334b0
1 <?xml version="1.0"?>
2 <ices>
4     <!-- run in background  -->
5     <background>0</background>
6     <!-- where logs go. -->
7     <logpath>/var/log/ices</logpath>
8     <logfile>ices.log</logfile>
9     <!-- 1=error, 2=warn, 3=infoa ,4=debug -->
10     <loglevel>4</loglevel>
11     <!-- logfile is ignored if this is set to 1 -->
12     <consolelog>0</consolelog>
14     <!-- optional filename to write process id to -->
15     <!-- <pidfile>/home/ices/ices.pid</pidfile> -->
17     <stream>
18         <!-- metadata used for stream listing -->
19         <metadata>
20             <name>Example stream name</name>
21             <genre>Example genre</genre>
22             <description>A short description of your stream</description>
23             <url>http://mysite.org</url>
24         </metadata>
26         <!--    Input module.
28             This example uses the 'oss' module. It takes input from the
29             OSS audio device (e.g. line-in), and processes it for live
30             encoding.  -->
31         <input>
32             <module>stdinpcm</module>
33             <param name="rate">8000</param>
34             <param name="channels">1</param>
35             <!-- Read metadata (from stdin by default, or -->
36             <!-- filename defined below (if the latter, only on SIGUSR1) -->
37             <param name="metadata">1</param>
38             <param name="metadatafilename">test</param>
39         </input>
41         <!--    Stream instance.
43             You may have one or more instances here.  This allows you to
44             send the same input data to one or more servers (or to different
45             mountpoints on the same server). Each of them can have different
46             parameters. This is primarily useful for a) relaying to multiple
47             independent servers, and b) encoding/reencoding to multiple
48             bitrates.
50             If one instance fails (for example, the associated server goes
51             down, etc), the others will continue to function correctly.
52             This example defines a single instance doing live encoding at
53             low bitrate.  -->
55         <instance>
56             <!--    Server details.
58                 You define hostname and port for the server here, along
59                 with the source password and mountpoint.  -->
61             <hostname>localhost</hostname>
62             <port>8000</port>
63             <password>temppass</password>
64             <mount>/example.ogg</mount>
65             <yp>1</yp>   <!-- allow stream to be advertised on YP, default 0 -->
67             <!--    Live encoding/reencoding:
69                 channels and samplerate currently MUST match the channels
70                 and samplerate given in the parameters to the oss input
71                 module above or the remsaple/downmix section below.  -->
73             <encode>  
74                 <quality>0</quality>
75                 <samplerate>8000</samplerate>
76                 <channels>1</channels>
77             </encode>
79             <!-- stereo->mono downmixing, enabled by setting this to 1 -->
80             <downmix>0</downmix>
82             <!-- resampling.
83             
84                 Set to the frequency (in Hz) you wish to resample to, -->
85              
86             <!-- <resample>
87                 <in-rate>44100</in-rate>
88                 <out-rate>22050</out-rate>
89             </resample> -->
90         </instance>
92     </stream>
93 </ices>