VLM Config to output 2 different mosaic streams using different combinations of sources

Discussion about configuration and usage of VLM (a stream scheduler) within VLC.
damoclark
New Cone
New Cone
Posts: 1
Joined: 30 Dec 2020 02:11

VLM Config to output 2 different mosaic streams using different combinations of sources

Postby damoclark » 30 Dec 2020 11:26

Hi All,

I am attempting to create a single VLM configuration that allows me to output 2 mosaics, one with 3x3 grid, while the other has a 2x2 grid. The grids will be populated from the same pool of inputs, but in different arrangements. I am using position=1 and order= to specify the arrangements of both.

I almost have it working, with the exception of a rather odd behaviour. The 3x3 mosaic output is consistent and correct with the order I specify. While the 2x2 output is not, and changes each time I restart vlc.

My current config is shown below. In the 2x2 mosaic, I have specified order="1,2,3,5" but what is shown is not consistently the same cameras with those id numbers, as is correctly output in the 3x3 mosaic.

Wondering if mosaic-bridge filter doesn’t support multiple concurrent transcodes, or whether there might be a bug. I have not been able to find, with any online search, someone else attempting to do this, successful or otherwise. So it genuinely could be a bug. Or I have screwed up - that being more likely. :) Thoughts anyone?

TIA.

Cheers,
Damo.

Code: Select all

new channel1 broadcast enabled setup channel1 input "rtsp://cam1:88/videoSub" setup channel1 output #duplicate{dst=mosaic-bridge{id=1,width=640,height=360},dst=rtp{mux=ts,dst=239.255.1.1,port=1234,mux-caching=0}} new channel2 broadcast enabled setup channel2 input "rtsp://cam2:88/videoSub" setup channel2 output #duplicate{dst=mosaic-bridge{id=2,width=640,height=360},dst=rtp{mux=ts,dst=239.255.1.2,port=1234,mux-caching=0}} new channel3 broadcast enabled setup channel3 input "rtsp://cam3:88/videoSub" setup channel3 output #duplicate{dst=mosaic-bridge{id=3,width=640,height=360},dst=rtp{mux=ts,dst=239.255.1.3,port=1234,mux-caching=0}} new channel4 broadcast enabled setup channel4 input "rtsp://cam4:88/videoSub" setup channel4 output #duplicate{dst=mosaic-bridge{id=4,width=640,height=360},dst=rtp{mux=ts,dst=239.255.1.4,port=1234,mux-caching=0}} new channel5 broadcast enabled setup channel5 input "rtsp://cam5:88/videoSub" setup channel5 output #duplicate{dst=mosaic-bridge{id=5,width=640,height=360},dst=rtp{mux=ts,dst=239.255.1.5,port=1234,mux-caching=0}} new channel6 broadcast enabled setup channel6 input "rtsp://cam6:88/videoSub" setup channel6 output #duplicate{dst=mosaic-bridge{id=6,width=640,height=360},dst=rtp{mux=ts,dst=239.255.1.6,port=1234,mux-caching=0}} new channel7 broadcast enabled setup channel7 input "rtsp://cam7:88/videoSub" setup channel7 output #duplicate{dst=mosaic-bridge{id=7,width=640,height=360},dst=rtp{mux=ts,dst=239.255.1.7,port=1234,mux-caching=0}} new channel8 broadcast enabled setup channel8 input "rtsp://cam8:88/videoSub" setup channel8 output #duplicate{dst=mosaic-bridge{id=8,width=640,height=360},dst=rtp{mux=ts,dst=239.255.1.8,port=1234,mux-caching=0}} new channel9 broadcast enabled setup channel9 input "rtsp://cam9:88/videoSub" setup channel9 output #duplicate{dst=mosaic-bridge{id=9,width=640,height=360},dst=rtp{mux=ts,dst=239.255.1.9,port=1234,mux-caching=0}} new background broadcast enabled setup background input /home/user/background1920.png setup background option image-duration=-1 setup background output #transcode{sfilter=mosaic{cols=3,rows=3,width=1920,height=1080,keep-picture=1,position=1,order="1,2,3,4,5,6,7,8,9"},vcodec=mp4v,vb=8500,acodec=none,fps=10/1,scale=1}:duplicate{dst=standard{access=http,dst=:50000,mux=ts},dst=rtp{mux=ts,dst=239.255.0.1,port=1234,mux-caching=0}} new background2 broadcast enabled setup background2 input /home/user/background1280.png setup background2 option image-duration=-1 setup background2 output #transcode{sfilter=mosaic{cols=2,rows=2,width=1280,height=720,keep-picture=1,position=1,order="1,2,3,5"},vcodec=mp4v,vb=8500,acodec=none,fps=10/1,scale=1}:duplicate{dst=standard{access=http,dst=:50001,mux=ts},dst=rtp{mux=ts,dst=239.255.0.2,port=1234,mux-caching=0}} control background play control background2 play control channel1 play control channel2 play control channel3 play control channel4 play control channel5 play control channel6 play control channel7 play control channel8 play control channel9 play

Return to “VLM”

Who is online

Users browsing this forum: No registered users and 4 guests