| View previous topic :: View next topic |
| Author |
Message |
peepo
Joined: 15 Dec 2007 Posts: 88
|
Posted: Thu May 22, 2008 10:43 am Post subject: Help with config file... |
|
|
Hello, I found a nice website on the net that was a step by step config file set-up. But their version was slightly out of date & also for someone relaying 2 servers & I dont want that, so I got abit lost when we got to that bit.
Could someone help me with my config file?
Ive blanked out ip address & password.
Basically I want to have a fallback playlist that comes on when a dj disconnects their source. & then the playlist must disconnect when someone tries to reconnect their source again. The playlist tracks will be in a folder on same server as icecast server. I can sort the playlist element later, for now I want to concentrate on getting the config file set to fallback.
Here is my code so far
<icecast>
<limits>
<clients>50</clients>
<sources>3</sources>
<threadpool>10</threadpool>
<queue-size>524288</queue-size>
<client-timeout>30</client-timeout>
<header-timeout>15</header-timeout>
<source-timeout>30</source-timeout>
</limits>
<authentication>
<!-- Sources log in with username 'source' -->
<source-password>*******</source-password>
<!-- Relays log in username 'relay' -->
<relay-password>*******</relay-password>
<!-- Admin logs in with the username given below -->
<admin-user>admin</admin-user>
<admin-password>*******</admin-password>
</authentication>
<!-- 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>**enter machine ip address here**</hostname>
<!-- 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>**enter server ip address here**</master-server>-->
<!--<master-server-port>8001</master-server-port>-->
<!--<master-update-interval>120</master-update-interval>-->
<!--<master-password>*******</master-password>-->
<!-- setting this makes all relays on-demand unless overridden, this is
useful for master relays which do not have <relay> definitions here.
The default is 0 -->
<!--<relays-on-demand>1</relays-on-demand>-->
<!--
<relay>
<server>**enter server ip address here**</server>
<port>8001</port>
<mount>/example.ogg</mount>
<local-mount>/different.ogg</local-mount>
<on-demand>0</on-demand>
<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
<mount>
<mount-name>**playlist xml file?**</mount-name>
<username>playlist</username>
<password>*******</password>
<max-listeners>50</max-listeners>
<dump-file>/tmp/dump-example1.ogg</dump-file>
<burst-size>65536</burst-size>
<fallback-mount>**/playlist**?</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>
<!-- 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>./</basedir>
<!-- Note that if <chroot> is turned on below, these paths must both
be relative to the new root, not the original root -->
<logdir>./logs</logdir>
<webroot>./web</webroot>
<adminroot>./admin</adminroot>
<!-- <pidfile>./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 -->
<logsize>10000</logsize> <!-- Max size of a logfile -->
<!-- If logarchive is enabled (1), then when logsize is reached
the logfile will be moved to [error|access|playlist].log.DATESTAMP,
otherwise it will be moved to [error|access|playlist].log.old.
Default is non-archive mode (i.e. overwrite)
-->
<!-- <logarchive>1</logarchive> -->
</logging>
<security>
<chroot>0</chroot>
<!--
<changeowner>
<user>nobody</user>
<group>nogroup</group>
</changeowner>
-->
</security>
</icecast>
Thanks in advance for any help |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu May 22, 2008 1:13 pm Post subject: |
|
|
Well the first think is that anything between <!-- and --> is ignored as those are comment markers, loading the xml into a browser should help you see the effect.
Sounds like you want one <mount> (eg /live.ogg) to fallback to another <mount> (eg /fallback.ogg) with the broadcaster connecting on /liv.ogg and the playlist source client connecting on /fallback.ogg.
karl. |
|
| Back to top |
|
 |
peepo
Joined: 15 Dec 2007 Posts: 88
|
Posted: Thu May 22, 2008 2:01 pm Post subject: |
|
|
ok thanks. The first part I dont understand is
<!-- 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>
-->
Have I not opted to have multiple listeners when I set <clients>50</clients>? |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu May 22, 2008 2:56 pm Post subject: |
|
|
The clients setting is a number of external connection icecast allows, a listen-socket is a definition of the socket (port/bind-address etc) that external clients can connect on.
karl |
|
| Back to top |
|
 |
peepo
Joined: 15 Dec 2007 Posts: 88
|
Posted: Thu May 22, 2008 6:12 pm Post subject: |
|
|
ok thankyou.
the next part I dont understand is the mount point.
the mount is the mp3 dj's will be streaming?
<mount>
<mount-name>/live dj</mount-name>
<username>source client username?</username>
<password>source client password?</password>
<max-listeners>50</max-listeners>
<fallback-mount>/xml file on server?</fallback-mount>
<fallback-override>1</fallback-override>
<fallback-when-full>1</fallback-when-full>
<hidden>1</hidden>
<no-yp>0</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> |
|
| Back to top |
|
 |
peepo
Joined: 15 Dec 2007 Posts: 88
|
Posted: Thu May 22, 2008 7:24 pm Post subject: |
|
|
Its ok, Ive found some more info online which I think will help me. I will come back if I need more. thankyou for your patience in helping me  |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu May 22, 2008 7:32 pm Post subject: |
|
|
icecast can handle many streams at the same time and as such it needs an identifier for each stream, the mountpoint. Which options (if any as there are defaults) you give for that mountpoint is up to you but as a general rule, only specify what you want.
karl. |
|
| Back to top |
|
 |
|