Page 1 of 1

Mosaic Order Not Acting as Expected?

Posted: 20 May 2013 04:28
by biolizard89
My VLM code:

Code: Select all

new ProjectorMain broadcast enabled setup ProjectorMain input "X:\Placeholder\Placeholder.png" setup ProjectorMain option image-duration=-1 setup ProjectorMain option image-fps=30/1 setup ProjectorMain output #transcode{sfilter=mosaic{order="Table1IfProjector",height=720,width=1280,rows=1,cols=1,position=1}:mosaic{order="Table2IfProjector",height=720,width=1280,rows=1,cols=1,position=1},vcodec=h264,venc=x264{preset=ultrafast,tune=zerolatency},vb=10000,width=1280,height=720,acodec=mp3,ab=128}:display control ProjectorMain play new Table1IfProjector broadcast enabled setup Table1IfProjector input "X:\Placeholder\Placeholder.png" setup Table1IfProjector option image-duration=-1 setup Table1IfProjector option image-fps=30/1 setup Table1IfProjector output #transcode{sfilter=mosaic{order="Table1",height=720,width=1280,rows=1,cols=1,position=1},vcodec=h264,venc=x264{preset=ultrafast,tune=zerolatency},vb=10000,width=1280,height=720,acodec=mp3,ab=128}:mosaic-bridge{id="Table1IfProjector",width=1280,height=720} new Table1 broadcast enabled setup Table1 input dshow:// loop setup Table1 option dshow-vdev="Integrated Webcam" setup Table1 option dshow-adev="Microphone Array (High Definiti" setup Table1 option dshow-size="640x480" setup Table1 output #mosaic-bridge{id="Table1",width=1280,height=720} control Table1 play
When I execute this VLM script on a Win64 nightly from today (although I'm pretty sure this isn't a nightly-specific issue), the video from the Table1 stream is visible in the display of the ProjectorMain stream. This is not what I would expect, because the Table1 stream outputs video to the Table1 mosaic ID, which is only received by Table1Projector (which is not playing). The ProjectorMain mosaic filter is receiving video from the Table1IfProjector mosaic ID, which is not playing, so I would expect the ProjectorMain stream to show the Placeholder.png, not the Table1 stream.

Is my understanding of how the "order" parameter works for mosaic, different from reality? How can I choose which mosaic ID is displayed, so that if the mosaic ID specified is not playing (even if another mosaic ID is playing), only the background PNG image is displayed?

Thanks.