Rendering Order in Mosaic with mosaic-position=2?

Discussion about configuration and usage of VLM (a stream scheduler) within VLC.
biolizard89
New Cone
New Cone
Posts: 5
Joined: 24 May 2008 21:06

Rendering Order in Mosaic with mosaic-position=2?

Postby biolizard89 » 19 Oct 2012 06:54

I'm having an issue with the Mosaic feature with VLM. Here is my VLM script:

Code: Select all

new background broadcast enabled setup background input "C:\Users\Public\Videos\YACDEV\2012_10_08\Placeholder\Placeholder.png" setup background output #transcode{sfilter=mosaic,vcodec=h264,venc=x264{ultrafast},width=640,height=480,vb=1024,acodec=mp4a,ab=64,channels=1,samplerate=48000}:bridge-in:http{mux=ts,dst=:8080/BroadcastSeamless.ts} setup background option image-duration=-1 setup background option image-fps=30 setup background option mosaic-height=480 setup background option mosaic-width=640 setup background option mosaic-keep-picture=1 setup background option mosaic-order=HostFullScreen,HostCaptionFullScreen,HTMLScoreboard setup background option mosaic-offsets=0,0,0,351,0,0 setup background option mosaic-position=2 new HostFullScreen broadcast enabled setup HostFullScreen input dshow:// setup HostFullScreen option dshow-vdev="Integrated Webcam" setup HostFullScreen option dshow-adev="None" setup HostFullScreen option dshow-size="640x480" #setup HostFullScreen output #duplicate{dst=mosaic-bridge{id=HTMLScoreboard,chroma=YUVA,width=640,height=480},select=video,dst=bridge-out{id=1},select=audio} setup HostFullScreen output #duplicate{dst=mosaic-bridge{id=HostFullScreen,chroma=YUVA,width=640,height=480},select=video,dst=bridge-out{id=1},select=audio} new HostCaptionFullScreen broadcast enabled setup HostCaptionFullScreen input "C:\Users\Public\Videos\YACDEV\2012_10_08\LowerThirds\LowerThirds_Test.png" setup HostCaptionFullScreen option image-duration=-1 setup HostCaptionFullScreen option image-fps=30 setup HostCaptionFullScreen output #duplicate{dst=mosaic-bridge{id=HostCaptionFullScreen,chroma=YUVA},select=video,dst=bridge-out{id=2},select=audio} control background play control HostFullScreen play control HostCaptionFullScreen play
And here is my command line:

Code: Select all

"C:\Program Files\VideoLAN\VLC\vlc.exe" --extraintf http --mosaic-width=640 --mosaic-height=480 --mosaic-keep-picture --mosaic-order=HostFullScreen,HostCaptionFullScreen,HTMLScoreboard --mosaic-offsets=0,0,0,351,0,0 --mosaic-position=2 --image-fps=30 --vlm-conf vlm_config_lite.vlm
When I run this, the resulting mosaic stream only shows the HostFullScreen output; the HostCaptionFullScreen output (which is a partially transparent .png intended to overlay on top of the HostFullScreen output) is not visible. I have tried each of the two HostFullScreen output commands above with the same results. Removing the "control HostFullScreen play" command makes the HostCaptionFullScreen output visible, but of course then HostFullScreen is not visible. I gather that HostFullScreen is being rendered on top, even though I've tried rendering to two different mosaic ID's (which are before and after the HostCaptionFullScreen ID).

Does anyone know how I can get mosaic to overlay one input over another, as my above VLM script attempts to do, or if there is another way to get the intended result?

I'm on Windows 7, with the vlc-2.1.0-git-20121016-0403-win64.exe nightly. (2.0.3 has a bug making my .png not render at all due to lack of PNGA support, which was fixed in recent nightlies, so I was unable to test with 2.0.3.)

Thanks.

Return to “VLM”

Who is online

Users browsing this forum: No registered users and 4 guests