Hello to whole community!
I have made a liq script that has two major problems.
1st: I have a playlist xmas that play one song randomly after 3 songs of
the main playlists. This is not happening... If i start liquidsoap and the
first song is from xmas list, it plays only xmas songs. If liquidsoap
starts with c_rock playlist, it continues only with c_rock songs.(At this
moment of writing this mail, i remove the playlist.makesafe(...) and
replace it with only playlist(...), maybe this corrects the problem)
2nd: I get in log file, the message "We must catchup 1.04 seconds!". Is my
liq script somehow havy for the processor or i have misconfigure the whole
thing ?
Here is the script:
# A simple (long) cross-fade
def crossfade2(a,b)
add(normalize=false,
[ sequence([ blank(duration=5.),
fade.initial(duration=10.,b) ]),
fade.final(duration=10.,a) ])
end
# Partially apply next to give it a jingle source.
# It will fade out the old source, then play the jingle.
# At the same time it fades in the new source.
def next(j,a,b)
add(normalize=false,
[ sequence(merge=true,
[ blank(duration=3.),
fade.initial(duration=6.,b) ]),
sequence([fade.final(duration=9.,a),
j,fallback([])]) ])
end
# A similar transition,
# which does a cross-fading from A to B
# and adds a jingle
def transition(j,a,b)
add(normalize=false,
[ fade.initial(b),
sequence(merge=true,
[blank(duration=1.),j,fallback([])]),
fade.final(a) ])
end
set("log.file.path","/tmp/basic-radio.log")
set("init.daemon.pidfile",true)
set("init.daemon.pidfile.path", "/home/perarg/scripts/first.pid")
default = single ("/home/perarg/dq.mp3")
c_rock = random([playlist("/home/perarg/playlists/c_rock.m3u")])
c_rock = rewrite_metadata([("artist","D'Alete Radio Non-Stop:
$(artist)")],c_rock)
c_rock = crossfade(start_next=4.,fade_out=2.,fade_in=1.,c_rock)
m_rock = random([playlist.safe("/home/perarg/playlists/m_rock.m3u")])
m_rock = rewrite_metadata([("artist","D'Alete Radio Non-Stop:
$(artist)")],m_rock)
m_rock = crossfade(start_next=4.,fade_out=2.,fade_in=1.,m_rock)
xmas = playlist("/home/perarg/playlists/xmas.m3u")
xmas = rewrite_metadata([("artist","D'Alete Radio Non-Stop:
$(artist)")],xmas)
xmas = crossfade(start_next=4.,fade_out=2.,fade_in=1.,xmas)
pl = fallback([ switch([
({ 6h-18h },c_rock),
({ 18h-6h },m_rock)
]),default ])
pl = random(weights=[1,3],[ xmas,pl ])
full =
normalize(fallback(track_sensitive=false,transitions=[crossfade2,crossfade2],[input.http("http://localhost:8000/live.ogg"),pl]))
output.icecast.vorbis(id="Non-Stop
Music",restart=true,restart_delay=3,host="*****",port=****,password="*****",genre="D'Alete
Radio Choices",url="http://www.daleteradio.com",description="D'Alete
Radio",mount="daleteradio.ogg",full,quality=0.)
------------------------------------------------------------------------------
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users