As it is referred here
viewtopic.php?f=11&t=98515, Mosaic config loaded from a VLM config file is totally ignored. It would be nice to solve this, hope some developer can help. It was a pain to find this forum link, so I spent several days by debuging what is happening. I have something similar to the below config:
new channel1 broadcast
setup channel1 input file:///home/xyz/video.mov
setup channel1 output #duplicate{dst=mosaic-bridge{id=1,width=640,height=512},select=video,dst=bridge-out{id=1},select=audio}
setup channel1 enabled
new channel2 broadcast
setup channel2 input file:///home/xyz/video.flv
setup channel2 output #duplicate{dst=mosaic-bridge{id=2,width=128,height=72},select=video,dst=bridge-out{id=2},select=audio}
setup channel2 enabled
new bg broadcast enabled
setup bg input file:///home/xyz/black.png
setup bg option image-width=640
setup bg option image-height=512
setup bg option image-fps=30.0
setup bg option image-duration=-1
setup bg output #transcode{sfilter=mosaic,vcodec=h264,width=640,height=360,vb=800,acodec=mp3,ab=128,channels=2,samplerate=44100,scale=1}:bridge-in{delay=0,id-offset=0}:standard{access=file,mux=mp4,dst=/home/xyz/out.mp4}
setup bg option sub-filter=mosaic
setup bg option mosaic-keep-aspect-ratio
setup bg option mosaic-keep-picture
setup bg option mosaic-width=640
setup bg option mosaic-height=360
setup bg option mosaic-xoffset=0
setup bg option mosaic-yoffset=0
setup bg option mosaic-position=2
setup bg option mosaic-order=1,2
setup bg option mosaic-offsets=0,0,10,10
control channel1 play
control channel2 play
control bg play
Anything I set on Mosaic config (rows, cols, offset, size etc) the two video files are shown in the same very small size in the upper left corner. I removed all the mosaic related configuration from this file and tried the same from command line:
cvlc -I dummy --stop-time=200 --mosaic-width=640 --mosaic-height=512 --mosaic-keep-aspect-ratio --mosaic-keep-picture \
--mosaic-xoffset=0 --mosaic-yoffset=0 --mosaic-position=2 --mosaic-offsets="0,0,10,10" --mosaic-order="1,2" --vlm-conf videolan_ok.cfg
This works absolutley fine. I am using Debian testing with "VLC media player 2.0.0 Twoflower (revision 2.0.0-0-g421a4fc)". Hope it helps.