From: Davit B. <ja...@gm...> - 2010-07-19 20:34:45
|
I've built liquidsoap from trunk, so far I was able to produce two streams from single files. But also need to break those streams with live stream from my pc, whenever I activate it. I tried different approaches, but for some reason only winamp shoutcast dsp plugin was able to actually connect to harbor.port. My streams are indeed interrupted when I switch live stream on and then come back when I turn it off. The only problem is that there is pure silence on my live stream, although sound data is transferred out from my pc. Here is my config (I copy/pasted it from examples on savonet website, but as far as I see it should be ok): #!/usr/local/bin/liquidsoap # Log dir set("harbor.bind_addr","0.0.0.0") set("harbor.port",8900) set("harbor.password","xxxxx") set("harbor.icy",true) host = "localhost" port = 8889 pass = "xxxxx" url = "url_here" desc = "..." # live live = input.harbor("/") def mklive(source) fallback(track_sensitive=false,[ strip_blank(live, length=10., threshold=-50.), source ]) end output.icecast = output.icecast(%mp3, restart=true, description=desc, url=url) out = output.icecast(host=host, port=port, password=pass, protocol="icy") radio = single("/home/liquidsoap/fallback1.mp3") # publish stream def mkoutput(mount, source, name, genre) out(mount=mount, name=name, genre=genre, mklive(source)) end rock = mkoutput("rock.mp3", radio, "...", "rock") Any ideas what could be wrong? Also when I accept shoutcast stream as input.harbor do I need to output as shoutcast as well? -- Davit Barbakadze |