Ok, i've created a ultra simple script what doesn't play jingles on 1.3.4 wav
or flac:
set("log.file",true)
set("log.file.path","/var/log/liquidsoap/myradio.log")
set("log.stdout",false)
set("log.level",3)
set("server.telnet",true)
set("server.telnet.bind_addr","127.0.0.1")
set("server.telnet.port",3033)
set("server.timeout",3600.)
set("init.daemon.pidfile.path","/var/run/liquidsoap/myradio.pid")
def strip_jingle_meta(m) =
if m["genre"] == "myradio" then
[]
else
m
end
end
def my_crossfade(s) =
def f(_,_, old_m, new_m, old, new) =
if old_m["genre"] != "myradio" and new_m["genre"] != "myradio" then
add([fade.initial(new), fade.final(old)])
else
log("Old or new file is a jingle: sequenced transition.")
sequence([old,new])
end
end
smart_cross(f,s)
end
jingle=playlist(prefix="annotate:genre=\"myradio\":","/home/media/myradio/playlists/jingles.pls",conservative=true)
trance=playlist("/home/media/myradio/playlists/trance.pls",
conservative=true,mode="randomize",reload=1,reload_mode="rounds")
radio=rotate([jingle,trance])
source=my_crossfade(radio)
output.icecast(%mp3.vbr(quality=5,internal_quality=0,samplerate=44100),
encoding="UTF-8",timeout=90.0,connection_timeout=90.0,host="ice.myradio.net",port=80,
password="password",mount="radio.mp3",icy_metadata="true",name="myradio",
description="My radio",genre="electronic",url="https://www.myradio.com",
source,fallible=true)
output.icecast(%vorbis(samplerate=44100,quality=0.4),
encoding="UTF-8",timeout=90.0,connection_timeout=90.0,host="ice.myradio.net",port=80,
password="password",mount="radio.ogg",icy_metadata="false",name="myradio",
description="My radio",genre="electronic",url="https://www.myradio.com",
source,fallible=true)
If this works on your setup, maybe there is something wrong with my install or
im missing something when I compiled Liquidsoap?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/652#issuecomment-437537064
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users