Mosaic vlm config is ignored

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
brunyalo
Blank Cone
Blank Cone
Posts: 19
Joined: 19 Mar 2012 13:33
Operating System: Linux

Mosaic vlm config is ignored

Postby brunyalo » 19 Mar 2012 13:59

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.

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: Mosaic vlm config is ignored

Postby Sébastien Escudier » 19 Mar 2012 14:52


brunyalo
Blank Cone
Blank Cone
Posts: 19
Joined: 19 Mar 2012 13:33
Operating System: Linux

Re: Mosaic vlm config is ignored

Postby brunyalo » 19 Mar 2012 14:57

Great, thanks. However, what I state here is wider than ticket spec.

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: Mosaic vlm config is ignored

Postby Sébastien Escudier » 19 Mar 2012 15:11

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.

brunyalo
Blank Cone
Blank Cone
Posts: 19
Joined: 19 Mar 2012 13:33
Operating System: Linux

Re: Mosaic vlm config is ignored

Postby brunyalo » 19 Mar 2012 16:07

Good, then it is OK. Thanks.

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: Mosaic vlm config is ignored

Postby Sébastien Escudier » 20 Mar 2012 08:25

wiki updated, this is a normal behavior since vlc 2

brunyalo
Blank Cone
Blank Cone
Posts: 19
Joined: 19 Mar 2012 13:33
Operating System: Linux

Re: Mosaic vlm config is ignored

Postby brunyalo » 20 Mar 2012 09:19

Is it a bug then or simply normal behaviour? I am confused now. Which wiki page is updated? thx

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: Mosaic vlm config is ignored

Postby Sébastien Escudier » 20 Mar 2012 09:22

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

brunyalo
Blank Cone
Blank Cone
Posts: 19
Joined: 19 Mar 2012 13:33
Operating System: Linux

Re: Mosaic vlm config is ignored

Postby brunyalo » 27 Mar 2012 15:32

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.

Sébastien Escudier
Big Cone-huna
Big Cone-huna
Posts: 853
Joined: 06 Nov 2008 08:38
Operating System: linux

Re: Mosaic vlm config is ignored

Postby Sébastien Escudier » 27 Mar 2012 17:21

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.

brunyalo
Blank Cone
Blank Cone
Posts: 19
Joined: 19 Mar 2012 13:33
Operating System: Linux

Re: Mosaic vlm config is ignored

Postby brunyalo » 27 Mar 2012 22:55

Yes, but mosaic params cannot be changed then, I need to restart VLM every time a new mosaic layout must be defined. Thanks, anyway.

Rémi Denis-Courmont
Developer
Developer
Posts: 15324
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Mosaic vlm config is ignored

Postby Rémi Denis-Courmont » 27 Mar 2012 23:12

Can't you pass the parameters in the filter chain?
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

brunyalo
Blank Cone
Blank Cone
Posts: 19
Joined: 19 Mar 2012 13:33
Operating System: Linux

Re: Mosaic vlm config is ignored

Postby brunyalo » 28 Mar 2012 13:27

I am sorry, I do not know how to do that. Any hint?


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: Bing [Bot] and 60 guests