# Comment the following line if you don't want to reset your VLM configuration
del all

new   bg broadcast enabled
setup bg input     "fake://" option "fake-file=bg.jpg" 
#option "fake-file-reload=600" option "fake-fps=4"
setup bg option    sub-filter=mosaic
setup bg output    #transcode{vcodec=h264,sfilter=mosaic}:bridge-in:standard{access=http,mux=ts,dst=192.168.1.105:8088}

# Mosaic options
setup bg option mosaic-alpha=255
setup bg option mosaic-height=400
setup bg option mosaic-width=640
setup bg option mosaic-align=5
setup bg option mosaic-xoffset=10
setup bg option mosaic-yoffset=10
setup bg option mosaic-vborder=5
setup bg option mosaic-hborder=10
setup bg option mosaic-position=1
setup bg option mosaic-rows=2
setup bg option mosaic-cols=2
setup bg option mosaic-order=input1,input2,input3,input4
setup bg option mosaic-delay=0
setup bg option mosaic-keep-picture

# Input options
new   input1 broadcast enabled
setup input1 input     udp://@:1238
setup input1 output #duplicate{dst=mosaic-bridge{id=input1,width=320,height=200},select=video,dst=bridge-out{id=0},select=audio}

new   input2 broadcast enabled
setup input2 input  udp://@:1235
setup input2 output #duplicate{dst=mosaic-bridge{id=input2},select=video,dst=bridge-out{id=1}}

new   input3 broadcast enabled
setup input3 input  udp://@:1236
setup input3 output #duplicate{dst=mosaic-bridge{id=input3},select=video,dst=bridge-out{id=2}}

new   input4 broadcast enabled
setup input4 input  udp://@:1237
setup input4 output #duplicate{dst=mosaic-bridge{id=input4},select=video,dst=bridge-out{id=3}}



# Launch everything
control bg play
control input1 play
control input2 play
control input3 play
control input4 play

# end of mosaic batch
