Here it is. It's a little more complex than I described.
#!/usr/local/bin/liquidsoap
# Lines starting with # are comments, they are ignored.
# Put the log file in some directory where
# you have permission to write.
set("log.file.path","/tmp/<script>.log")
# Print log messages to the console,
# can also be done by passing the -v option to liquidsoap.
set("log.stdout", true)
# Use the telnet server for requests
set("server.telnet", true)
# A bunch of files and playlists,
# supposedly all located in the same base dir.
default = single("~/radio/RR.opus")
day = playlist("~/radio/day")
night = playlist("/media/tardis/music/a")
jingles = playlist("/media/sidrat/Jingles/Jingles")
clock = single("~/radio/RR.opus")
#start = single("~/radio/RR.opus")
#stop = single("~/radio/RR.ogg")
# Play user requests if there are any,
# otherwise one of our playlists,
# and the default file if anything goes wrong.
radio = fallback([ request.queue(id="request"),
switch([({ 6h-22h }, day),
({ 22h-6h }, night)]),
default])
# Add the normal jingles
radio = random(weights=[1,5],[ jingles, radio ])
# And the clock jingle
radio = add([mksafe(radio), switch([({0m0s},clock)])])
# Add the ability to relay live shows
full =
fallback(track_sensitive=false,
[input.http("http://localhost:8888/dj1"),
input.http("http://localhost:8888/dj2),
input.http("http://localhost:8888/dj3"),
radio])
# Output the full stream in Opus and MP3
output.icecast(%mp3(bitrate=96),
host="cyberman.local",port=8888,password="xxx",
mount="listen",full)
output.icecast(%opus(bitrate=32, signal="music"),
host="cyberman.local",port=8888,password="xxx",
mount="listen.opus",full)
# Output the auto dj stream in Opus
output.icecast(%opus(bitrate=32, signal="music"),
host="cyberman.local",port=8888,password="xxx",
mount="autodj.opus",radio)
On Wed, Jul 13, 2016 at 8:58 PM, Sarah Alawami <[email protected]> wrote:
> If possible can you paste your script here so we might be able to see
> what's u, minus the passwords of corse.
>
> Blessings and happy Wednesday
> > On Jul 13, 2016, at 5:49 PM, Brian Millham <[email protected]> wrote:
> >
> > Hi all,
> > I'm in process of learning LiquidSoap. For the most part I have things
> working as I'd like, but I'm having 2 problems that I can't figure out.
> >
> > First, my configuration:
> >
> > I based my setup on the example complete_case.liq script.
> >
> > I have a /listen mount for listeners, /audodj for obvious use and then
> /dj1 /dj2 and /dj3.
> >
> > That all works perfect, the ADJ stream plays until /dj1 connect, then
> dj1 is in /listen. Perfect.
> >
> > But, the /dj1 stream information is not passed to /listen. The client is
> properly setting server_description to 'My Show!', and looking at the
> icecast status page it shows properly. But, the server_description on
> /listen never changes, it stays stuck to 'Liquidsoap Radio!' How can I get
> the /dj1 server_ metadata passed to /listen
> >
> > And related to that question, how do I change the /autodj server_
> metadata?
> >
> > I know it's probably something simple that I'm overlooking, but I just
> can't find how to do this in the documents.
> >
> > Thank you!
> > Brian
> >
> ------------------------------------------------------------------------------
> > What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> > patterns at an interface-level. Reveals which users, apps, and protocols
> are
> > consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> > J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning
> > reports.
> http://sdm.link/zohodev2dev_______________________________________________
> > Savonet-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/savonet-users
>
>
>
> ------------------------------------------------------------------------------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> patterns at an interface-level. Reveals which users, apps, and protocols
> are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning
> reports.http://sdm.link/zohodev2dev
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users