So here's what I came up with: use Logitech Media Server and squeeze-lite. Turns out it does everything I wanted to do, I just had to stumble across it.
On Fri, May 29, 2015 at 4:47 PM, Alex LaBranche <[email protected]> wrote: > there are similar functions that are built into wowza server that behave > this way when using a source/edge setup. the edge server will sit idle > until a request is made (tune in), then it will pull from the source > server. when there are no more listeners connected to that particular > stream, it will disconnect. > > the problem you might run into here is with icecast (from what i can > remember) if there are no sources connected, you cant connect to the > stream, thus there is no way your stats will ever read more than 0 until a > source stream is provided. > > generally if your on a home ISP, the bandwidth used is very low… if this > is all over local LAN the network usage is also negligible... and reading a > single file for playback wont be thrashing a hard drive (unless the drive > is going bad or the file is huge and you have lots of other processes that > are heavy on disk i/o). the correct process would be to load the track into > memory and serve from there. > > since you are sourcing a stream out on the internet, why not simply tune > in directly to that stream from the node? when you are not listening, its > not using any bandwidth. > > if you are concerned about multiple nodes being tuned in at the same time, > you can set up a local relay (as it looks like thats what you’ve done with > liquidsoap. > > basically you would only need to tell liquidsoap ‘i want to start > listening now’, in one way or another so it will start pulling from the > remote stream. > > its easy enough to write a script (or use one of the many out on the > internets) to check the listener stats of an icecast server and have > liquidsoap disconnect if there are 0 listeners. but off the top of my head > the best way to accomplish starting the stream when there are 0 listeners > and you want to listen is to manually tell liquidsoap to start or switch to > a live stream. such as a http GET request or a telnet command or whatever… > > > hope this helps a little… let us know what you come up with =] > > cheers
------------------------------------------------------------------------------
_______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
