Good day everyone


Apologies in advance for my maybe dumb question, but I am still a LS
newbie.



I’d like to insert an overlay ad (on top of the stream) to a source, not at
one time of the hour, but on all *nn* minutes.



That’s probably possible, but I haven’t yet found a solution. Can anyone
help?



Right now, the code below works fine, but, as as said, only once an hour
(at :35). I have tried to just replace the {35m0s} with a integer of, say,
60 (without the {} brackets), but of course liquidsoap didn’t like me for
that.



--

set("log.file",false)

set("log.stdout",true)

set("log.level",4)



# A playlist source with a smart crossfade

s1=playlist(reload=80000, "Y:\content\m3u\jazz_smooth_sax.m3u")

s2=playlist(reload=80000, "Y:\content\m3u\jazz_smooth_guitar.m3u")

s3=playlist(reload=80000, "Y:\content\m3u\jazz_smooth_keypianoorgan.m3u")

s4=playlist(reload=80000, "Y:\content\m3u\jazz_smooth_other.m3u")

s5=playlist(reload=80000, "Y:\content\m3u\jazz_smooth_new.m3u")

s6=playlist(reload=80000, "Y:\content\m3u\jazz_smooth_powerplay.m3u")

overlay=playlist("Y:\98_various_channels\IDs\OL")



s = rotate (weights=[1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1], [s3, s4,
s1, s2, s3, s5, s4, s2, s1, s3, s5, s4, s2, s6])



s = add([s, switch([({35m0s},overlay)])])



s = smart_crossfade(fade_out=0.8,fade_in=0.0,s)



s = nrj(s)



monosource = mean (s)



# An icecast output, in mp3

output.icecast(%mp3(mono=true,
bitrate=64),fallible=true,mount="jazz_smooth",host="live-four
",port=8080,password="as34lasdf",monosource)



--



Any help is greatly appreciated.



Alex
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to