[
http://dev.sourcefabric.org/browse/LS-645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=29394#action_29394
]
MrChrisCool commented on LS-645:
--------------------------------
Finally, after several headache i found a workaround.
The idea was to play with the queue only.
set("log.file",true)
set("log.level",3)
set("log.file.path","/home/radio/log/test.log")
set("server.telnet",true)
nbtrack = interactive.float("nbtrack",0.)
def Titre() =
result = get_process_output("php /var/www/titre.php")
request.create(result)
end
def Jingle() =
result = get_process_output("php /var/www/jingle.php")
request.create(result)
end
def crossfade(~conservative=true,s)
s = fade.in(duration=5.,s)
s = fade.out(duration=5.,s)
fader = fun (a,b) -> add(normalize=false,[b,a])
cross(conservative=conservative,duration=3.,fader,s)
end
flux = request.queue(id="titrequeue",interactive=true,queue=[Titre()])
def AddTitre(m)
cnt = nbtrack() + 1.
if cnt > 5. then
ignore(server.execute("var.set nbtrack = 0."))
result = get_process_output("php /var/www/jingle.php")
ignore(server.execute("#{source.id(flux)}.push #{result}"))
else
ignore(server.execute("var.set nbtrack = #{cnt}"))
result = get_process_output("php /var/www/titre.php")
ignore(server.execute("#{source.id(flux)}.push #{result}"))
end
log(label="ON TRACK",level=3,"Track count #{cnt}")
end
flux = on_track(AddTitre(), flux)
flux = crossfade(flux)
flux = fallback(track_sensitive=false,[flux,blank()])
output.icecast(%mp3, host="127.0.0.1", port=8000, mount="/", protocol="icy",
encoding="ISO-8859-1", user="source", password="password", flux)
> Can't crossfade using request.dynamic and rotate. Liquidsoap hang...
> --------------------------------------------------------------------
>
> Key: LS-645
> URL: http://dev.sourcefabric.org/browse/LS-645
> Project: Liquidsoap
> Issue Type: Bug
> Components: Liquidsoap
> Environment: Ubuntu server 12.10 quantal, liquidsoap 1.0.1
> Reporter: MrChrisCool
> Priority: Major
>
> Following script hang liquidsoap :
> def Titre() =
> result = get_process_output("php /var/www/titre.php")
> request.create(result)
> end
> def Jingle() =
> result = get_process_output("php /var/www/jingle.php")
> request.create(result)
> end
> def crossfade(~conservative=true,s)
> s = fade.in(duration=5.,s)
> s = fade.out(duration=5.,s)
> fader = fun (a,b) -> add(normalize=false,[b,a])
> cross(conservative=conservative,duration=3.,fader,s)
> end
> flux = rotate(weights=[1,1],[request.dynamic(Jingle),request.dynamic(Titre)])
> flux = crossfade(flux)
> flux = fallback(track_sensitive=false,[flux,blank()])
> output.icecast(params_for_icecast,flux)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://dev.sourcefabric.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Savonet-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-devl