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 

Problem with Fallback/fallback-override

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



Joined: 21 Nov 2007
Posts: 30

PostPosted: Fri Jan 25, 2008 8:27 pm    Post subject: Problem with Fallback/fallback-override Reply with quote

Hey guys,

I have a problem with a fallback-mount. When the "normal" mount is started all listeners of the fallback mount (and not only that listeners which came from the "normal" stream) are put back to the "normal" stream.

The detailed situation:

I have a fallback-mount called /fallback.mp3 which gets 24h music from a ezstream-instance on the server.

I have a "normal" stream-mount called /stream.mp3 with "Fallback-override" activated.

The /fallback.mp3 is relayed by another server which uses it as fallback, too, but for a totaly different programm.


The problem:

When stream.mp3 comes back every listener which is on fallbackmp3 gets switched to stream.mp3 not only that ones which came via stream.mp3 (and hear that as fallback.).
So ie. the relaying server gets the stream.mp3 programme and not the fallback-programm ....
But when someone points to the /fallback.mp3 when /stream.mp3 is active than he hears the /fallback-music.

So I think its definitely a ovveride-problem....
Is there a solution?

Thank you guys,
Kai
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Jan 25, 2008 11:30 pm    Post subject: Reply with quote

If A and B both fallback to C then any override will kick in at the time the stream kicks in. If you want to isolate listeners from an override then setup a local relay of C, lets say D. Now A fallback/override D, D is a relay of C and B still relays C without any issue of being moved. All listeners will be kept on A or D and won't be confused with the relay B. I'm guessing you don't want C or D to be a publically advertised point of access for listeners.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kai4711



Joined: 21 Nov 2007
Posts: 30

PostPosted: Sat Jan 26, 2008 8:27 am    Post subject: Reply with quote

local relay really with the relay-function and ie localhost as host?
Not alias or something like that?


So I understand right, I open a fallback-source mount ie B and for every mount ie A a second fallback mount ie A-fallback which relays B?

If I have a totally different mount C which I want to isolate, then I create a C-fallback which relays B too?

Thank you!

Kai
Back to top
View user's profile Send private message
kai4711



Joined: 21 Nov 2007
Posts: 30

PostPosted: Sat Jan 26, 2008 3:25 pm    Post subject: Reply with quote

Yeah I managed it, but only with a little trick:

You have to set
Code:
<on-demand>1</on-demand>


because when icecast starts it directly search for the relayed-server/source but cannot find it, because the fallback-loop source needs up to 10 seconds to connect.

And because of icecast doesnt search for the relay-server continually to connect the relayed-fallback will never appear.
So we use that trick to mount it when its requested.

@Karl: I think a "bug" in icecast, that it doenst search for relays every X seconds, is it?

Regards,
Kai
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 Jan 26, 2008 3:45 pm    Post subject: Reply with quote

Relays are rechecked every 2 mins by default but you are right in that the first relay check will fail as a source client will probably not be connected. With on-demand set it will stop some extra processing when it's not needed as well.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kai4711



Joined: 21 Nov 2007
Posts: 30

PostPosted: Sat Jan 26, 2008 7:54 pm    Post subject: Reply with quote

Is it possible to change that 2 minutes value?

kai
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 Jan 26, 2008 9:00 pm    Post subject: Reply with quote

use <master-update-interval> specified in seconds

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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