On Mon, 2005-09-19 at 20:58, Milos Wimmer wrote:> I send 2 streams from machine "A" to icecast server: > "cro-region-256.ogg" (224 kb/s stream) > "cro-region.ogg" (128 kb/s stream) > > and 1 backup stream from machine "B" to same icecast server: > "z-cro-region.ogg" (128 kb/s stream) > > I'm using following definition in my icecast.xml file: > <mount> > <mount-name>/cro-region.ogg</mount-name> > <fallback-mount>/z-cro-region.ogg</fallback-mount> > <fallback-override>1</fallback-override> > </mount> > > When I'm listening stream "/cro-region.ogg" and I stop both streams > "cro-region-256.ogg" and "cro-region.ogg", my client (xmms) is moved to > "/z-cro-region.ogg" stream greatly. > But when I start both streams "cro-region-256.ogg" and "cro-region.ogg" > again, my client is moved to "/cro-region-256.ogg" instead of > "/cro-region.ogg".If there's no fallback link from /cro-region-256.ogg to /z-cro-region.ogg then it's wrong, but I'd prefer to see the xml and error log (level 4) before saying it's a bug. If there is a fallback from /cro-region-256.ogg to /cro-region.ogg with override enabled then it could happen. karl.
On Mon, 19 Sep 2005, Karl Heyes wrote:>> <mount> >> <mount-name>/cro-region.ogg</mount-name> >> <fallback-mount>/z-cro-region.ogg</fallback-mount> >> <fallback-override>1</fallback-override> >> </mount> >> >> When I'm listening stream "/cro-region.ogg" and I stop both streams >> "cro-region-256.ogg" and "cro-region.ogg", my client (xmms) is moved to >> "/z-cro-region.ogg" stream greatly. >> But when I start both streams "cro-region-256.ogg" and "cro-region.ogg" >> again, my client is moved to "/cro-region-256.ogg" instead of >> "/cro-region.ogg". > > If there's no fallback link from /cro-region-256.ogg to > /z-cro-region.ogg then it's wrong, but I'd prefer to see the xml and > error log (level 4) before saying it's a bug. If there is a fallback > from /cro-region-256.ogg to /cro-region.ogg with override enabled then > it could happen.I would like to have fallback from /cro-region-256.ogg to /z-cro-region.ogg. But when I had it, it worked exactly same. So I tried remove it for simpler description. On other side - why is wrong to have /cro-region-256.ogg without fallback? I'm running lot of other streams on that icecast server and some of them have no fallback. Ok, I will send you my xml file and error log in private message. Regards, Milos
On Mon, 2005-09-19 at 21:43, Milos Wimmer wrote:> > If there's no fallback link from /cro-region-256.ogg to > > /z-cro-region.ogg then it's wrong, but I'd prefer to see the xml and > > error log (level 4) before saying it's a bug. If there is a fallback > > from /cro-region-256.ogg to /cro-region.ogg with override enabled then > > it could happen. > > I would like to have fallback from /cro-region-256.ogg to > /z-cro-region.ogg. But when I had it, it worked exactly same. So I tried > remove it for simpler description. > On other side - why is wrong to have /cro-region-256.ogg without fallback? > I'm running lot of other streams on that icecast server and some of them > have no fallback.your xml has <mount> <mount-name>/cro-region-256.ogg</mount-name> <fallback-mount>/z-cro-region.ogg</fallback-mount> <fallback-override>1</fallback-override> </mount> so if your listeners have fallen back to /z-cro-region.ogg and /cro-region-256 reconnects then the listeners will be moved to that mountpoint. If you want to have the same fallback to 2 or more sources but maintain the original mountpoint for where they came from then fallback to a mountpoint which is a local relay of the fallback stream. eg <relay> <server>127.0.0.1</server> <port>8000</port> <mount>/z-cro-region.ogg</mount> <local-mount>/fall-cro-region.ogg</local-mount> </relay> <relay> <server>127.0.0.1</server> <port>8000</port> <mount>/z-cro-region.ogg</mount> <local-mount>/fall-cro-region-256.ogg</local-mount> </relay> <mount> <mount-name>/cro-region.ogg</mount-name> <fallback-mount>/fall-cro-region.ogg</fallback-mount> <fallback-override>1</fallback-override> </mount> <mount> <mount-name>/cro-region-256.ogg</mount-name> <fallback-mount>/fall-cro-region-256.ogg</fallback-mount> <fallback-override>1</fallback-override> </mount> fallback /cro-region.ogg -----------------------> /fall-cro-region.ogg A | relay | /z-cro-region.ogg | | relay fallback V /cro-region-256.ogg -------------------> /fall-cro-region-256.ogg The idea is that actual listeners will never be on /z-cro-region.ogg, the 2 relays will have the same contents but will isolate the listeners. For this you will need 2 mountpoints for each listener stream, although in 2.3 and -kh the relay can be on-demand. karl.