#!/usr/bin/liquidsoap streamTitle = "deep.mind radio" streamDescr = "Various Music Genres Including DJ's Live Sets" streamGenre = "Electronic" set("log.level",4) set("log.file.path","/home/deepmix/log/liq.log") set("server.telnet",true) set("harbor.bind_addr","0.0.0.0") set("harbor.port",8008) set("harbor.password","**") set("server.telnet",true) #def handler() # system("/path/to/your/script to do whathever you want") #end #source = on_blank(handler,source) def deepmindLiveStart() log("got live source, starting relays..") end def deepmindLiveEnd() log("live source has gone, stoping relays..") end def crossfade(a,b) add(id="crossfadeAdd", normalize=false, [sequence( id="CrossfadeAddSeq", [blank( id="CrossfadeAddSeqBlank", duration=3.), fade.initial( id="CrossfadeAddSeqBlankFadeInitial", duration=2.,b) ]), fade.final( id="CrossfadeAddFadeFinal", duration=2.,a) ]) end #Live Sources liveInput = input.harbor( id="deepmind", "romeo.ogg", buffer=10., on_connect=deepmindLiveStart, on_disconnect=deepmindLiveEnd) liveInput = strip_blank( id="deepmindBlank", length=10., threshold=-50., liveInput) relaxerLiveInput = input.http( id="djrelaxer", buffer=10., poll_delay=60., "http://djrelaxer.no-ip.org:8000/trancemix.ogg") relaxerLiveInput = strip_blank( id="djrelaxerBlank", length=10., threshold=-50., relaxerLiveInput) #Tracks tracksInput = playlist( id="tracks", reload=180, "http://deepmix.no-ip.info/playlist.php") tracksInput = skip_blank( id="tracksBlank", tracksInput) tracksInput = mksafe( tracksInput) #Master Input input=fallback( id="mainFallback", track_sensitive=false, transitions=[crossfade, crossfade, crossfade], [liveInput, relaxerLiveInput, tracksInput]) #Master Output out = output.icecast.vorbis( host="localhost", password="*", restart=true) #Mount Points out( id="32ogg", input, mount="deep32.ogg", samplerate=11025, quality=1., url="http://deep-mind.no-ip.org:8000/deep32.ogg", name=streamTitle, description=streamDescr, genre=streamGenre, public=true) out( id="96ogg", input, mount="deep96.ogg", url="http://deep-mind.no-ip.org:8000/deep64.ogg", name=streamTitle, description=streamDescr, genre=streamGenre, public=true) out2 = output.icecast.mp3( id="128mp3", input, restart=true, password="*", mount="mp3(128)", name=streamTitle, genre=streamGenre, description=streamDescr)