Page 1 of 1

Mosaic vlm config is ignored

Posted: 19 Mar 2012 13:59
by brunyalo
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.

Re: Mosaic vlm config is ignored

Posted: 19 Mar 2012 14:52
by Sébastien Escudier

Re: Mosaic vlm config is ignored

Posted: 19 Mar 2012 14:57
by brunyalo
Great, thanks. However, what I state here is wider than ticket spec.

Re: Mosaic vlm config is ignored

Posted: 19 Mar 2012 15:11
by Sébastien Escudier
How so ?
If you mean all mosaic options are ignored, yes this is implied in the ticket.
The one option in the ticket is just an example.

Re: Mosaic vlm config is ignored

Posted: 19 Mar 2012 16:07
by brunyalo
Good, then it is OK. Thanks.

Re: Mosaic vlm config is ignored

Posted: 20 Mar 2012 08:25
by Sébastien Escudier
wiki updated, this is a normal behavior since vlc 2

Re: Mosaic vlm config is ignored

Posted: 20 Mar 2012 09:19
by brunyalo
Is it a bug then or simply normal behaviour? I am confused now. Which wiki page is updated? thx

Re: Mosaic vlm config is ignored

Posted: 20 Mar 2012 09:22
by Sébastien Escudier
It is a normal behavior in vlc 2 (look at the last trac ticket comment)
this wiki page is updated : http://wiki.videolan.org/Mosaic

Re: Mosaic vlm config is ignored

Posted: 27 Mar 2012 15:32
by brunyalo
A quick question. Does it mean that if vlm telnet control iface is used then it is not possible to use mosaic if vlm is not started with mosaic command line switches? I would like to build a mosaic related service, so a process/script could connect to the vlm and instruct what mosaic to create. I tired to test this, but no success. It is a limiting factor if applies. thx.

Re: Mosaic vlm config is ignored

Posted: 27 Mar 2012 17:21
by Sébastien Escudier
Of course you can create a mosaic with VLM.
But you just have to pass the mosaic options (width, height cols...) in the command line.

Re: Mosaic vlm config is ignored

Posted: 27 Mar 2012 22:55
by brunyalo
Yes, but mosaic params cannot be changed then, I need to restart VLM every time a new mosaic layout must be defined. Thanks, anyway.

Re: Mosaic vlm config is ignored

Posted: 27 Mar 2012 23:12
by Rémi Denis-Courmont
Can't you pass the parameters in the filter chain?

Re: Mosaic vlm config is ignored

Posted: 28 Mar 2012 13:27
by brunyalo
I am sorry, I do not know how to do that. Any hint?