WG/OBIT/Ices2

From wiki.occupyboston.org
Revision as of 00:31, 21 November 2011 by Farmerbob (talk | contribs) (Created page with "== Under Debian/Ubuntu == === Finding Your Audio Device === <pre> arecord -l </pre> Output: <pre> **** List of CAPTURE Hardware Devices **** card 0: Intel [HDA Intel], device 0:...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Under Debian/Ubuntu

Finding Your Audio Device

arecord -l

Output:

**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC269 Analog [ALC269 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Device from above:

hw:0,0
   ^card,device


Sample Ices2 Config XML

<nowiki><?xml version="1.0"?>

<ices>

   <background>0</background>
   <logpath>./</logpath>
   <logfile>ices.log</logfile>
   <logsize>2048</logsize>
   <loglevel>4</loglevel>
   <consolelog>0</consolelog>


   <stream>
       <metadata>
           <name>My Stream</name>
           <genre>Occupy</genre>
           <description>Occupy Radio</description>
           <url>http://occupyboston.org</url>
       </metadata>
       <input>
           <module>alsa</module>
           <param name="rate">44100</param>
           <param name="channels">2</param>
           <param name="device">hw:0,0</param>
           <param name="metadata">1</param>
           <param name="metadatafilename">test</param>
       </input>


       <instance>
           <hostname>a.stream.mayfirst.org</hostname>
           <port>8000</port>
           <password>mypassword</password>
           <mount>/mystreamname.ogg</mount>
           <yp>1</yp>   
           <encode>  
               <quality>0</quality>
               <samplerate>22050</samplerate>
               <channels>1</channels>
           </encode>
           <downmix>1</downmix>
           <resample>
               <in-rate>44100</in-rate>
               <out-rate>44100</out-rate>
           </resample>
       </instance>
   </stream>

</ices>