Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Fallback Mount Problem

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
Adey



Joined: 02 Apr 2010
Posts: 3

PostPosted: Sat Apr 03, 2010 2:24 pm    Post subject: Fallback Mount Problem Reply with quote

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
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sat Apr 03, 2010 6:25 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Adey



Joined: 02 Apr 2010
Posts: 3

PostPosted: Sun Apr 04, 2010 4:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sun Apr 04, 2010 6:50 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Adey



Joined: 02 Apr 2010
Posts: 3

PostPosted: Sun Apr 04, 2010 7:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
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