Problemas con Icecast2
"Ricardo Manpein" <[email protected]>
| Newsgroups | gmane.org.user-groups.linux.gulcr |
|---|---|
| Message-ID | <[email protected]> |
Tengo problemas con el Icecast2 :-S Estoy usando Debian, y tengo el icecast2 2.2.0-1 instalado usando apt-get. Como cliente del stream de audio estoy usando shout, que viene en el paquete icecast-client version 1.4.0-6. Inicio el icecast2 con "icecast2 -c /etc/icecast2/icecast.xml &" y el shout con solo "shout &". El servidor de icecast2 parece que funciona bien. Puedo meterme a 192.168.1.200:8000/status.xsl y me aparece la pagina de Icecast Status Page, aunque el espacio gris (donde entiendo que deberia ir la lista de mis mountpoints) esta vacio. Igualmente si voy a http://192.168.1.200:8000/admin/listmounts.xsl, no aparece ningun mountpoint. Si me meto en http://192.168.1.200:8000/admin/, lo siguiente aparece: client_connections 10 clients 0 connections 11 server Icecast 2.2.0 source_client_connections 0 source_relay_connections 0 source_total_connections 0 sources 0 stats 0 stats_connections 0 Si no me equivoco el source_client_connections debe ser al menos 1, que se supone es el shout. Si apunto mi browser a "http://192.168.1.200:8000/miestacion" solo dice "The source you requested could not be found." Si lo apunto a "http://192.168.1.200:8000/miestacion.m3u", puedo abrirlo con mi media player, pero me dice "HTTP/1.0.404 File Not Found" Attached estan los archivos de configuracion de ambos. Alguien tiene alguna idea de lo que sucede? Gracias, Luis Ricardo -- ___________________________________________________ Play 100s of games for FREE! http://games.mail.com/
shout.conf
(application/octet-stream, 4.4 KB)
# This be a comment, I like comments. # To use this file, copy it to etc/shout.conf in the shout base directory # # Or, if you plan multiple instances/channels/mount points of shout # call shout with -C <name> to use a copy of this conf file # This is so you can have 5 or 500 shout instances running, each with a # different .conf file, yippee ################################################################################ # I suggest you read this file carefully, and don't do anything silly # cause the configuration file parser is pretty lame. ################################################################################ ############### Server Location and Connection Options ######################### # server_name - There is no support, as in icecast, of anything but a valid # resolvable server name. No dynamic names here. localhost is, of course, the # same machine shout is running on, so this is the only exception. This is when # the server, and shout reside on the same physical machine. # # port - should be the port as configured in icecast.conf recieving connections. # # password - should be the same as defined in the icecast.conf file, as the # encoder password. # # mount - is the mountpoint for this stream. Think of this as what channel on # the server this stream is for. For instance, you might have several channels # on your server, all providing different content. You might have a rock, rap, # and # techno channels, or a 56bit and 128bit channel. You would then run a # copy of shout for each, specifing different mount's, or channels to reside # on. So, you would have http://localhost:8000/rock, http://localhost:8000/rap, # and # http://localhost:8000/techno, if you specified each copy of shout to # use rock, rap, and techno as their different mount points. Got it yet? ############### server_name localhost port 8000 password sourcePass mount miestacion ##################### Server Information ################################# # # name - whatever the name of this stream is called # # desc - a description of said named channel # # genre - what kind of stream, could be talk, rap, rock, alt, techo, ect... # # url - what web site you want associated with this stream # # public - yes/no - if you want this stream published in a yp server lookup list # this is only supported if the icecast server has yp touch enabled, with valid # yp server listings. ############### name Mi_Estacion desc Probando mi estacion de radio genre Mi_Musica url http://192.168.1.200/ public yes ############### Stream options ################################################# # short_titles - yes/no - trim the path names from file names when using non ID3 # data for stream title info # # title_streaming - yes/no - turns title updates on or off. # # id3 - yes/no - use id3 tags for title streaming (has no effect if # title_streaming is no) # # autocorrect - yes/no - adapt the stream calculations to match each file's # bitrate ############### short_titles yes title_streaming yes id3 yes autocorrect yes ############### Playlist options ############################################### # playlist - uh, duh, this is a file containing a list of file to be streamed # dont't forget full path names in the playlist. The playlist itself resides in # the etc directory along with this conf file. # # loop - yes/no - should the playlist loop, when it runs out? # # shuffle - yes/no - should the playlist be shuffled between tracks? # (randomized) # # autodetect - yes/no - actually check the file for bitrate info, before trying # to stream it. if no, it will be sent at the default bitrate # # default_bitrate - when all else fails, use this bitrate for stream bitrate # calculations. NOTE: if this is different from the actual file, and autodetect # is off, it will be streamed at the incorrect bitrate, resulting in malformed # playback at the client end. # # force - yes/no - used in conjunction with default_bitrate, if the next file # in line to be streamed does not match the default_bitrate, and force is on, # that file will be skipped. # ############### playlist shout.playlist loop yes shuffle no autodetect yes default_bitrate 128000 force no ############### Advanced options ############################################### # daemon - set to yes to cause shout to be launched in the background (not # available for Win32) # # verbose - yes/no turn on extra text output ############### daemon no verbose yes
icecast.xml
(application/octet-stream, 5.3 KB)
<icecast>
<limits>
<clients>100</clients>
<sources>2</sources>
<threadpool>5</threadpool>
<queue-size>1024000</queue-size>
<client-timeout>30</client-timeout>
<header-timeout>15</header-timeout>
<source-timeout>10</source-timeout>
<!-- If enabled, this will provide a burst of data when a client
first connects, thereby significantly reducing the startup
time for listeners that do substantial buffering. However,
it also significantly increases latency between the source
client and listening client. For low-latency setups, you
might want to disable this. -->
<burst-on-connect>1</burst-on-connect>
<!-- same as burst-on-connect, but this allows for being more
specific on how much to burst. Most people won't need to
change from the default 64k. Applies to all mountpoints -->
<burst-size>65535</burst-size>
</limits>
<authentication>
<!-- Sources log in with username 'source' -->
<source-password>sourcePass</source-password>
<!-- Relays log in username 'relay' -->
<relay-password>relayPass</relay-password>
<!-- Admin logs in with the username given below -->
<admin-user>admin</admin-user>
<admin-password>adminPass</admin-password>
</authentication>
<!-- Uncomment this if you want directory listings -->
<!--
<directory>
<yp-url-timeout>15</yp-url-timeout>
<yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
</directory>
<directory>
<yp-url-timeout>15</yp-url-timeout>
<yp-url>http://www.oddsock.org/cgi-bin/yp-cgi</yp-url>
</directory>
-->
<!-- This is the hostname other people will use to connect to your server.
It affects mainly the urls generated by Icecast for playlists and yp
listings. -->
<hostname>192.168.1.200</hostname>
<!-- You can use these two if you only want a single listener -->
<!--<port>8000</port> -->
<!--<bind-address>127.0.0.1</bind-address>-->
<!-- You may have multiple <listener> elements -->
<listen-socket>
<port>8000</port>
<!-- <bind-address>127.0.0.1</bind-address> -->
</listen-socket>
<!--
<listen-socket>
<port>8001</port>
</listen-socket>
-->
<!--<master-server>127.0.0.1</master-server>-->
<!--<master-server-port>8001</master-server-port>-->
<!--<master-update-interval>120</master-update-interval>-->
<!--<master-password>hackme</master-password>-->
<!--
<relay>
<server>127.0.0.1</server>
<port>8001</port>
<mount>/example.ogg</mount>
<local-mount>/different.ogg</local-mount>
<relay-shoutcast-metadata>0</relay-shoutcast-metadata>
</relay>
-->
<!-- Only define a <mount> section if you want to use advanced options,
like alternative usernames or passwords
editado! -->
<mount>
<mount-name>/miestacion</mount-name>
<username>source</username>
<password>sourcePass</password>
<max-listeners>10</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>
<hidden>1</hidden>
<no-yp>1</no-yp>
<authentication type="htpasswd">
<option name="filename" value="myauth"/>
<option name="allow_duplicate_users" value="0"/>
</authentication>
</mount>
<!-- editado!
-->
<fileserve>1</fileserve>
<!-- set the mountpoint for a shoutcast source to use, the default if not
specified is /stream but you can change it here if an alternative is
wanted or an extension is required
<shoutcast-mount>/live.nsv</shoutcast-mount>
-->
<paths>
<!-- basedir is only used if chroot is enabled -->
<basedir>/usr/share/icecast2</basedir>
<!-- Note that if <chroot> is turned on below, these paths must both
be relative to the new root, not the original root -->
<logdir>/var/log/icecast2</logdir>
<webroot>/usr/share/icecast2/web</webroot>
<adminroot>/usr/share/icecast2/admin</adminroot>
<!-- <pidfile>/usr/share/icecast2/icecast.pid</pidfile> -->
<!-- Aliases: treat requests for 'source' path as being for 'dest' path
May be made specific to a port or bound address using the "port"
and "bind-address" attributes.
-->
<!--
<alias source="/foo" dest="/bar"/>
-->
<!-- Aliases: can also be used for simple redirections as well,
this example will redirect all requests for http://server:port/ to
the status page
-->
<alias source="/" dest="/status.xsl"/>
</paths>
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<!-- <playlistlog>playlist.log</playlistlog> -->
<loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
</logging>
<security>
<chroot>0</chroot>
<changeowner>
<user>icecast2</user>
<group>nogroup</group>
</changeowner>
</security>
</icecast>