0
:

 

 

Icecast2 + Ices2

ALSA
  
: 0
. , ( 3 ) . , , , . - . . , . - Mint. , Icecast2 + Ices2, . . , - - , .
- , , ( , , . ) :
Ices 'default' -, Icecast, ogg ( ).
- Icecast' Examples1.ogg, , , VLC , , .

Icecast2, . :
<icecast>
<location>Earth</location>
<admin>icemaster@localhost</admin>
<limits>
<clients>100</clients>
<sources>2</sources>
<threadpool>5</threadpool>
<queue-size>524288</queue-size>
<client-timeout>30</client-timeout>
<header-timeout>15</header-timeout>
<source-timeout>10</source-timeout>
<burst-on-connect>1</burst-on-connect>
<burst-size>65535</burst-size>
</limits>
<authentication>
<source-password>password</source-password>
<relay-password>password</relay-password>
<admin-user>admin</admin-user>
<admin-password>password</admin-password>
</authentication>
<hostname>localhost</hostname>
<listen-socket>
<port>8000</port>
</listen-socket>
<mount>
<mount-name>/example-complex.ogg</mount-name>
<username>othersource</username>
<password>hackmemore</password>
<max-listeners>1</max-listeners>
<dump-file>/tmp/dump-example1.ogg</dump-file>
<burst-size>65536</burst-size>
<fallback-mount>/example2.ogg</fallback-mount>
<fallback-override>1</fallback-override>
<fallback-when-full>1</fallback-when-full>
<intro>/example_intro.ogg</intro>
<hidden>1</hidden>
<no-yp>1</no-yp>
<authentication type="htpasswd">
<option name="filename" value="myauth"/>
<option name="allow_duplicate_users" value="0"/>
</authentication>
<on-connect>/home/icecast/bin/stream-start</on-connect>
<on-disconnect>/home/icecast/bin/stream-stop</on-disconnect>
</mount>
<mount>
<mount-name>/auth_example.ogg</mount-name>
<authentication type="url">
<option name="mount_add" value="http://myauthserver.net/notify_mount.php"/>;
<option name="mount_remove" value="http://myauthserver.net/notify_mount.php"/>;
<option name="listener_add" value="http://myauthserver.net/notify_listener.php"/>;
<option name="listener_remove" value="http://myauthserver.net/notify_listener.php"/>;
</authentication>
</mount>
<fileserve>1</fileserve>
<paths>
<basedir>/usr/share/icecast2</basedir>
<logdir>/var/log/icecast2</logdir>
<webroot>/usr/share/icecast2/web</webroot>
<adminroot>/usr/share/icecast2/admin</adminroot>
<alias source="/" destination="/status.xsl"/>
</paths>
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
</logging>
<security>
<chroot>0</chroot>
<changeowner>
<user>icecast2</user>
<group>icecast</group>
</changeowner>
</security>
</icecast>

, ,
sudo service Icecast2 start
host:8000 , , , .

Ices2. :

<ices>
<background>0</background>
<logpath>/var/log/ices</logpath>
<logfile>ices.log</logfile>
<logsize>2048</logsize>
<loglevel>4</loglevel>
<consolelog>0</consolelog>
<stream>
<metadata>
<name>Example stream name</name>
<genre>Example genre</genre>
<description>A short description of your stream</description>
<url>http://mysite.org</url>;
</metadata>
<input>
<module>alsa</module>
<param name="rate">44100</param>
<param name="channels">2</param>
<param name="device">default</param>
<param name="metadata">1</param>on
<param name="metadatafilename">test</param>
</input>
<instance>
<hostname>localhost</hostname>
<port>8000</port>
<password>password</password>
<mount>/example1.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>22050</out-rate>
</resample>
</instance>
</stream>
</ices>

, .

, :

Ices2, :

<param name="device">default</param>

. , , 'default' hw:0,0
, .
, aplay -l, :
card 0: PCH [HDA Intel PCH, device 0: ALC233 Analog [ALC233 Analog]
Subdevices 1/1
Subdevice #0: Subdevice #0

: <param name="device">hw:0,0</param>
Ices , .

, - , , ?
 
|
:
, .