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 

Occasional Relay?

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



Joined: 16 Nov 2010
Posts: 17

PostPosted: Wed Nov 17, 2010 2:11 am    Post subject: Occasional Relay? Reply with quote

Hi all. I'm brand-new to Icecast, but quite familiar with Shoutcast, and I'd like to know if the following is possible.

The setup I have now is basically this:

DJ -> Transcode server (running sc_trans) -> Shoutcast server -> Listeners

What I'd like is to add Icecast for a second stream, occasionally relaying the existing stream when a live DJ is on, but playing archived shows when the Transcode server's autoDJ is on (the autoDJ normally plays a preset playlist when a live DJ isn't on).

Is this possible?

Thanks in advance!
Back to top
View user's profile Send private message
DJ Charlie



Joined: 16 Nov 2010
Posts: 17

PostPosted: Thu Nov 18, 2010 3:19 pm    Post subject: Reply with quote

Hello?
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Nov 18, 2010 3:58 pm    Post subject: Reply with quote

You want a relay with a fallback to a mountpoint fed by a playlist?

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



Joined: 16 Nov 2010
Posts: 17

PostPosted: Thu Nov 18, 2010 4:05 pm    Post subject: Reply with quote

Well, I don't think it would be a fallback, as the primary stream wouldn't be dropping, just switching between a live DJ, and our auto DJ.

Basically, it would relay based on a schedule, and play from a playlist the rest of the time.
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Nov 18, 2010 4:19 pm    Post subject: Reply with quote

Then it won't be occasional. You can configure the relay as on-demand but it won't know when the live content is present or not unless there is some external indication. Obviously if shoutcast was relaying icecast then you could isolate the feed onto a non-fallback mountpoint whereas listeners would fall back but I don't know of any shoutcast triggers you could use.

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



Joined: 16 Nov 2010
Posts: 17

PostPosted: Thu Nov 18, 2010 4:30 pm    Post subject: Reply with quote

Hmm. Would it be possible to code an external trigger (example: a curl script using cron) to make the switch?
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Nov 18, 2010 7:55 pm    Post subject: Reply with quote

Relays cannot be switched off/on easily. In 2.3.2 you would have to change the xml and reload the file, you could have a with and without xml and copy across then HUP the server.. There is an enable/disable admin option which you could trigger with curl in the kh tree on my site, something which I've been tidying up in the more recent updates (kh27.6).

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



Joined: 16 Nov 2010
Posts: 17

PostPosted: Thu Nov 18, 2010 10:40 pm    Post subject: Reply with quote

Now that's one I hadn't thought of. But would a HUP kick listeners off the stream?
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Nov 18, 2010 11:35 pm    Post subject: Reply with quote

Depends on the setup at the time. If a relay is removed from the xml then the relay is shut down and at that point it depends on whether a fallback is specified in the <mount>. If not then listeners are dropped, if one is then it will depend if the fallback is active.

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



Joined: 16 Nov 2010
Posts: 17

PostPosted: Fri Nov 19, 2010 3:08 am    Post subject: Reply with quote

So technically, I could set up the playlist as the fallback, and the relay as the mount, and issue the HUP (and switch) at the appropriate times?
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 Nov 19, 2010 4:27 am    Post subject: Reply with quote

yes, just make sure the fallback/override setting is still present even if the relay is missing.

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