#!/usr/bin/liquidsoap ################################################# # rc-web@kiben.net 2012 # this script runs on icecast server and provides a mix down of the # streams from the n remote locations for event broadcast to web audience # example usage: ./broadcastcombined.liq saintwerburghschurch fishamblestreet $PASSWORD set("log.stdout",true) LOCATIONA=argv(1) LOCATIONB=argv(2) PASSWORD=argv(3) streamA ="http://stream.kiben.net:8800/#{LOCATIONA}" streamB ="http://stream.kiben.net:8800/#{LOCATIONB}" # combine both remote location streams for broadcast A = mksafe(input.http(streamA)) B = mksafe(input.http(streamB)) combinedstreams = add(normalize=true,[A,B]) output.icecast(%vorbis(quality=0.6), host="stream.kiben.net", port=8800, password="#{PASSWORD}", mount="resoundingdublin.ogg", name="reSounding Dublin", genre="NMP", description="reSounding Dublin Broadcast Node", combinedstreams) #################################################