View previous topic :: View next topic |
Author |
Message |
Adey
Joined: 02 Apr 2010 Posts: 3
|
Posted: Sat Apr 03, 2010 2:24 pm Post subject: Fallback Mount Problem |
|
|
Hi All,
I've spent a while trying to get my fallback mount working but I'm afraid it's beaten me.
This is what I'm trying to achieve...
I have a dedicated Windows 2008 Server with Icecast & EZStream running.
I have 2 mounts..
/live.mpe.m3u which I connect too using SAM on my PC. When this is not connected, (ie no live DJ), I'm trying to get it to fallback to..
/autodj.mp3.m3u. AutoDJ is being fed successfully by EZStream.
The problem I am having is my live stream is not falling back to autodj, I just get a "File not found" error when I try to browse to it.
If I browse directly to my AutoDJ it streams OK so there is a stream to fallback too. equally when I have SAM connected I'm able to listen to my live stream OK.
Below is my Icecast config. Any help would be greatly appreciated.
<icecast>
<limits>
<sources>5</sources>
</limits>
<authentication>
<source-password>xxx</source-password>
<relay-password>xxx</relay-password>
<admin-user>xxx</admin-user>
<admin-password>xxx</admin-password>
</authentication>
<directory>
<yp-url-timeout>15</yp-url-timeout>
<yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
</directory>
<hostname>94.136.35.14</hostname>
<listen-socket>
<port>8000</port>
</listen-socket>
<fileserve>1</fileserve>
<paths>
<logdir>./logs</logdir>
<webroot>./web</webroot>
<adminroot>./admin</adminroot>
<alias source="/" dest="/status.xsl"/>
</paths>
<mount>
<mount-name>/autodj.mp3.m3u</mount-name>
<password>xxx</password>
<max-listeners>500</max-listeners>
<max-listener-duration>3600</max-listener-duration>
<dump-file>/tmp/dump-live.mp3</dump-file>
<intro></intro>
<charset>ISO8859-1</charset>
<public>1</public>
<stream-name>StreamName</stream-name>
<stream-description>Description</stream-description>
<stream-url>http://94.136.35.14:8000/autodj.mp3.m3u</stream-url>
<genre>Chart</genre>
<bitrate>64</bitrate>
<type>application/mp3</type>
<subtype>mp3</subtype>
<burst-size>65536</burst-size>
<mp3-metadata-interval>4096</mp3-metadata-interval>
</mount>
<mount>
<mount-name>/live.mp3.m3u</mount-name>
<password>xxx</password>
<max-listeners>500</max-listeners>
<max-listener-duration>3600</max-listener-duration>
<dump-file>/tmp/dump-live.mp3</dump-file>
<intro></intro>
<fallback-mount>autodj.mp3.m3u</fallback-mount>
<fallback-override>1</fallback-override>
<fallback-when-full>1</fallback-when-full>
<charset>ISO8859-1</charset>
<public>1</public>
<stream-name>Stream Name</stream-name>
<stream-description>Radio</stream-description>
<stream-url>http://94.136.35.14:8000/live.mp3.m3u</stream-url>
<genre>Chart</genre>
<bitrate>64</bitrate>
<type>application/mp3</type>
<subtype>mp3</subtype>
<burst-size>65536</burst-size>
<mp3-metadata-interval>4096</mp3-metadata-interval>
</mount>
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
</logging>
</icecast> |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat Apr 03, 2010 6:25 pm Post subject: |
|
|
don't you mean
<mount-name>/autodj.mp3</mount-name>
<mount-name>/live.mp3</mount-name>
m3u is a playlist format not a stream, so if you want to define a <mount> for a stream the specify mount-name without the m3u. You are not concerned that over 500 people are retrieving the playlist as each one is very small but you are concerned about limiting 500 people on active stream.
karl. |
|
Back to top |
|
|
Adey
Joined: 02 Apr 2010 Posts: 3
|
Posted: Sun Apr 04, 2010 4:41 pm Post subject: |
|
|
Karl,
Thanks for your help. I've amended my config but it still doing the same thing.
Also, I just used 500 from the top of my head, I'd never expect to get anywhere near that number...
Here's my revised config mounts.... I know it has to be something I haven't got right. Any help is really appreciated..
<mount>
<mount-name>/autodj.mp3</mount-name>
<password>xxx</password>
<max-listeners>500</max-listeners>
<max-listener-duration>3600</max-listener-duration>
<dump-file>/tmp/dump-live.mp3</dump-file>
<intro></intro>
<charset>ISO8859-1</charset>
<public>1</public>
<stream-name>Radio</stream-name>
<stream-description>Gamers Radio</stream-description>
<stream-url>http://94.136.35.14:8000/autodj.mp3.m3u</stream-url>
<genre>Top40</genre>
<bitrate>64</bitrate>
<type>application/mp3</type>
<subtype>mp3</subtype>
<burst-size>65536</burst-size>
<mp3-metadata-interval>4096</mp3-metadata-interval>
</mount>
<mount>
<mount-name>/live.mp3</mount-name>
<password>xxx</password>
<max-listeners>500</max-listeners>
<max-listener-duration>3600</max-listener-duration>
<dump-file>/tmp/dump-live.mp3</dump-file>
<intro></intro>
<fallback-mount>/autodj.mp3</fallback-mount>
<fallback-override>1</fallback-override>
<fallback-when-full>1</fallback-when-full>
<charset>ISO8859-1</charset>
<public>1</public>
<stream-name>Talkin' Games</stream-name>
<stream-description>Gamers Radio</stream-description>
<stream-url>http://94.136.35.14:8000/live.mp3.m3u</stream-url>
<genre>Top40</genre>
<bitrate>64</bitrate>
<type>application/mp3</type>
<subtype>mp3</subtype>
<burst-size>65536</burst-size>
<mp3-metadata-interval>4096</mp3-metadata-interval>
</mount> |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun Apr 04, 2010 6:50 pm Post subject: |
|
|
You still seem to be thinking that and m3u is a stream, it is not, it is a playlist. mountpoints for streams do not end with .m3u, .pls or .xspf.
Ask yourself, what is the url for the stream?
karl. |
|
Back to top |
|
|
Adey
Joined: 02 Apr 2010 Posts: 3
|
Posted: Sun Apr 04, 2010 7:48 pm Post subject: |
|
|
karlH wrote: |
You still seem to be thinking that and m3u is a stream, it is not, it is a playlist. mountpoints for streams do not end with .m3u, .pls or .xspf.
Ask yourself, what is the url for the stream?
karl. |
Karl! You're an absolute star!! Thanks for your help. |
|
Back to top |
|
|
|