| View previous topic :: View next topic |
| Author |
Message |
trunkEN
Joined: 06 Apr 2010 Posts: 4
|
Posted: Tue Apr 06, 2010 10:43 am Post subject: Fallback with Shoutcast? |
|
|
Hi,
i would like to use Icecast for a web radio. Therefore I have a Shoutcast mountpoint. If the streamer disconnects, the stream should fall back to the Icecast mountpoint /autodj.
This is my config file:
| 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>3</sources>
<clients>250</clients>
</limits>
<authentication>
<!-- Configure the shoutcast DSP to use this password -->
<source-password>fhsourcepassword</source-password>
<!-- This is used for icecast's web interface -->
<admin-user>xxxx</admin-user>
<admin-password>xxxxxxxxx</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>xxxxxx</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>8000</port>
<shoutcast-mount>/stream</shoutcast-mount>
<fallback-mount>/autodj</fallback-mount>
<fallback-override>1</fallback-override>
</listen-socket>
<mount>
<mount-name>/autodj</mount-name>
<hidden>1</hidden>
<bitrate>128</bitrate>
<stream-name>Auto DJ</stream-name>
<stream-description></stream-description>
</mount>
<fileserve>1</fileserve>
<paths>
<logdir>/home/icecast/icecast/logs</logdir>
<webroot>/home/icecast/icecast/web</webroot>
<adminroot>/home/icecast/icecast/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>
|
The AutoDJ mountpoint is used by ices0.4. That are the parameters:
| Code: |
ices04 -h localhost -p 8000 -r -s -F playlist.pls -m /autodj -P xxxxxxx -n "Auto DJ" -b 128 -B
|
Both streams work, but if the Shoutcast streamer disconnects, the mountpoint does not fall back to /AutoDJ
Is there any error in my configuration file or is it not possible to handle a fallback stream with a Shoutcast mountpoint?
Thanks in advance
________
SUZUKI GSX 650 F
Last edited by trunkEN on Sat Feb 12, 2011 11:07 pm; edited 2 times in total |
|
| Back to top |
|
 |
iunderwood

Joined: 23 Aug 2008 Posts: 114 Location: Leicester, MA
|
Posted: Tue Apr 06, 2010 12:29 pm Post subject: |
|
|
You need to define a mountpoint for Shoutcast. Under the listener socket, you define /stream, but there's no actual mount definition for it. You can't use fallback options under a listener socket. _________________ ++I; |
|
| Back to top |
|
 |
trunkEN
Joined: 06 Apr 2010 Posts: 4
|
Posted: Wed Apr 07, 2010 9:16 pm Post subject: |
|
|
Thanks for your answer.
That?s my new config:
| 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>10</sources>
</limits>
<authentication>
<!-- Configure the shoutcast DSP to use this password -->
<!-- This is used for icecast's web interface -->
<admin-user>xxxxx</admin-user>
<admin-password>xxxxxxx</admin-password>
<source-password>xxxxxx</source-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>localhost</hostname>
<!-- You MUST define 2 ports, port and port +1 -->
<mount>
<shoutcast-mount>/stream</shoutcast-mount>
<mount-name>/stream</mount-name>
<port>8000</port>
<fallback-mount>/autodj</fallback-mount>
<fallback-override>1</fallback-override>
<max-listeners>250</max-listeners>
</mount>
<mount>
<mount-name>/autodj</mount-name>
<stream-name>Auto DJ</stream-name>
<max-listeners>250</max-listeners>
</mount>
<fileserve>1</fileserve>
<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>
|
Now the problem is that DJs cannot connect to my server to stream on it. Virtual DJ says "Cannot connect to server ..."
Shoutcast streaming is selected in Virtual DJ.
Did I forget something in the config-file?
Thank you
________
MARIJUANA VAPORIZER
Last edited by trunkEN on Sat Feb 12, 2011 11:08 pm; edited 1 time in total |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Apr 07, 2010 11:42 pm Post subject: |
|
|
You misunderstood what was mentioned. You need the listen-socket which includes <shoutcast-mount>, so that icecast knows which ports to use, but you also want a <mount> section matching the <shoutcast-mount> so that the mountpoint settings (fallback in this case) can be applied.
karl. |
|
| Back to top |
|
 |
trunkEN
Joined: 06 Apr 2010 Posts: 4
|
Posted: Thu Apr 08, 2010 2:53 pm Post subject: |
|
|
Thanks. It works now with that configuration
| 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>10</sources>
</limits>
<authentication>
<!-- Configure the shoutcast DSP to use this password -->
<!-- This is used for icecast's web interface -->
<admin-user>xxxxxx</admin-user>
<admin-password>xxxxxx</admin-password>
<source-password>xxxxxxx</source-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>localhost</hostname>
<!-- You MUST define 2 ports, port and port +1 -->
<mount>
<mount-name>/stream</mount-name>
<stream-name>Radio Live</stream-name>
<fallback-mount>/autodj</fallback-mount>
<fallback-override>1</fallback-override>
<max-listeners>250</max-listeners>
</mount>
<shoutcast-mount>/stream</shoutcast-mount>
<listen-socket>
<port>8000</port>
</listen-socket>
<listen-socket>
<port>8001</port>
<shoutcast-compat>1</shoutcast-compat>
</listen-socket>
<mount>
<mount-name>/autodj</mount-name>
<stream-name>Auto DJ</stream-name>
<max-listeners>250</max-listeners>
</mount>
<fileserve>1</fileserve>
<paths>
<logdir>./logs</logdir>
<webroot>./web</webroot>
<adminroot>./admin</adminroot>
</paths>
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<loglevel>2</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
</logging>
<security>
<chroot>0</chroot>
</security>
</icecast>
|
________
HEADSHOP |
|
| Back to top |
|
 |
|