Dear Liquidsoap users and developers,
I'm in the process of deploying Liquidsoap for a webradio of mine and
have it working almost the way I like it. However, there are still
some problems I can't figure out for myself, so I'd be glad if someone
could have a look over my script.
What it intended:
- The default playlist is the absolute fallback, played when the
switch-function in nightflight does not apply.
- v13b15, v15b17 etc. is used to have special streams for some hours
of the day. This works as expected.
- A jingle (from the jingles playlist) should be played (with some
randomness) after every 5 songs from the nightflight playlist. This
seems to work quite okay, too.
So far so good. Here are the problems I couldn't figure out yet:
There is a playlist "nachrichten", which always holds one mp3 at a
time, and this file should be played every day at 18:30. The first
problem with this is that the filename always changes day-by-day and
liquidsoap doesn't seem to reload the playlist, looks for the old
filename and the file does not get played. The second problem is this:
As you can see I used the add-function so that the file gets played
"on top" of the normal stream beneath it. This is quite cool, but the
volume changes very abprubt and I didn't find a way to have a smooth
fade in of the file. Last but not least, the most important issue with
it: I need to get sure that of the time the file is played, no jingle
is picked from the jingles playlist. This means I need to get sure
that, let's say from 18:25 till the end of the "nachrichten"-file, no
jingle is played. I have no idea at the moment how i can accomplish
this.
Ok, I think I have bombed enough issues for now. I'd be very glad if
anyone could lend me a hand, because I've only started to gather
experience with liquidsoap, and my understandings are still very
limited.
The script is attached.
Thanks,
Frank
#!/opt/bin/liquidsoap
default = playlist(reload = 14400, mode = "randomize", "/home/autodj")
v13b15 = playlist(reload = 14400, mode = "randomize", "/home/musicbeats/v13b15")
v15b17 = playlist(reload = 14400, mode = "randomize", "/home/musicbeats/v15b17")
v17b19 = playlist(reload = 14400, mode = "randomize",
"/home/musicbeats/v17b19")
jingles = playlist(reload = 14400, mode = "randomize",
"/home/musicbeats/jingles")
nachrichten = playlist(reload=600, "/home/musicbeats/nachrichten")
nightflight = fallback([
switch([
({ 13h-15h }, v13b15),
({ 15h-17h }, v15b17),
({ 17h-19h }, v17b19)]),
default])
nightflight = random(weights=[1,5],[ jingles, nightflight ])
nightflight = add(weights=[1,6],[nightflight, switch([({18h30m},
nachrichten)])])
output.icecast.mp3(host="10.0.0.1", port = 8000, password = "", mount =
"nightflight", nightflight, restart = true, fallible = true, genre = "Various",
url = "", description = "", name = "")
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users