Multi-DJ livestream toolkit
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

20 lines
572 B

%include "config.liq"
def create_sources(names, prefix, port)
list.mapi(fun (i, name) ->
input.srt(id=prefix ^ "-" ^ name, port=port + i, clock_safe=false),
names)
end
dj = (mix(id="dj", create_sources(djs, "dj", 9000)):source(2,1,0))
viz = (mix(id="viz", create_sources(visualists, "viz", 9100)):source(2,1,0))
master_audio = drop_video(dj)
master_video = drop_audio(fallback([dj, viz]))
master = mksafe(mux_video(master_audio, video=master_video))
%include "rtmp.liq"
output.rtmp.multi(master, id="out-rtmp", urls=["rtmp://localhost/app/live"])