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 

Question for away/black-out/holiday problems!

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



Joined: 28 Dec 2008
Posts: 67
Location: Greece

PostPosted: Mon Jun 15, 2009 2:43 pm    Post subject: Question for away/black-out/holiday problems! Reply with quote

Hello Karl and all.

Sometimes here in athens (kallithea location) they do us loooong electricity black-outs, which of course those hours the radio does not work.
These days I'm planning my vacations also, which is not possible to have 24/7 my laptop with me to check if it's working, if something failed bla bla bla.

Is by any chance, to the icecast.xml or icecast in general, to set a time limit (for example 10minutes maximum to accept to be idle from receiving connections) and then instead of waiting from my machine to connect, the icecast to point to my server and start the streaming from there?

if yes
a) to do that, should I install also to the server a player and a source client?
b) should I make a special directory to the server?
or whatever you told me that's necessary to be done?

thank you Very Happy
_________________
www.freshwebradio.com


Last edited by sonia on Mon Jun 15, 2009 6:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon Jun 15, 2009 2:55 pm    Post subject: Reply with quote

obviously your situation may need expanding on but it sounds like the stream (say /live.ogg) is being being fed by a remote source client which can go down and you want to relay another stream if it fails. In such cases I would have /live.ogg relaying a local stream say /stream.ogg which is fed by the remote source client which falls back to an on-demand relay.

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



Joined: 28 Dec 2008
Posts: 67
Location: Greece

PostPosted: Mon Jun 15, 2009 3:20 pm    Post subject: Reply with quote

Quote:
[quote="karlH"]obviously your situation may need expanding on but it sounds like the stream (say /live.ogg) is being being fed by a remote source client which can go down and you want to relay another stream if it fails.
until here yes it's that
Quote:
In such cases I would have /live.ogg relaying a local stream say /stream.ogg which is fed by the remote source client which falls back to an on-demand relay.
for this, can you please explain it to me exactly???
step by step the how to? the source client is here at my office and the server is somewhere in the US. I don't understand how it can work.

sorry but as you know I'm not a technician, I'm still learning.
_________________
www.freshwebradio.com
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon Jun 15, 2009 3:56 pm    Post subject: Reply with quote

source client send content to /stream.ogg
listeners connect on /live.ogg
/live.ogg is a relay (localhost/stream.ogg)
/stream.ogg has a fallback/override set for /relay.ogg
/relay.ogg is an on-demand relay of some external stream

The fallback relay stream will only get content if the main stream goes down. /live.ogg is the static entry point for listeners and the source client always connects on /stream.ogg

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



Joined: 28 Dec 2008
Posts: 67
Location: Greece

PostPosted: Mon Jun 15, 2009 8:58 pm    Post subject: Reply with quote

karlH wrote:
source client send content to /stream.ogg
listeners connect on /live.ogg
/live.ogg is a relay (localhost/stream.ogg)
/stream.ogg has a fallback/override set for /relay.ogg
/relay.ogg is an on-demand relay of some external stream

The fallback relay stream will only get content if the main stream goes down. /live.ogg is the static entry point for listeners and the source client always connects on /stream.ogg

karl.


so ok now I understood all the above.
the theme is:
a) do I have to install a source client and a player to the server?
b) how will I tell to icecast that, after 5-10 minutes of not receiving a connection from my main source (office), to start from the server???

ty so much karl
_________________
www.freshwebradio.com
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon Jun 15, 2009 9:25 pm    Post subject: Reply with quote

a) no
b) it's automatic, if /stream.ogg is down then the /live.ogg relay is moved to /relay.ogg and if that fails as well then the incoming listeners are dropped.

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



Joined: 28 Dec 2008
Posts: 67
Location: Greece

PostPosted: Mon Jun 15, 2009 10:58 pm    Post subject: Reply with quote

karlH wrote:
a) no
b) it's automatic, if /stream.ogg is down then the /live.ogg relay is moved to /relay.ogg and if that fails as well then the incoming listeners are dropped.

karl.


that's exactly what I don't want!
to drop the listeners.
I just want the radio to continue to play, if I'm there or If I'm not.

That's why I asked, if I can redirect in someway icecast, in case something happens, to point somewhere else, so to start streaming again.
_________________
www.freshwebradio.com
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Jun 16, 2009 2:51 am    Post subject: Reply with quote

If the source client is not able to stream, and icecast is not able to relay some other existing stream then the only thing left that icecast could do is provide a playlist, instead of the automatically generated m3u, just place an m3u in webroot that also lists other places where a player can reconnect to. It really depends on how many failure cases you want to handle in a row.

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



Joined: 28 Dec 2008
Posts: 67
Location: Greece

PostPosted: Tue Jun 16, 2009 3:51 pm    Post subject: Reply with quote

karlH wrote:
If the source client is not able to stream, and icecast is not able to relay some other existing stream then the only thing left that icecast could do is provide a playlist, instead of the automatically generated m3u, just place an m3u in webroot that also lists other places where a player can reconnect to. It really depends on how many failure cases you want to handle in a row.

karl.


just one!.. especially on holidays...ok I'll have my lap with me, ok I'll carry it with me 24/7, but unfortunately here in Greece, except from the major cities, all the smaller cities and islands, are not fully equiped with broadband and especially wireless and I'm 100000% sure that I won't have access to the internet all the time.

so my steps are:
a) place an automated m3u in webroot
b) install a player in my server to play that m3u
c) install a source client for the player.

and ok if I hear that on time and do it manually the start up of all these.
but If I don't?? where on icecast I should tell that, if it's idle after 5-10 minutes connect there??? automatically?
or Icecast don't support this?
_________________
www.freshwebradio.com
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Jun 16, 2009 6:10 pm    Post subject: Reply with quote

you seem to be thinking along different lines to what I suggested. This may be because I'm not fully aware of your situation. My understanding is that you have a remote source client feeding a stream which could go down and in such cases you want to get icecast to switch to another source. The mountpoint with a fallback to an on-demand relay will suffice for such a situation, there is no need to use a separate source client for that.

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



Joined: 28 Dec 2008
Posts: 67
Location: Greece

PostPosted: Wed Jun 17, 2009 6:44 pm    Post subject: Reply with quote

karlH wrote:
you seem to be thinking along different lines to what I suggested. This may be because I'm not fully aware of your situation. My understanding is that you have a remote source client feeding a stream which could go down and in such cases you want to get icecast to switch to another source. The mountpoint with a fallback to an on-demand relay will suffice for such a situation, there is no need to use a separate source client for that.

karl.


you suggested but I don't understand because as I told you I'm not a technician and by telling me just 10 words I don't know what you mean.sorry...Sad

I need a simple, step by step, clean solution, only for what I asked and if icecast supports it: if something happens and the machine here (source client + player) cannot send data to icecast, what should I do, so the radio to be on air without the need of my physical present but to be redirected maybe to my server? maybe to a playlist in my server! I don't know what's best and how but somehow and please please please exactly: 1,2,3 etc... all the others, looks chinese to me! sorry Sad
_________________
www.freshwebradio.com
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed Jun 17, 2009 9:02 pm    Post subject: Reply with quote

assuming your source client connects on /stream.ogg then you have

<mount>
<mount-name>/stream.ogg</....
<fallback-mount>/relay.ogg</....
<fallback-override>1</...
</mount>

<relay>
<server>a.b.c.d</...
<on-demand>1</...
<mount>/remote</...
<local-mount>/relay.ogg</...
</relay>

the live.ogg mount can be a local relay of /stream.ogg that would be useful if you need a static mountpoint for things like directory listing.

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



Joined: 28 Dec 2008
Posts: 67
Location: Greece

PostPosted: Sat Jun 20, 2009 11:41 am    Post subject: Reply with quote

karlH wrote:
assuming your source client connects on /stream.ogg then you have

<mount>
<mount-name>/stream.ogg</....
<fallback-mount>/relay.ogg</....
<fallback-override>1</...
</mount>

<relay>
<server>a.b.c.d</...
<on-demand>1</...
<mount>/remote</...
<local-mount>/relay.ogg</...
</relay>

the live.ogg mount can be a local relay of /stream.ogg that would be useful if you need a static mountpoint for things like directory listing.

karl.


I'll try it within the next days and I'll tell you the result.

One last thing. If I remember well, icecast needs to restarted/killed and start over, for the settings to take effect. Could you please tell me the kill and start again commands?

thank youuuuuuuuuuuuuuuuuuuuuuuuuu
_________________
www.freshwebradio.com
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 Jun 20, 2009 11:44 am    Post subject: Reply with quote

While a stop/start of the icecast server is the way to do all settings, for the changes you mentioned above you should be ok with sending a HUP signal to the process to trigger a re-read of the xml (kill -HUP <pid>)

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



Joined: 28 Dec 2008
Posts: 67
Location: Greece

PostPosted: Fri Jul 17, 2009 11:54 pm    Post subject: Reply with quote

karlH wrote:
While a stop/start of the icecast server is the way to do all settings, for the changes you mentioned above you should be ok with sending a HUP signal to the process to trigger a re-read of the xml (kill -HUP <pid>)

karl.


Hello hello

I tried what you told me, but it's not what I finally needed and for sure it's not working for me, because by doing your steps, I had to find another place to stream, far away from the server, which will be the same unstable as my office!

So I'll try to setup a source client on the server -which is guaranteed 100% up 24/7- which will point local, on icecast. And upload many many many music on the server also.

And If I start it manual, it work right???
For blackouts etc, I must use your steps?

thank u
Sonia
_________________
www.freshwebradio.com
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