View previous topic :: View next topic |
Author |
Message |
DJ Charlie
Joined: 16 Nov 2010 Posts: 17
|
Posted: Wed Nov 17, 2010 2:11 am Post subject: Occasional Relay? |
|
|
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 |
|
|
DJ Charlie
Joined: 16 Nov 2010 Posts: 17
|
Posted: Thu Nov 18, 2010 3:19 pm Post subject: |
|
|
Hello? |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Nov 18, 2010 3:58 pm Post subject: |
|
|
You want a relay with a fallback to a mountpoint fed by a playlist?
karl. |
|
Back to top |
|
|
DJ Charlie
Joined: 16 Nov 2010 Posts: 17
|
Posted: Thu Nov 18, 2010 4:05 pm Post subject: |
|
|
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 |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Nov 18, 2010 4:19 pm Post subject: |
|
|
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 |
|
|
DJ Charlie
Joined: 16 Nov 2010 Posts: 17
|
Posted: Thu Nov 18, 2010 4:30 pm Post subject: |
|
|
Hmm. Would it be possible to code an external trigger (example: a curl script using cron) to make the switch? |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Nov 18, 2010 7:55 pm Post subject: |
|
|
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 |
|
|
DJ Charlie
Joined: 16 Nov 2010 Posts: 17
|
Posted: Thu Nov 18, 2010 10:40 pm Post subject: |
|
|
Now that's one I hadn't thought of. But would a HUP kick listeners off the stream? |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Nov 18, 2010 11:35 pm Post subject: |
|
|
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 |
|
|
DJ Charlie
Joined: 16 Nov 2010 Posts: 17
|
Posted: Fri Nov 19, 2010 3:08 am Post subject: |
|
|
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 |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Nov 19, 2010 4:27 am Post subject: |
|
|
yes, just make sure the fallback/override setting is still present even if the relay is missing.
karl. |
|
Back to top |
|
|
|