| View previous topic :: View next topic |
| Author |
Message |
FoN Guest
|
Posted: Sun Apr 16, 2006 12:08 pm Post subject: Multiple Mounts |
|
|
Hi
I have just starting using icecast and while I have 1 mount working fine with authenication I wish to have two mounts working with the same auth file. I cannot seem to find a way to get two mounts at all. I wish to either have a different mount name e.g. stream.nsv and stream2.nsv or different ports for each mount (either is fine).
How can I do this? They are shoutcast style sources as I am streaming NSV files from NSVtools.
This is my icecast.xml file at the moment:
| Code: |
<!-- This config file can be used to configure icecast
in shoutcast compatibility mode which will allow
you to connect the Shoutcast DSP (or other Nullsoft
encoders such as the NSV encoder). Note this is just
a minimal config, check the main icecast.xml.dist file
for a complete list of possible configuration options -->
<icecast>
<limits>
<sources>2</sources>
</limits>
<authentication>
<!-- Configure the shoutcast DSP to use this password -->
<!-- This is used for icecast's web interface -->
<admin-user>admin</admin-user>
<admin-password>sandrabuxton</admin-password>
</authentication>
<directory>
<yp-url-timeout>15</yp-url-timeout>
<yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
</directory>
<!-- This is the manufactured mount name for your shoutcast
compatible stream. Since the shoutcast DSP (and NSV encoder)
cannot specify a mountpoint, you must enter it here -->
<!-- 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>localhost</hostname>
<!-- You MUST define 2 ports, port and port +1 -->
<listen-socket>
<!-- Configure the shoutcast DSP with *this* port
the shoutcast DSP actually will connect the
encoder to this port + 1 -->
<port>6500</port>
</listen-socket>
<listen-socket>
<!-- This port *must* be one larger than the one defined
above and defined as 'shoutcast-compat' -->
<port>6501</port>
<shoutcast-compat>1</shoutcast-compat>
</listen-socket>
<fileserve>1</fileserve>
<shoutcast-mount>/stream2.nsv</shoutcast-mount>
<mount>
<password>brooke1</password>
<mount-name>/stream2.nsv</mount-name>
<authentication type="htpasswd">
<option name="filename" value="auth"/>
<option name="allow_duplicate_users" value="0"/>
</authentication>
</mount>
<shoutcast-mount>/stream.nsv</shoutcast-mount>
<mount>
<mount-name>/stream.nsv</mount-name>
<password>brooke</password>
<authentication type="htpasswd">
<option name="filename" value="auth"/>
<option name="allow_duplicate_users" value="0"/>
</authentication>
</mount>
<listen-socket>
<!-- Configure the shoutcast DSP with *this* port
the shoutcast DSP actually will connect the
encoder to this port + 1 -->
<port>6600</port>
</listen-socket>
<listen-socket>
<!-- This port *must* be one larger than the one defined
above and defined as 'shoutcast-compat' -->
<port>6601</port>
<shoutcast-compat>1</shoutcast-compat>
</listen-socket>
<paths>
<logdir>./logs</logdir>
<webroot>./web</webroot>
<adminroot>./admin</adminroot>
</paths>
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
</logging>
<security>
<chroot>0</chroot>
</security>
</icecast>
|
|
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun Apr 16, 2006 6:05 pm Post subject: |
|
|
The nsv source clients are limited as they only follow the shoutcast spec which gives no indication of the mountpoint to use. Currently you'll need to run 2 icecasts each with 2 ports each for the nsv source client to connect on.
I do have some in work in progress that should allow for multiple shoutcast ports to be used by a single icecast. This would be enabled defining a listen-socket on say 8000 with a shoutcast-mount set and that would automatically configure port 8001 as a related port. All mountpoint settings as as normal from then on. If you are interested in trying that out then build http://mediacast1.com/~karl/testing/icecast-2.3-kh4b.tar.gz
karl. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group subRebel style by ktauber
|