| View previous topic :: View next topic |
| Author |
Message |
Ancyent
Joined: 07 Jun 2010 Posts: 4
|
Posted: Mon Jun 07, 2010 12:32 pm Post subject: A problem.. I need some tips |
|
|
Till now I used shoutcast server and have recently moved to Icecast ..
On Shoutcast, if i play in winamp http://radio.mysite.ro:8000 or http://radio.mysite.ro:8000/listen.pls, it works. In Icecast is different and I understand that I need to use mounts . Works perfectly, but I need some advice about the next thing.
To have listeners i need to promote the radio with a link. On shoutcast was easy because the general link was : http://radio.mysite.ro:8000 , but here, i'm streaming on http://radio.mysite.ro:8000/live, then another DJ wants to stream after me. he need to stream on mount /play or other name so that the listeners will not be disconnected, and then when i stop my streaming, i use <fallback-mount> so that all listeners will be moved on mount /play .
But in this case how can i promote the radio if i have 2 link , http://radio.mysite.ro:8000/live and when another dj is streaming with http://radio.mysite.ro:8000/play ?
Well , I thought about this too. I can make a playlist file listen.pls that holds both links, so when i want to listen radio, i type http://radio.mysite.ro:8000/listen.pls , if first mount works, it will play, if not, it will pass to the other one.
Back to shoutcast server, if i open http://radio.mysite.ro:8000 , it automaticaly play http://radio.mysite.ro:8000/listen.pls , but here on icecast, i have an error: Error syncing to stream.
My question: There is any way to do this? or do you have other ideas, sugesstions? |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon Jun 07, 2010 3:36 pm Post subject: |
|
|
There can be a variety of setups people prefer with this sort of layout. One that was suggested before would be having a relay as the mountpoint that listeners connect on (it could be / just to maintain the url you used before), this relay would read from another mountpoint (say /falllback) that would be there if no Djs would be connected, say a playlist from ices or similar. If you connect on /dj1 then you could have /dj1 doing fallback/overide of /fallback then the relay would bounce between fallback and the current DJ and the listeners would stay on / (which can be useful if you place that mountpoint on a directory).
karl. |
|
| Back to top |
|
 |
Ancyent
Joined: 07 Jun 2010 Posts: 4
|
Posted: Mon Jun 07, 2010 8:11 pm Post subject: |
|
|
you mean this?
| Code: |
Type of Relays
There are two types of relays that icecast supports. The first type is when both master and slave servers are icecast2 servers. In this case, a "master-slave" relay can be setup such that all that needs to be done is configure the slave server with the connection information (serverip:port) of the master server and the slave will mirror all mountpoints on the master server. The slave will also periodically check the master server to see if any new mountpoints have attached and if so will relay those as well. The second type of relay is a "single-broadcast" relay. In this case, the slave server is configured with a serverip+port+mount and only the mountpoint specified is relayed. In order to relay a broadcast stream on a Shoutcast server, you must use the "single-broadcast" relay and specify a mountpoint of "/".
|
The second type of relay?
Sorry but is the first time when i use Icecast and it's a little difficult to understand. |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon Jun 07, 2010 9:31 pm Post subject: |
|
|
yes, a single <relay> block (which can be on-demand) of a mountpoint on the same server (so eg settings like localhost 8000 /fallback) would work. If it's on-demand then it will kick off when there are listeners present, if not then the relay will retry to get the fallback stream every 120 seconds.
karl. |
|
| Back to top |
|
 |
Ancyent
Joined: 07 Jun 2010 Posts: 4
|
Posted: Tue Jun 08, 2010 3:20 am Post subject: |
|
|
what about if i make 3 mounts:
1. / with fallback on /live
2. /live ( for dj 1 ) with fallback on /play
3. /play ( for dj 2) with fallback on /
So, with this formula i will have only one link http://radio.mysite.ro:8000/ , if this dont work, it will redirect me on http://radio.mysite.ro:8000/live, if this dont work on /play and then back to /
DO you think that will work?
Edit Later:
Well, i've checked the documentation and logically it needs to work but it's seems that the fallmount option doesn't work.
| Code: |
This optional value specifies a mountpoint that clients are automatically moved to if the source shuts down or is not streaming at the time a listener connects.
This multi-level fallback allows clients to cascade several mountpoints. |
i have these settings
| Code: |
<mount>
<mount-name>/</mount-name>
<fallback-mount>/live</fallback-mount>
</mount>
<mount>
<mount-name>/live</mount-name>
<fallback-mount>/play</fallback-mount>
</mount>
<mount>
<mount-name>/play</mount-name>
<fallback-mount>/</fallback-mount>
</mount> |
But if i'm now streaming on /live and i try to connect on / , it's says Error syncing with stream, and if i'm streaming on /play and i try to connect on /live it's says HTTP File not found, or something like this. |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Jun 08, 2010 10:23 am Post subject: |
|
|
do you still have the alias of / to /status.xsl in there? A cascading fallback is another possibility. If you are sure the mount list is not commented out and that you have restarted the server after any of those changes to the xml were done, then I would suggest increasing the log level to 4 and check the error log. At that level you will see entries relating to those mounts.
karl. |
|
| Back to top |
|
 |
Ancyent
Joined: 07 Jun 2010 Posts: 4
|
Posted: Tue Jun 08, 2010 3:25 pm Post subject: |
|
|
well, you was right.
1. I deleted the alias from icecast2.xml
2. the mount list was commented.
But something still doesn't work right.
If i'm streaming on /play and i connect on /live, it works. it's redirecting me from /live to /play , but with "/" is a problem.
a. when i'm trying to stream on it, i am disconnected from the server.
in logs i have this:
| Code: |
[2010-06-08 18:19:34]
[2010-06-08 18:19:34] INFO connection/_handle_source_request Source logging in at mountpoint "/"
[2010-06-08 18:19:34] WARN connection/_handle_source_request Mountpoint / in use
[2010-06-08 18:19:34] INFO source/source_main listener count on / now 25
[2010-06-08 18:19:42] INFO connection/_handle_source_request Source logging in at mountpoint "/"
[2010-06-08 18:19:42] WARN connection/_handle_source_request Mountpoint / in use |
b. if i'm streaming on /live and i connect on / , it' doesn't work, it's just saying HTTP/1.0 200 OK
EDIT LATER:
I solved the problem in another way with:
| Code: |
| <alias source="/" dest="/live"/> |
Thanks for your support. |
|
| Back to top |
|
 |
|
|
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
|