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