VLC Size/Position Issue - Mosaic / VLM File - Need Help

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
NP209
New Cone
New Cone
Posts: 1
Joined: 18 Aug 2023 15:53

VLC Size/Position Issue - Mosaic / VLM File - Need Help

Postby NP209 » 18 Aug 2023 20:25

Hello everyone, I know this is not a new topic, but I'm working on displaying 16 RTSP camera streams using VLC. I would like to use the MOSAIC option they have but have not been successful in making it work. I can use the following code to run feeds in borderless window with no GUI but I have run into an annoying problem. On VLC 3.0 I can set the location of the window, but not the size. On VLC 4.0 I can set the size, but not the location.
vlc --no-video-deco --intf dummy --video-x=0 --video-y=0 --width="480" --height="270" rtsp://xxx.xxx.xxx:xxx

A little frustrating for sure. So I have decided to get help with creating a mosaic to simply view the RTSP camera feeds. I don't need to broadcast them back out anywhere. VLC should be able to handle this no problem since I can open 16 VLC players and set them all to different RTSP feeds with no issues. All I'm trying to do now is automate opening them all and make them all into a clean 4x4 grid with no GUI or borders.

Can anyone provide some pointers or help me out with this? I have create a .m3u file that has all the feeds in it, but when i open it, VLC shows only 1 feed at a time from the playlist of RTSP feeds. I'm not sure how to proceed at this point.


here is an example of what I have been trying to get working just to start but I cant get it to work. When I launch it a command prompt window opens and nothing loads.
new channel1
setup channel1 input "rtsp://your_rtsp_url_1"
setup channel1 output #mosaic-bridge{id=1,width=960,height=540}

new channel2
setup channel2 input "rtsp://your_rtsp_url_2"
setup channel2 output #mosaic-bridge{id=2,width=960,height=540}

new channel3
setup channel3 input "rtsp://your_rtsp_url_3"
setup channel3 output #mosaic-bridge{id=3,width=960,height=540}

new channel4
setup channel4 input "rtsp://your_rtsp_url_4"
setup channel4 output #mosaic-bridge{id=4,width=960,height=540}

new mosaic
setup mosaic input "file:///C:/Users/UserName/Desktop/bg.jpg"
setup mosaic option image-duration=-1
setup mosaic output #transcode{sfilter=mosaic{width=1920,height=1080,cols=2,rows=2,order="1,2,3,4",keep-aspect-ratio=enabled,keep-picture=1,mosaic-align=5},vcodec=mp4v}:bridge-in:display

control mosaic play
control channel1 play
control channel2 play
control channel3 play
control channel4 play

Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 44 guests