I am new for VLC. And I want to create a mosaic to streaming multiple video. the vlc version is 1.02
from the http://wiki.videolan.org/Mosaic, I tried the following code, but no mosaic display, anyone give me some advices?
Step1
create background image. the background image named mosaic.png with 320*240 pixels.
test.ts is the video file with 160*120 pixels
Step2
create VLM
the mosaic.vlm code as follows
---------------------------------------
Code: Select all
new channel1 broadcast enabled
setup channel1 input "e:/test.ts"
setup channel1 output #duplicate{dst=mosaic-bridge{id=1,height=120,width=160},select=video,dst=bridge-out{id=1},select=audio}
new channel2 broadcast enabled
setup channel2 input "e:/test.ts"
setup channel2 output #duplicate{dst=mosaic-bridge{id=2,height=120,width=160},select=video,dst=bridge-out{id=2},select=audio}
new channel3 broadcast enabled
setup channel3 input "e:/test.ts"
setup channel3 output #duplicate{dst=mosaic-bridge{id=3,height=120,width=160},select=video,dst=bridge-out{id=3},select=audio}
new channel4 broadcast enabled
setup channel4 input "e:/test.ts"
setup channel4 output #duplicate{dst=mosaic-bridge{id=4,height=120,width=160},select=video,dst=bridge-out{id=4},select=audio}
new background broadcast enabled
setup background input fake:
setup background output #transcode{sfilter=mosaic,vcodec=mp2v,vb=3000,scale=1}:bridge-in{delay=400,id-offset=100}:standard{access=http,mux=ts,url=127.0.0.1:1235}
control background play
control channel1 play
control channel2 play
control channel3 play
control channel4 play
Step3
run vlc from command line to create mosaic streaming
Code: Select all
vlc --color -I telnet --vlm-conf mosaic.vlm --ttl 12 --fake-file mosaic.png --fake-aspect-ratio "4:3" --mosaic-width 320 --mosaic-height 240 --udp-caching 800 --mosaic-keep-picture --mosaic-rows 2 --mosaic-cols 2 --mosaic-position 1 --mosaic-order 1,2,3,4
start a new vlc, http://127.0.0.1:1234
[/code]
anyone tell me what's wrong with my code?